﻿/* CTMTQG PWA - thanh dieu huong duoi, the chi so */
html { font-size: calc(16px * var(--ct-font-scale, 1)); }
body.ctmt-app {
    padding-bottom: 72px;
}
body.ctmt-app .site-footer { display: none !important; }
body.ctmt-app .main-content > .container-fluid {
    padding-bottom: 0.5rem;
}
.ct-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1B6B2A;
    font-weight: 700;
}
.ct-filter {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #D4E0D4;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}
.ct-card {
    border: 1px solid #E3EBE3;
    border-radius: 14px;
    background: #fff;
    height: 100%;
    border-top: 4px solid #1B6B2A;
    padding: 0.9rem 1rem;
}
a.ct-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.ct-card:hover {
    box-shadow: 0 4px 14px rgba(27, 107, 42, 0.1);
}
.ct-card a { color: inherit; text-decoration: none; }
.ct-card__meta { font-size: 0.75rem; color: #5f6b63; }
.ct-metric {
    border-top: 1px dashed #E3EBE3;
    padding-top: 0.45rem;
    margin-top: 0.45rem;
}
.ct-metric strong { display: block; font-size: 0.92rem; }
.ct-empty {
    font-size: 0.8rem;
    color: #8a5a00;
    background: #FFF8E8;
    border-radius: 8px;
    padding: 0.15rem 0.4rem;
    display: inline-block;
}
.ct-bar {
    height: 6px;
    background: #EEF3EE;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.35rem;
}
.ct-bar > span { display: block; height: 100%; width: 0; background: #1B6B2A; }
.ct-prov {
    display: block;
    border: 1px solid #E3EBE3;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.ct-prov:hover { border-color: #1B6B2A; }
.ct-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    height: 60px;
    background: #fff;
    border-top: 1px solid #D4E0D4;
    padding-bottom: env(safe-area-inset-bottom);
}
.ct-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.68rem;
    color: #5f6b63;
    text-decoration: none;
    font-weight: 600;
}
.ct-tabbar a i { font-size: 1.15rem; }
.ct-tabbar a.is-active { color: #1B6B2A; }
.ct-table td, .ct-table th { font-size: 0.86rem; vertical-align: middle; }
html[data-tabbar-style="floating"] .ct-tabbar,
html[data-tabbar-style="brand"] .ct-tabbar {
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 58px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 58, 40, 0.16);
}
html[data-tabbar-style="brand"] .ct-tabbar { background: #1B6B2A; border-color: #1B6B2A; }
html[data-tabbar-style="brand"] .ct-tabbar a { color: rgba(255,255,255,0.78); }
html[data-tabbar-style="brand"] .ct-tabbar a.is-active { color: #fff; }
html[data-tabbar-style="minimal"] .ct-tabbar { background: transparent; border-top-color: transparent; }
html[data-tabbar-style="minimal"] .ct-tabbar a span { display: none; }
html[data-tabbar-style="minimal"] .ct-tabbar a i { font-size: 1.35rem; }
@media (min-width: 992px) {
    .ct-tabbar { display: none; }
    body.ctmt-app { padding-bottom: 0; }
}
.ct-brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; display: block; }
.ct-settings { display: flex; flex-direction: column; gap: 0.85rem; max-width: 640px; margin: 0 auto; }
.ct-settings__card {
    background: #fff;
    border: 1px solid #E3EBE3;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 8px rgba(27, 107, 42, 0.08);
}
.ct-settings__card--brand {
    padding: 1.15rem;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%), linear-gradient(135deg, #e8f5ea 0%, #f4faf5 48%, #fff 100%);
    border-color: rgba(27, 107, 42, 0.14);
    overflow: visible;
}
.ct-settings__brand { display: flex; gap: 1rem; align-items: center; }
.ct-settings__logo-wrap { position: relative; flex-shrink: 0; width: 96px; height: 96px; z-index: 2; cursor: zoom-in; outline: none; }
.ct-settings__logo {
    width: 96px; height: 96px; border-radius: 22px; object-fit: cover; display: block;
    box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 20px rgba(13, 74, 26, 0.28);
    transition: transform 0.2s ease;
}
.ct-settings__logo-wrap:hover .ct-settings__logo,
.ct-settings__logo-wrap:focus-visible .ct-settings__logo { transform: scale(1.04); }
.ct-settings__logo-zoom {
    position: absolute; left: 0; top: 50%; width: min(48vw, 240px); height: min(48vw, 240px);
    border-radius: 28px; object-fit: cover; display: block; pointer-events: none;
    opacity: 0; visibility: hidden; transform: translateY(-50%) scale(0.72); transform-origin: left center;
    box-shadow: 0 14px 36px rgba(13, 74, 26, 0.38); border: 3px solid rgba(255,255,255,0.96);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; z-index: 30;
}
.ct-settings__logo-wrap:hover .ct-settings__logo-zoom,
.ct-settings__logo-wrap:focus-visible .ct-settings__logo-zoom { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.ct-settings__name {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: #1B6B2A; background: rgba(27, 107, 42, 0.1); border: 1px solid rgba(27, 107, 42, 0.16);
    border-radius: 999px; padding: 0.18rem 0.55rem; margin-bottom: 0.4rem; line-height: 1.2;
}
.ct-settings__title { font-size: 1.12rem; font-weight: 700; color: #0D4A1A; margin: 0 0 0.4rem; line-height: 1.3; }
.ct-settings__desc { font-size: 0.88rem; color: #5A6B5A; line-height: 1.55; }
.ct-settings__section { font-size: 0.88rem; font-weight: 700; color: #0D4A1A; margin: 0 0 0.65rem; }
.ct-settings__devices { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.ct-settings__device {
    display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem; border-radius: 12px;
    background: linear-gradient(180deg, #f7fbf8, #eef6f0); border: 1px solid rgba(13, 74, 26, 0.1);
}
.ct-settings__device i { font-size: 1.35rem; color: #1B7A3D; }
.ct-settings__device strong { font-size: 0.9rem; color: #0D4A1A; }
.ct-settings__device span { font-size: 0.78rem; color: #5a6b5e; line-height: 1.35; }
.ct-settings__hint {
    background: rgba(27, 107, 42, 0.05); border: 1px solid rgba(27, 107, 42, 0.15);
    border-radius: 10px; padding: 0.85rem 0.95rem;
}
.ct-settings__done {
    background: rgba(27, 107, 42, 0.06); border-radius: 10px; padding: 0.75rem 0.9rem;
    font-size: 0.86rem; color: #5A6B5A;
}
.ct-settings__fonts { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ct-settings__font {
    flex: 1 1 8rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.2rem; min-height: 4rem; padding: 0.65rem 1rem; font-weight: 700; color: #0D4A1A;
    background: #E8F5E9; border: 1px solid #D4E0D4; border-radius: 8px; cursor: pointer;
}
.ct-settings__font--default { background: #fff; border-style: dashed; }
.ct-settings__font:hover { background: #fff; border-color: #1B6B2A; }
.ct-settings__font b { font-size: 1.25rem; line-height: 1; }
.ct-settings__font span { font-size: 0.72rem; font-weight: 500; }
.ct-settings__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.ct-settings__tab {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem;
    padding: 0.55rem 0.55rem 0.6rem; border: 2px solid #D4E0D4; border-radius: 12px;
    background: #fff; cursor: pointer; text-align: center; margin: 0;
}
.ct-settings__tab input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ct-settings__tab:hover { border-color: rgba(27, 107, 42, 0.45); background: rgba(27, 107, 42, 0.03); }
.ct-settings__tab:has(input:checked) {
    border-color: #1B6B2A; background: rgba(27, 107, 42, 0.08); box-shadow: 0 0 0 1px rgba(27, 107, 42, 0.18);
}
.ct-settings__tab-label { font-size: 0.8rem; font-weight: 700; color: #0D4A1A; }
.ct-settings__preview {
    display: flex; align-items: flex-end; justify-content: center; min-height: 2.65rem;
    padding: 0.35rem 0.25rem 0.15rem; border-radius: 8px; background: #f4f7f4;
}
.ct-settings__bar {
    display: flex; align-items: center; justify-content: space-around; width: 100%; max-width: 7.5rem;
    padding: 0.28rem 0.35rem; border-radius: 10px; font-size: 0.72rem; line-height: 1; background: #fff;
    border: 1px solid #D4E0D4;
}
.ct-settings__bar i { opacity: 0.45; }
.ct-settings__bar i:first-child { opacity: 1; color: #1B6B2A; }
.ct-settings__preview--floating .ct-settings__bar { border-radius: 14px; box-shadow: 0 4px 14px rgba(27, 107, 42, 0.14); }
.ct-settings__preview--brand .ct-settings__bar { background: linear-gradient(180deg, #228636, #1B6B2A); border: none; }
.ct-settings__preview--brand .ct-settings__bar i { color: rgba(255,255,255,0.65); }
.ct-settings__preview--brand .ct-settings__bar i:first-child { color: #fff; }
.ct-settings__group { margin-top: 0.85rem; }
.ct-settings__label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: #5A6B5A; margin: 0 0 0.35rem;
}
.ct-settings__links { list-style: none; margin: 0; padding: 0; }
.ct-settings__links li { border-bottom: 1px solid #D4E0D4; }
.ct-settings__links li:last-child { border-bottom: 0; }
.ct-settings__links a {
    display: flex; align-items: center; padding: 0.65rem 0; color: #1A2E1A; text-decoration: none; font-size: 0.88rem;
}
.ct-settings__links a:hover { color: #1B6B2A; }
.ct-settings__copy { text-align: center; color: #5f6b63; font-size: 0.8rem; margin: 0.25rem 0 0; }
@media (min-width: 640px) {
    .ct-settings__devices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .ct-settings__logo, .ct-settings__logo-wrap { width: 80px; height: 80px; }
    .ct-settings__logo { border-radius: 18px; }
    .ct-settings__title { font-size: 1.02rem; }
}
.ct-dash {
    margin-top: 1.25rem;
    background: #fff;
    border: 1px solid #E3EBE3;
    border-radius: 14px;
    padding: 0.9rem 0.85rem 0.75rem;
}
.ct-dash__frame { position: relative; }
.ct-dash__scroller {
    overflow: auto;
    max-height: 28rem;
    border: 1px solid #E6EEE6;
    border-radius: 10px;
}
.ct-dash__table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}
.ct-dash__table th,
.ct-dash__table td {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid #EEF3EE;
    background: #fff;
    vertical-align: bottom;
    text-align: center;
    white-space: normal;
}
.ct-dash__table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #F4F8F4 !important;
    font-weight: 600;
    min-width: 7.2rem;
    max-width: 9.5rem;
    box-shadow: 0 1px 0 #E6EEE6;
}
.ct-dash__table thead a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}
.ct-dash__ma {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: #1B6B2A;
    font-weight: 700;
}
.ct-dash__tinh {
    position: sticky;
    left: 0;
    z-index: 2;
    text-align: left !important;
    min-width: 9.5rem;
    max-width: 12rem;
    background: #fff !important;
    font-weight: 600;
    box-shadow: 4px 0 8px -2px rgba(0, 0, 0, 0.1);
}
.ct-dash__table thead .ct-dash__tinh { z-index: 5; background: #F4F8F4 !important; }
.ct-dash__tinh a { color: inherit; text-decoration: none; }
.ct-dash__table tr.is-on td,
.ct-dash__table tr.is-on .ct-dash__tinh { background: #E8F5E9 !important; }
.ct-dash__empty { color: #8a97a0; }
.ct-dash__picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    border-bottom: 1px solid #E3EBE3;
}
.ct-dash__picks button {
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-bottom: 0;
    background: transparent;
    color: #5f6b63;
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -1px;
}
.ct-dash__picks button:hover { color: var(--lv, #1B6B2A); background: rgba(27, 107, 42, 0.04); }
.ct-dash__picks button.is-on {
    background: #fff;
    border-color: #E3EBE3;
    color: var(--lv, #1B6B2A);
    box-shadow: inset 0 2px 0 var(--lv, #1B6B2A);
}
.ct-dash__nguon { margin-top: 0.45rem; font-size: 0.75rem; color: #5f6b63; }
.ct-dash__expand {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    width: 32px;
    height: 32px;
    border: 1px solid #E3EBE3;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #1B6B2A;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(27, 107, 42, 0.12);
}
.ct-dash__expand:hover {
    background: #1B6B2A;
    color: #fff;
    border-color: #1B6B2A;
}
@media (max-width: 991.98px) {
    .ct-dash__expand { display: inline-flex; }
}
.ct-dash.is-fullscreen {
    position: fixed;
    inset: 8px;
    z-index: 1300;
    margin: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.ct-dash.is-fullscreen .ct-dash__panel:not([hidden]),
.ct-dash.is-fullscreen .ct-dash__frame {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}
.ct-dash.is-fullscreen .ct-dash__scroller {
    flex: 1 1 auto;
    max-height: none;
    min-height: 0;
}
body.ct-dash-fs-open { overflow: hidden; }
body.ct-dash-fs-open .ct-tabbar { visibility: hidden; }
