/* Navigation and task-focused refinements for the partner workspace. */
:root { --nav-width:244px; }
.sidebar { padding:20px 12px 16px; height:100dvh; overflow:hidden; }
.sidebar-head { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; padding:0 6px 10px; min-height:58px; }
.sidebar .brand { padding:0 5px; gap:10px; min-width:0; }
.sidebar .brand-word { font-size:22px; letter-spacing:1.6px; }
.sidebar .brand-sub { font-size:10px; letter-spacing:.2px; margin-top:5px; text-transform:none; }
.sidebar-close { display:none; }
.nav-scroll { flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#435c4b transparent; }
.nav { gap:4px; }
.nav-group-label { padding:14px 12px 7px; font-size:10px; font-weight:500; color:#89998e; letter-spacing:.65px; text-transform:uppercase; }
.nav-group-label:first-child { padding-top:10px; }
.sidebar .nav-item { min-height:45px; font-size:13px; padding:11px 12px; gap:11px; flex-shrink:0; }
.sidebar .nav-item .icon { flex-shrink:0; width:19px; height:19px; }
.sidebar .nav-item:hover { color:#fff; }
.sidebar .nav-count { font-size:10px; border-radius:5px; padding:2px 5px; }
.sidebar-bottom { flex-shrink:0; padding-top:12px; }
.user-button { min-height:58px; padding:14px 9px 0; }
.user-button .avatar { width:35px; height:35px; flex-shrink:0; }
.user-name { font-size:13px; }
.user-role { font-size:11px; }
.user-copy { min-width:0; }
.topbar { gap:16px; }
.desktop-menu-toggle,.mobile-menu,.topbar .icon-button { min-width:42px; width:42px; height:42px; }
.desktop-menu-toggle { display:inline-flex; }
.breadcrumbs { min-width:0; gap:9px; font-size:13px; }
.breadcrumbs .current { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.breadcrumb-home { display:inline-flex; align-items:center; justify-content:center; width:32px; height:36px; flex-shrink:0; border-radius:8px; }
.breadcrumb-home:hover { background:#f4f6f4; }
.command-trigger { width:240px; min-width:145px; height:40px; font-size:12px; }
.command-trigger .icon { width:16px; height:16px; }
.topbar-actions { gap:10px; }
.topbar-demo-button { color:#65786b; background:#f4f6f4; border:1px solid #e7ebe8; border-radius:6px; padding:5px 7px; font-size:10px; }
.topbar-avatar { width:36px; height:36px; }
.profile-menu { width:224px; left:12px; bottom:82px; }
.profile-menu button { min-height:43px; font-size:12px; }
.mobile-nav { display:none; }
.page-heading h1 { font-size:28px; }
.page-heading p { font-size:13px; color:#65786b; }
.page-heading { align-items:center; }
.button { min-height:42px; font-size:13px; padding:10px 15px; }
.page-actions .button { min-height:42px; font-size:12px; }
.icon-button { min-width:38px; min-height:38px; }
.text-button { min-height:36px; font-size:12px; }
.period-select { height:42px; font-size:12px; }
.period-control>.icon { top:14px; }
.panel-header h2,.next-actions h2 { font-size:16px; }
.panel-header p,.panel-header .table-subtitle { font-size:12px; color:#65786b; }
.stat-label { font-size:13px; line-height:1.45; }
.stat-top { gap:8px; }
.stat-icon { flex-shrink:0; }
.stat-bottom,.trend { font-size:11px; line-height:1.65; }
.stat-bottom { display:flex; flex-direction:column; align-items:flex-start; gap:3px; padding-right:15px; }
.stat-interactive { position:relative; }
.stat-hit { position:absolute; inset:0; z-index:2; width:100%; border-radius:inherit; cursor:pointer; }
.stat-hit:focus-visible { outline:2px solid #65786b; outline-offset:3px; }
.stat-card .stat-link { pointer-events:none; }
.next-actions { padding:20px; margin-top:22px; }
.next-actions-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.next-actions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.next-action { display:flex; align-items:center; gap:12px; text-align:left; padding:16px 13px; border:1px solid #e7ebe8; border-radius:11px; background:#fafbfa; min-width:0; transition:background .2s,border-color .2s; }
.next-action:hover { background:#fafbfa; border-color:#d5ddd7; }
.next-action>span:nth-child(2) { flex:1; min-width:0; }
.next-action strong { display:block; font-size:13px; font-weight:600; color:#2d4134; line-height:1.5; }
.next-action small { display:block; font-size:11px; color:#65786b; line-height:1.55; margin-top:4px; }
.next-action>.icon { width:15px; height:15px; color:#65786b; flex-shrink:0; }
.next-action-icon { display:flex; align-items:center; justify-content:center; width:35px; height:35px; border:1px solid #e7ebe8; background:#f4f6f4; color:#65786b; border-radius:9px; flex-shrink:0; }
.next-action-icon .icon { width:18px; height:18px; }
.dashboard-account-button { width:100%; text-align:left; border-radius:8px; transition:background .2s; }
.dashboard-account-button:hover { background:#fafbfa; }
.dashboard-accounts .account-row .account-name { font-size:13px; }
.dashboard-accounts .account-row .account-meta { font-size:11px; }
.dashboard-accounts .account-row .status { font-size:10px; }
.accounts-footer { min-height:40px; font-size:12px; }
.chart-key,.chart-footer,.chart-footer strong { font-size:11px; }
.table-go-label { display:none; }
.data-table { font-size:13px; }
.data-table th { font-size:11px; padding-top:14px; padding-bottom:14px; color:#65786b; }
.data-table td { padding-top:17px; padding-bottom:17px; line-height:1.6; }
.data-table .order-title { font-size:13px; white-space:normal; line-height:1.55; }
.data-table .order-id,.manager-cell { font-size:11px; }
.data-table .order-id { color:#65786b; }
.data-table .status { font-size:11px; }
.table-go { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; }
.toolbar { margin:20px 0 14px; gap:16px; flex-wrap:wrap; }
.tabs { flex-wrap:wrap; overflow:visible; gap:3px; }
.tab { min-height:39px; padding:9px 11px; font-size:12px; white-space:nowrap; }
.tab-count { font-size:10px; }
.search-field { min-width:225px; flex:1; max-width:350px; }
.search-field input { width:100%; height:44px; font-size:13px; border-color:#e7ebe8; padding-left:38px; }
.search-field>.icon { width:17px; height:17px; top:14px; left:13px; }
.advanced-filters { border:1px solid #e7ebe8; border-radius:11px; background:#fafbfa; }
.advanced-filters summary { display:flex; align-items:center; gap:9px; cursor:pointer; min-height:44px; padding:11px 14px; font-size:12px; color:#435c4b; list-style:none; }
.advanced-filters summary::-webkit-details-marker { display:none; }
.advanced-filters summary>.icon { width:16px; height:16px; }
.advanced-filters summary>.icon:last-child { margin-left:auto; transition:transform .2s; }
.advanced-filters[open] summary>.icon:last-child { transform:rotate(180deg); }
.filter-indicator { width:6px; height:6px; background:#65786b; border-radius:50%; }
.filter-fields { padding:0 14px 14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.filter-fields label { display:flex; flex-direction:column; gap:7px; font-size:12px; color:#65786b; min-width:0; }
.filter-fields select { width:100%; min-width:0; height:43px; padding:8px 10px; background:#fff; border:1px solid #e7ebe8; border-radius:8px; color:#2d4134; font-size:13px; }
.results-summary { min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:12px; color:#65786b; }
.results-summary strong { color:#435c4b; font-weight:600; }
.results-summary .text-button { font-size:12px; }
.results-summary .text-button .icon { width:13px; height:13px; }
.list-note { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:20px; line-height:1.7; font-size:12px; }
.list-note>.icon { width:16px; height:16px; flex-shrink:0; }
.cards-grid,.ad-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:18px; }
#list-results .cards-grid>*,#list-results .ad-grid>* { animation:none; }
.filter-indicator[hidden] { display:none; }
.account-card h3,.ad-body h3 { font-size:16px; }
.account-card p,.ad-body p { font-size:12px; }
.account-card-info span { font-size:11px; line-height:1.5; }
.account-card-info strong { font-size:24px; }
.account-metric { text-align:left; min-width:70px; border-radius:7px; }
.account-metric:hover strong,.account-metric:hover span { color:#435c4b; }
.account-metric span { display:flex; align-items:center; gap:5px; }
.account-metric .icon { width:13px; height:13px; }
.account-actions { display:flex; flex-direction:column; align-items:stretch; gap:6px; }
.account-actions .button,.account-actions .text-button { justify-content:center; font-size:12px; }
.add-account-card strong { font-size:15px; }
.add-account-card p { font-size:12px; }
.ad-stats { font-size:12px; }
.ad-actions { gap:9px; flex-wrap:wrap; }
.ad-actions .button { flex:1; padding-left:11px; padding-right:11px; font-size:12px; white-space:nowrap; min-height:42px; }
.ad-toggle .icon { width:14px; }
.pagination { font-size:12px; gap:12px; flex-wrap:wrap; }
.pagination-buttons button { min-width:38px; height:38px; font-size:12px; }
.pagination-buttons button:disabled { opacity:.4; cursor:default; }
.field label { font-size:13px; }
.field input,.field select { min-height:44px; }
.field .hint,.form-check { font-size:12px; line-height:1.65; }
.modal-description,.notice,.section-note { line-height:1.7; }
.form-actions .button { min-height:44px; }
.footer { font-size:10px; }
.footer button { min-height:32px; }

@media(min-width:761px) {
  .sidebar { width:var(--nav-width); transform:none; }
  .main { margin-left:var(--nav-width); }
  .nav-compact .sidebar { width:80px; padding-left:10px; padding-right:10px; }
  .nav-compact .main { margin-left:80px; }
  .nav-compact .sidebar-head { justify-content:center; padding-left:0; padding-right:0; }
  .nav-compact .brand-copy,.nav-compact .nav-label,.nav-compact .user-copy,.nav-compact .user-button>.icon { display:none; }
  .nav-compact .nav-group-label { height:20px; margin:9px 7px 0; padding:0; font-size:0; border-top:1px solid #2d4134; }
  .nav-compact .nav-group-label:first-child { margin-top:0; border-top:0; }
  .nav-compact .nav-item { position:relative; justify-content:center; padding:13px 10px; }
  .nav-compact .nav-count { position:absolute; right:1px; top:1px; min-width:16px; padding:0 3px; font-size:9px; background:#435c4b; }
  .nav-compact .user-button { justify-content:center; padding-left:0; padding-right:0; }
  .nav-compact .profile-menu { left:80px; bottom:16px; }
}
@media(min-width:761px) and (max-width:1100px) {
  :root { --nav-width:220px; }
  .content { padding:26px 24px; }
  .topbar { padding:0 22px; gap:10px; }
  .breadcrumbs { font-size:12px; }
  .breadcrumb-home,.breadcrumbs .slash { display:none; }
  .command-trigger { width:190px; }
  .next-actions-grid { gap:9px; }
  .next-action { gap:9px; padding:13px 10px; }
  .next-action-icon { display:none; }
  .toolbar { align-items:stretch; }
  .toolbar .search-field { max-width:none; }
}
@media(max-width:760px) {
  .sidebar { width:min(312px,calc(100vw - 44px)); visibility:hidden; pointer-events:none; padding:18px 14px 16px; background:#2d4134; z-index:100; transition:transform .25s var(--ease-soft),visibility .25s; }
  .sidebar.open { visibility:visible; pointer-events:auto; transform:translateX(0); }
  .sidebar-close { display:inline-flex; color:#b4c0b7; }
  .sidebar-close:hover { background:#2d4134; color:#fff; }
  .sidebar .nav-item { min-height:46px; font-size:14px; }
  .sidebar .nav-group-label { padding-top:18px; font-size:10px; }
  .sidebar .nav-group-label:first-child { padding-top:7px; }
  .sidebar.open+.mobile-backdrop { display:block; position:fixed; inset:0; z-index:99; width:100%; height:100%; background:#2d413455; }
  .sidebar-bottom { padding-top:10px; }
  .main { margin-left:0; }
  .desktop-menu-toggle { display:none; }
  .topbar { gap:8px; height:64px; padding:0 14px; }
  .breadcrumbs { flex:1; font-size:12px; }
  .breadcrumb-home,.breadcrumbs .slash { display:none; }
  .command-trigger { width:40px; min-width:40px; height:40px; margin-left:auto; justify-content:center; padding:10px; background:transparent; border:0; }
  .command-trigger span,.command-trigger kbd { display:none; }
  .command-trigger .icon { width:19px; height:19px; }
  .topbar-actions { gap:4px; }
  .topbar-avatar { width:34px; height:34px; font-size:11px; }
  .topbar-demo-button { display:none; }
  .profile-menu { z-index:110; left:22px; bottom:84px; }
  .mobile-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:fixed; left:0; right:0; bottom:0; z-index:55; background:#ffffffef; border-top:1px solid #e7ebe8; box-shadow:0 -3px 15px #2d413405; padding:6px 8px calc(7px + env(safe-area-inset-bottom)); backdrop-filter:blur(15px); -webkit-backdrop-filter:blur(15px); }
  .mobile-nav button { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-height:49px; font-size:10px; font-weight:500; color:#65786b; border-radius:9px; }
  .mobile-nav button .icon { width:20px; height:20px; }
  .mobile-nav button.active { color:#435c4b; background:#f4f6f4; }
  .mobile-nav button i { position:absolute; width:5px; height:5px; top:5px; left:calc(50% + 9px); background:#65786b; border-radius:50%; }
  .content { padding:25px 18px calc(95px + env(safe-area-inset-bottom)); }
  .page-heading { gap:16px; margin-bottom:20px; }
  .page-heading h1 { font-size:26px; }
  .page-heading p { font-size:13px; margin-top:7px; }
  .page-actions { flex-wrap:wrap; width:100%; }
  .page-actions .button { min-height:44px; font-size:12px; }
  .period-select { height:44px; font-size:12px; width:130px; }
  .period-control>.icon { top:15px; }
  .kpis { gap:12px; }
  .stat-label { font-size:12px; }
  .stat-bottom,.trend { font-size:10px; }
  .stat-value { font-size:27px; }
  .next-actions { padding:16px; margin-top:18px; }
  .next-actions-grid { grid-template-columns:1fr; gap:8px; }
  .next-action { padding:13px 12px; min-height:73px; }
  .next-action strong { font-size:13px; }
  .next-action small { font-size:12px; }
  .next-actions h2 { font-size:15px; }
  .dashboard-middle { margin-top:18px; }
  .toolbar { flex-direction:column; align-items:stretch; gap:12px; margin-top:20px; }
  .toolbar .search-field { order:-1; width:100%; max-width:none; min-width:0; }
  .search-field input { font-size:16px; height:46px; }
  .search-field>.icon { top:15px; }
  .tabs { width:100%; max-width:none; flex-wrap:wrap; padding:4px; gap:2px; }
  .tab { font-size:12px; min-height:40px; padding:9px 10px; flex:1 0 auto; }
  .tab-count { font-size:10px; }
  .filter-fields { grid-template-columns:1fr; gap:12px; }
  .filter-fields select { height:44px; font-size:16px; }
  .advanced-filters summary { min-height:46px; font-size:13px; }
  .results-summary { font-size:12px; min-height:54px; }
  .results-summary .text-button { font-size:11px; min-height:40px; }
  .list-note { font-size:12px; }
  .order-table,.manager-orders .order-table { display:block; min-width:0; width:100%; white-space:normal; }
  .order-table thead { display:none; }
  .order-table tbody { display:block; }
  .order-table tbody tr { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; padding:20px 18px; border-top:1px solid #e7ebe8; }
  .order-table tbody tr:first-child { border-top:0; }
  .order-table tbody td,.manager-orders .order-table tbody td { display:block; padding:0; border:0; font-size:12px; line-height:1.6; min-width:0; }
  .order-table tbody td:first-child { grid-column:1/-1; padding-right:0; }
  .order-table .order-title,.data-table .order-title { font-size:14px; margin-bottom:5px; line-height:1.6; white-space:normal; }
  .order-table .order-id,.data-table .order-id { font-size:11px; color:#65786b; }
  .order-table tbody td[data-label]::before { content:attr(data-label); display:block; color:#65786b; font-size:10px; font-weight:400; line-height:1.5; margin-bottom:5px; }
  .order-table tbody td:nth-child(2) { font-size:12px; color:#435c4b; }
  .order-table tbody td:nth-child(3),.order-table tbody td:nth-child(5) { justify-self:stretch; align-self:start; }
  .order-table .status { font-size:11px; }
  .order-table tbody td:nth-child(4) { font-size:18px; }
  .order-table .manager-cell { font-size:12px; flex-wrap:wrap; }
  .order-table tbody td:last-child,.manager-orders .order-table tbody td:last-child,.manager-orders .order-table tbody tr:has(.table-go) td:last-child { position:static; grid-column:1/-1; justify-self:stretch; padding-top:2px; }
  .order-table .table-go,.manager-orders .order-table tbody td:last-child .button { width:100%; min-height:44px; height:auto; border:1px solid #e7ebe8; border-radius:8px; font-size:12px; background:#fafbfa; color:#435c4b; }
  .table-go-label { display:inline; }
  .order-table td[colspan] { grid-column:1/-1; }
  .order-table td[colspan] .empty { padding:25px 5px; }
  .pagination { padding:15px 17px; justify-content:center; font-size:12px; }
  .pagination>span { width:100%; text-align:center; }
  .pagination-buttons button { min-width:40px; height:42px; }
  .account-card-info span { font-size:12px; }
  .account-actions .button,.account-actions .text-button { font-size:13px; min-height:44px; }
  .ad-body h3 { font-size:16px; }
  .ad-body p,.ad-stats { font-size:13px; }
  .ad-actions .button { min-height:44px; font-size:13px; }
  .field input,.field select,.field textarea { font-size:16px; }
  .field label { font-size:13px; }
  .field .hint,.form-check { font-size:12px; }
  .modal { max-height:calc(100dvh - 30px); }
  .modal-description,.notice,.section-note { font-size:12px; }
  .icon-button.modal-close { min-width:44px; min-height:44px; }
  .toast { bottom:calc(82px + env(safe-area-inset-bottom)); font-size:12px; }
  .footer { font-size:10px; gap:12px; }
  .footer-links { flex-wrap:wrap; font-size:10px; }
}
@media(max-width:370px) {
  .topbar { padding:0 9px; gap:4px; }
  .topbar-actions { gap:0; }
  .breadcrumbs { font-size:11px; }
  .content { padding-left:14px; padding-right:14px; }
  .stat-card { padding:17px 12px; }
  .stat-value { font-size:24px; }
  .stat-label { font-size:11px; }
  .stat-icon { display:none; }
  .page-actions .button { font-size:11px; padding:9px 11px; }
  .tab { font-size:11px; padding:9px 8px; }
}
