:root{color-scheme:dark;--bg:#080d18;--panel:#101827;--panel2:#131e30;--line:#243147;--text:#edf3ff;--muted:#8c9bb3;--blue:#477dff;--blue2:#2359e8;--green:#28c795;--red:#ff6b7d}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% -20%,#15284d 0,transparent 42%),var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}.app-shell{min-height:100vh}.sidebar{width:252px;position:fixed;inset:0 auto 0 0;background:#0b1220;border-right:1px solid #1d293c;padding:25px 16px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;gap:11px;align-items:center;padding:3px 8px 36px}.brand-mark,.login-logo{display:grid;place-items:center;background:linear-gradient(145deg,#5992ff,#3158e8);color:white;font-weight:900;box-shadow:0 8px 25px #2454d744}.brand-mark{width:39px;height:39px;border-radius:13px;font-size:20px}.brand b{display:block;font-size:15px;letter-spacing:1.5px}.brand small{display:block;color:#6f83a3;font-size:9px;letter-spacing:1.6px;margin-top:2px}.nav-label,.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:800;color:#7486a5}.nav-label{padding:0 12px 12px}.nav-item{display:flex;align-items:center;gap:13px;padding:12px 13px;margin:3px 0;border-radius:10px;color:#91a0b8;font-weight:600;transition:.18s}.nav-item:hover,.nav-item:focus{background:#16243a;color:#fff}.nav-item:first-of-type{color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:17px 3px 0;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:11px;background:#20345a;color:#9cbbff;display:grid;place-items:center;font-weight:800}.user-meta{min-width:0;flex:1}.user-meta b,.user-meta small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-meta b{font-size:12px}.user-meta small{font-size:11px;color:var(--muted)}.icon-btn{background:transparent;color:#91a0b8;border:0;cursor:pointer;font-size:20px}.main-area{margin-left:252px;min-height:100vh}.topbar{height:100px;border-bottom:1px solid #1b2739;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#0b1220aa}.topbar h1{font-size:22px;margin:3px 0 0;letter-spacing:-.5px}.topbar-right{display:flex;align-items:center;gap:9px;color:#94a4bc;font-size:12px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 12px #28c79599}.content{max-width:1450px;padding:34px 42px 48px;margin:0 auto}.welcome-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.welcome-row h2{font-size:24px;letter-spacing:-.6px;margin:5px 0}.muted{color:var(--muted);margin:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card,.panel{border:1px solid var(--line);background:linear-gradient(145deg,#111b2b,#0e1725);border-radius:15px}.stat-card{padding:20px;min-height:145px}.stat-top{display:flex;justify-content:space-between;gap:10px;color:#9eacc2;font-size:12px}.stat-icon{width:30px;height:30px;border-radius:9px;background:#1a2d4d;color:#8bb1ff;display:grid;place-items:center;font-size:13px}.stat-card strong{display:block;font-size:29px;letter-spacing:-.8px;margin:11px 0 3px}.stat-card small{color:#71839f;font-size:11px}.panel{overflow:hidden;margin-bottom:23px}.panel-head{padding:21px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h3{margin:0 0 3px;font-size:15px}.panel-head p{font-size:12px}.text-link{font-size:12px;color:#83aaff;font-weight:700}.text-link span{margin-left:5px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:left;color:#7789a5;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:800;background:#0e1725}th,td{padding:15px 22px;border-bottom:1px solid #1c293b}td{font-size:12px;color:#cbd6e8}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#ffffff04}td b{font-weight:700;color:#eef3ff}.cell-sub{display:block;color:#7e90ac;font-size:10px;margin-top:3px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:800}.pill.green{background:#12362f;color:#54e2b3}.pill.red{background:#3a202c;color:#ff8798}.pill.neutral{background:#202b3d;color:#aab8cd}.pill.blue{background:#172d54;color:#8cb1ff}.empty-state{text-align:center;padding:42px 20px}.empty-icon{margin:0 auto 12px;width:48px;height:48px;border-radius:15px;background:#1b2c49;color:#85aaff;display:grid;place-items:center;font-size:22px}.empty-state b{font-size:14px}.empty-state p{font-size:12px;margin-top:5px}.empty-cell{text-align:center!important;padding:36px!important;color:#8798b1}.info-banner{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #263b60;background:linear-gradient(100deg,#101f37,#101a2a);border-radius:14px}.info-symbol{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#1d3763;color:#8eb3ff;font-size:18px}.info-banner>div:nth-child(2){flex:1}.info-banner b{font-size:12px}.info-banner p{font-size:11px;color:#91a1ba;margin:3px 0 0}.notice{padding:12px 14px;border-radius:10px;margin-bottom:17px;font-size:12px}.notice.error{background:#3b202b;border:1px solid #713543;color:#ff9baa}.notice.success{background:#12362f;border:1px solid #1c604f;color:#6ce4bb}.btn{display:inline-flex;justify-content:center;align-items:center;gap:12px;border:0;border-radius:10px;padding:12px 17px;font-size:12px;font-weight:800;cursor:pointer}.btn.primary{color:white;background:linear-gradient(135deg,var(--blue),var(--blue2));box-shadow:0 6px 20px #285de733}.btn.primary:hover{filter:brightness(1.08)}.btn.full{width:100%;margin-top:5px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:25px}.login-card{width:min(100%,420px);padding:35px;background:linear-gradient(145deg,#121d30,#0d1523);border:1px solid #273750;border-radius:22px;box-shadow:0 25px 90px #0006}.login-logo{width:54px;height:54px;border-radius:17px;margin:0 auto 23px;font-size:25px}.center{text-align:center}.login-card h1{text-align:center;font-size:24px;margin:8px 0}.login-card .muted{font-size:12px}.form-stack{display:grid;gap:17px;margin-top:28px}.form-stack label{display:grid;gap:8px;font-size:11px;color:#aebbd0;font-weight:700}.form-stack input{width:100%;background:#0a1220;border:1px solid #2b3b54;color:#f5f8ff;padding:13px 14px;border-radius:9px;outline:none}.form-stack input:focus{border-color:#5b8dff;box-shadow:0 0 0 3px #477dff20}.login-foot{text-align:center;color:#647793;font-size:10px;margin-top:25px}.main-auth{margin:0}.main-auth .content{padding:0;max-width:none}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px 24px}.topbar{padding:0 24px}}@media(max-width:700px){.sidebar{position:relative;width:100%;height:auto;padding:13px 14px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 3px 12px}.nav-label{display:none}.nav-item{display:inline-flex;padding:9px 10px;font-size:11px;margin:0 2px 0 0}.sidebar-bottom{position:absolute;right:14px;top:12px;margin:0;border:0;padding:0}.sidebar-bottom .user-meta{display:none}.main-area{margin:0}.topbar{height:75px;padding:0 18px}.topbar h1{font-size:19px}.topbar-right{display:none}.content{padding:24px 14px}.welcome-row{align-items:flex-start;flex-direction:column}.welcome-row h2{font-size:22px}.stats-grid{gap:10px}.stat-card{padding:14px;min-height:126px}.stat-card strong{font-size:24px}.stat-top{font-size:11px}.info-banner{align-items:flex-start;flex-wrap:wrap}.info-banner .pill{margin-left:50px}.login-card{padding:27px 22px}}

/* NEXUS: seletor de tema */
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:9px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel2);color:var(--text);font-size:11px;font-weight:700;
  cursor:pointer;white-space:nowrap;transition:background .2s,border-color .2s;
}
.theme-toggle:hover{border-color:var(--blue);filter:brightness(1.06)}
.theme-toggle-icon{font-size:16px;line-height:1}
.topbar-right{flex-wrap:wrap}
@media(max-width:700px){
  .topbar-right{display:flex;position:absolute;right:12px;top:83px;z-index:3}
  .theme-toggle{padding:7px 9px;font-size:10px}
  .topbar{position:relative}
}

/* NEXUS: paleta clara */
html[data-theme="light"]{color-scheme:light;
  --bg:#f3f6fc;--panel:#ffffff;--panel2:#edf2fa;--line:#dce4f0;
  --text:#17243b;--muted:#66758c;--blue:#477dff;--blue2:#2359e8;
  --green:#159d75;--red:#d9435b;
}
html[data-theme="light"] body{
  background:radial-gradient(ellipse at 80% -20%,#dce8ff 0,transparent 42%),var(--bg);
  color:var(--text)
}
html[data-theme="light"] .sidebar{background:#fff;border-color:#dce4f0}
html[data-theme="light"] .brand small{color:#71819a}
html[data-theme="light"] .nav-label,
html[data-theme="light"] .eyebrow{color:#71819a}
html[data-theme="light"] .nav-item{color:#586981}
html[data-theme="light"] .nav-item:hover,
html[data-theme="light"] .nav-item:focus{background:#edf3ff;color:#214a9d}
html[data-theme="light"] .nav-item:first-of-type{color:#214a9d}
html[data-theme="light"] .topbar{background:#ffffffdd;border-color:#dce4f0}
html[data-theme="light"] .topbar-right{color:#66758c}
html[data-theme="light"] .stat-card,
html[data-theme="light"] .panel{background:#fff;border-color:#dce4f0}
html[data-theme="light"] .stat-top{color:#586981}
html[data-theme="light"] .stat-icon{background:#e8efff;color:#315fce}
html[data-theme="light"] .stat-card small{color:#71819a}
html[data-theme="light"] .panel-head{border-color:#dce4f0}
html[data-theme="light"] th{background:#f2f5fb;color:#66758c}
html[data-theme="light"] th,
html[data-theme="light"] td{border-color:#e4eaf3}
html[data-theme="light"] td{color:#42516a}
html[data-theme="light"] td b{color:#17243b}
html[data-theme="light"] .cell-sub{color:#71819a}
html[data-theme="light"] tbody tr:hover{background:#477dff0b}
html[data-theme="light"] .pill.green{background:#dff8ef;color:#087a59}
html[data-theme="light"] .pill.red{background:#ffe7eb;color:#b4233c}
html[data-theme="light"] .pill.neutral{background:#e9eef6;color:#52627a}
html[data-theme="light"] .pill.blue{background:#e5edff;color:#2858c4}
html[data-theme="light"] .empty-icon{background:#e8efff;color:#315fce}
html[data-theme="light"] .info-banner{background:linear-gradient(100deg,#f0f5ff,#fff);border-color:#d5e2fa}
html[data-theme="light"] .info-symbol{background:#e1ebff;color:#315fce}
html[data-theme="light"] .info-banner p{color:#66758c}
html[data-theme="light"] .notice.error{background:#fff0f2;border-color:#f3c6ce;color:#a91f37}
html[data-theme="light"] .notice.success{background:#e6faf3;border-color:#b6ecda;color:#087a59}
html[data-theme="light"] .avatar{background:#e3ebff;color:#315fce}
html[data-theme="light"] .icon-btn{color:#586981}
html[data-theme="light"] .sidebar-bottom{border-color:#dce4f0}
html[data-theme="light"] .theme-toggle{background:#fff;color:#24344d;border-color:#d5dfed}
html[data-theme="light"] .login-card{background:linear-gradient(145deg,#fff,#f5f8ff);border-color:#dce4f0;box-shadow:0 25px 90px #19345c18}
html[data-theme="light"] .form-stack label{color:#42516a}
html[data-theme="light"] .form-stack input{background:#fff;border-color:#cbd6e6;color:#17243b}
html[data-theme="light"] .login-foot{color:#71819a}


/* NEXUS - navegacao responsiva */
@media (min-width: 701px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
  }
  .main-area:not(.main-auth) { margin-left: 252px; }
  .topbar {
    position: fixed;
    top: 0;
    left: 252px;
    right: 0;
    height: 100px;
    z-index: 90;
    padding: 0 32px;
    background: var(--panel);
    backdrop-filter: blur(16px);
  }
  .main-area:not(.main-auth) .content { padding-top: 134px; }
  .mobile-menu-toggle,
  .mobile-bottom-nav,
  .sidebar-backdrop { display: none !important; }
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.sidebar-backdrop { display: none; }

@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .main-area,
  .main-area:not(.main-auth) {
    margin: 0;
    min-width: 0;
    padding-top: 75px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 120;
    padding: 0 12px 0 16px;
    gap: 8px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .topbar-heading { min-width: 0; flex: 1; }
  .topbar .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .topbar h1 {
    font-size: 17px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-right {
    display: flex;
    position: static;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
  }
  .topbar-right .status-dot,
  .topbar-right .portal-label { display: none; }
  .theme-toggle { min-height: 38px; padding: 0 10px; }
  .theme-toggle-label { display: none; }
  .mobile-menu-toggle { display: inline-flex; }

  .sidebar {
    position: fixed;
    top: 75px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    left: 0;
    width: min(300px, 86vw);
    height: auto;
    padding: 20px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 0 16px 16px 0;
    z-index: 111;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
    box-shadow: 18px 0 45px #0003;
  }
  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar .brand { padding: 0 4px 28px; }
  .sidebar .nav-label { display: block; padding-bottom: 12px; }
  .sidebar .nav-item {
    display: flex;
    width: 100%;
    padding: 13px;
    margin: 3px 0;
    font-size: 13px;
  }
  .sidebar .sidebar-bottom {
    position: static;
    margin-top: auto;
    padding: 17px 3px 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .sidebar-bottom .user-meta { display: block; }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 75px 0 calc(66px + env(safe-area-inset-bottom));
    z-index: 105;
    background: #0206118c;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }
  body.mobile-menu-open { overflow: hidden; }

  .mobile-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    z-index: 125;
    background: var(--panel);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px #0001;
  }
  .mobile-nav-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    border-radius: 10px;
    font-size: 20px;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-item small {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .content { padding: 22px 14px 28px; }
  .welcome-row { gap: 10px; }
  .welcome-row h2 { font-size: 21px; overflow-wrap: anywhere; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-width: 0; padding: 13px; }
  .stat-card strong { font-size: 23px; overflow-wrap: anywhere; }
  .panel { max-width: 100%; }
  .panel-head { gap: 10px; padding: 16px; }
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-auth { padding-top: 0 !important; padding-bottom: 0 !important; }
  .main-auth .content { padding: 0; }
}

@media (max-width: 380px) {
  .topbar { padding-left: 10px; padding-right: 8px; gap: 5px; }
  .topbar h1 { font-size: 15px; }
  .topbar-right { gap: 5px; }
  .mobile-menu-toggle { padding: 0 8px; }
  .mobile-menu-label { font-size: 11px; }
  .theme-toggle { min-width: 36px; padding: 0 8px; }
  .mobile-nav-item small { font-size: 9px; }
}

html[data-theme="light"] .mobile-menu-toggle,
html[data-theme="light"] .mobile-bottom-nav {
  background: #fff;
  border-color: #dce4f0;
}
html[data-theme="light"] .mobile-nav-item { color: #586981; }
html[data-theme="light"] .mobile-nav-item:active {
  background: #edf3ff;
  color: #214a9d;
}

/* Mobile: menu como ultimo item da barra inferior */
@media (max-width: 700px) {
  .topbar .mobile-menu-toggle {
    display: none;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-bottom-nav .mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
  }

  .mobile-menu-bottom .menu-toggle-icon {
    font-size: 20px;
    line-height: 1.2;
  }

  .mobile-menu-bottom small {
    font-size: 10px;
    font-weight: 700;
  }
}

@media (min-width: 701px) {
  .mobile-menu-bottom {
    display: none !important;
  }
}

/* Barra mobile: icones refinados e faturas em destaque */
@media (max-width: 700px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .mobile-nav-item {
    gap: 4px;
    font-size: 11px;
    transition: color .18s ease, transform .18s ease;
  }
  .mobile-nav-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 27px;
    font-size: 23px;
    line-height: 1;
    border-radius: 9px;
  }
  .mobile-nav-invoices {
    align-self: center;
    min-height: 54px;
    margin-top: -12px;
    padding: 5px 2px 4px;
    border: 1px solid #477dff;
    border-radius: 13px;
    color: #fff !important;
    background: linear-gradient(145deg, #477dff, #2359e8);
    box-shadow: 0 5px 16px #2359e855;
    font-weight: 800;
  }
  .mobile-nav-invoices .mobile-nav-icon {
    width: 32px;
    height: 29px;
    font-size: 25px;
    color: #fff;
  }
  .mobile-nav-invoices small {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }
  .mobile-nav-item:active { transform: scale(.95); }
  .mobile-menu-bottom .menu-toggle-icon { font-size: 22px; }
}
html[data-theme="light"] .mobile-nav-invoices {
  color: #fff !important;
  background: linear-gradient(145deg, #477dff, #2359e8);
  border-color: #477dff;
}

/* SVGs da navegacao mobile */
@media (max-width: 700px) {
  .mobile-nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 28px;
  }
  .mobile-nav-icon svg {
    display: block;
    width: 23px;
    height: 23px;
  }
  .mobile-nav-invoices .mobile-nav-icon svg {
    width: 26px;
    height: 26px;
  }
  .mobile-menu-bottom .menu-toggle-icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    font-size: 0;
  }
  .mobile-menu-bottom .menu-toggle-icon svg {
    width: 22px;
    height: 22px;
    display: block;
  }
  .mobile-nav-item small { letter-spacing: -.15px; }
}

/* Faturas: botao flutuante elevado na navegacao mobile */
@media (max-width: 700px) {
  .mobile-bottom-nav {
    overflow: visible;
  }

  .mobile-nav-invoices {
    position: relative;
    align-self: center;
    transform: translateY(-9px);
    min-height: 58px;
    margin-top: -8px;
    padding: 7px 3px 5px;
    border: 1px solid #477dff;
    border-radius: 15px;
    background: linear-gradient(145deg, #477dff, #2359e8);
    color: #fff !important;
    box-shadow: 0 6px 18px #2359e866;
    z-index: 2;
  }

  .mobile-nav-invoices .mobile-nav-icon {
    width: 34px;
    height: 31px;
  }

  .mobile-nav-invoices .mobile-nav-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 2;
  }

  .mobile-nav-invoices small {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-nav-invoices:active {
    transform: translateY(-9px) scale(.96);
  }
}

/* Dashboard mobile: cards empilhados e compactos */
@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
    margin-bottom: 16px;
  }

  .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 13px 15px;
    border-radius: 12px;
  }

  .stat-top {
    align-items: center;
    gap: 8px;
    font-size: 11px;
  }

  .stat-icon {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
  }

  .stat-card strong {
    font-size: 23px;
    line-height: 1.25;
    margin: 7px 0 2px;
  }

  .stat-card small {
    font-size: 10px;
    line-height: 1.4;
  }

  .welcome-row {
    margin-bottom: 17px;
  }
}

/* Area do cliente: dashboard responsivo */
@media (max-width: 700px) {
  .client-dashboard {
    gap: 8px;
    margin-bottom: 18px;
  }

  .client-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-bottom: 18px;
  }

  .client-stats-grid .stat-card {
    min-width: 0;
    min-height: 116px;
    padding: 13px;
    border-radius: 13px;
  }

  .client-stats-grid .stat-top {
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.4;
  }

  .client-stats-grid .stat-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
  }

  .client-stats-grid .stat-card strong {
    font-size: clamp(18px, 5vw, 24px);
    overflow-wrap: anywhere;
    letter-spacing: -0.5px;
  }

  .client-stats-grid .stat-card small {
    font-size: 10px;
    line-height: 1.4;
  }

  .client-applications-panel .panel-head {
    gap: 10px;
    padding: 16px 14px;
  }

  .client-applications-panel .panel-head h3 {
    font-size: 14px;
  }

  .client-applications-panel .panel-head p {
    font-size: 11px;
  }

  .client-applications-panel .text-link {
    flex-shrink: 0;
    font-size: 11px;
  }

  .client-applications-panel .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .client-applications-panel table {
    min-width: 540px;
  }
}

@media (max-width: 380px) {
  .client-stats-grid {
    gap: 8px;
  }

  .client-stats-grid .stat-card {
    padding: 10px;
  }

  .client-stats-grid .stat-card strong {
    font-size: 18px;
  }
}
