/* Google Style Portal CSS - ISP Billing Management */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #3c4043;
    height: 100vh;
    overflow: hidden;
}

/* Google color tokens */
:root {
    --google-blue: #1a73e8;
    --google-red: #ea4335;
    --google-yellow: #fbbc04;
    --google-green: #34a853;
    --grey-100: #f1f3f4;
    --grey-200: #e8eaed;
    --grey-300: #dadce0;
    --grey-600: #5f6368;
    --grey-800: #3c4043;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 8px rgba(0,0,0,0.1), 0 6px 12px rgba(0,0,0,0.05);
    --border-radius-card: 20px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --transition: all 0.2s ease;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- SIDEBAR (expanded / collapsed) --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    box-shadow: 1px 0 0 var(--grey-200);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 20px 16px 16px 16px;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 12px;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 500;
    color: #202124;
    text-decoration: none;
}

.sidebar-header .logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar.collapsed .logo-img {
    margin: 0 auto;
}

.sidebar-header .logo-text {
    font-size: 18px;
    font-weight: 600;
}

.sidebar.collapsed .logo-text {
    display: none;
}

/* Menu items */
.nav-section {
    padding: 0 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 28px;
    color: var(--grey-800);
    font-weight: 500;
    transition: background 0.15s;
    cursor: default;
    position: relative;
    text-decoration: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
}

.nav-item i,
.nav-item .material-icons {
    font-size: 24px;
    color: var(--grey-600);
    min-width: 24px;
    text-align: center;
}

.nav-item .item-text {
    flex: 1;
    margin-left: 16px;
    font-size: 15px;
}

.sidebar.collapsed .item-text,
.sidebar.collapsed .chevron {
    display: none;
}

.nav-item .chevron {
    font-size: 20px;
    color: var(--grey-600);
    transition: transform 0.2s;
}

.nav-item.active {
    background-color: #e8f0fe;
    color: var(--google-blue);
}

.nav-item.active i,
.nav-item.active .material-icons {
    color: var(--google-blue);
}

.nav-item:hover:not(.active) {
    background-color: var(--grey-100);
}

/* Submenu (hidden by default, ditampilkan jika parent expanded) */
.submenu {
    list-style: none;
    padding-left: 48px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.sidebar.collapsed .submenu {
    display: none;
}

.submenu.show {
    max-height: 400px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 10px;
    margin-left: -10px;
    font-size: 14px;
    color: var(--grey-600);
    border-radius: 20px;
    transition: background 0.1s;
    cursor: default;
    text-decoration: none;
}

.submenu-item i,
.submenu-item .material-icons {
    font-size: 18px;
    margin-right: 12px;
    color: var(--grey-500);
}

.submenu-item:hover {
    background-color: var(--grey-100);
    color: var(--grey-800);
}

.submenu-item.active-sub {
    background-color: #e8f0fe;
    color: var(--google-blue);
    font-weight: 600;
}

.submenu-item.active-sub .material-icons {
    color: var(--google-blue);
}

.nav-divider {
    height: 1px;
    background-color: var(--grey-200);
    margin: 16px 12px;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Header ala Google */
.header {
    background-color: white;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--grey-600);
}

.menu-toggle:hover {
    background-color: var(--grey-100);
}

.menu-toggle i,
.menu-toggle .material-icons {
    font-size: 24px;
}

.header-left h1 {
    font-size: 22px;
    font-weight: 450;
    color: #202124;
    margin-right: 8px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--grey-100);
    border-radius: 24px;
    padding: 6px 16px;
    width: 360px;
}

.search-bar i,
.search-bar .material-icons {
    color: var(--grey-600);
    font-size: 20px;
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: transparent;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: var(--grey-600);
    cursor: default;
    position: relative;
}
.header-icon-btn {
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    text-decoration: none;
}
.header-icon-btn:hover { background-color: var(--grey-100); }

.header-icon i,
.header-icon .material-icons {
    font-size: 24px;
}

/* ── Header dropdown panels ── */
.hdr-panel-wrap { position: relative; }
.hdr-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.08);
    padding: 12px 0 8px;
    z-index: 1500;
    animation: hdrPanelIn .18s ease;
}
.hdr-panel.hdr-panel-open { display: block; }
@keyframes hdrPanelIn {
    from { opacity:0; transform: translateY(-8px) scale(.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
.hdr-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #202124;
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 6px;
}
.hdr-panel-section { padding: 8px 14px; }
.hdr-panel-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--grey-600);
    margin-bottom: 6px;
}
.hdr-seg {
    display: flex;
    gap: 6px;
}
.hdr-seg-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1.5px solid var(--grey-300);
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--grey-800);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.hdr-seg-btn:hover { border-color: var(--google-blue); color: var(--google-blue); }
.hdr-seg-btn.hdr-seg-active {
    background: #e8f0fe;
    border-color: var(--google-blue);
    color: var(--google-blue);
    font-weight: 600;
}

/* Notifications panel */
.hdr-panel-notif { min-width: 280px; }
.hdr-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    color: var(--grey-600);
    gap: 8px;
}
.hdr-notif-empty .material-icons { font-size: 36px; color: var(--grey-300); }
.hdr-notif-empty p { font-size: 13px; margin: 0; }
.hdr-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--grey-100);
    cursor: pointer;
    transition: background .15s;
}
.hdr-notif-item:hover { background: var(--grey-100); }
.hdr-notif-item .material-icons { font-size: 20px; color: var(--google-blue); margin-top: 1px; flex-shrink: 0; }
.hdr-notif-item-body { flex: 1; min-width: 0; }
.hdr-notif-item-title { font-size: 13px; font-weight: 600; color: #202124; }
.hdr-notif-item-sub   { font-size: 12px; color: var(--grey-600); margin-top: 2px; }

/* ── Search results dropdown ── */
.search-bar { position: relative; }
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 360px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
    z-index: 300;
    overflow: hidden;
    animation: hdrPanelIn .15s ease;
}
.sr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #202124;
    border-bottom: 1px solid var(--grey-100);
    transition: background .13s;
}
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: #e8f0fe; }
.sr-icon { font-size: 18px !important; color: var(--google-blue); flex-shrink: 0; }
.sr-text  { font-size: 13.5px; font-weight: 500; flex: 1; }
.sr-path  { font-size: 11px; color: var(--grey-600); }
.sr-empty { padding: 14px 16px; font-size: 13px; color: var(--grey-600); }

/* ════════════════════════════════════════════════════════════
   DARK MODE — comprehensive overrides
   ════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --grey-100: #2d2e31;
    --grey-200: #3c3e42;
    --grey-300: #5f6368;
    --grey-600: #9aa0a6;
    --grey-800: #e8eaed;
    --shadow-light: 0 1px 3px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
}

/* Base */
[data-theme="dark"] body            { background-color: #18191b; color: #e8eaed; }
[data-theme="dark"] .app-container  { background-color: #18191b; }
[data-theme="dark"] .main-content   { background-color: #18191b; }
[data-theme="dark"] .content        { background-color: #18191b; }

/* ── Header ── */
[data-theme="dark"] .header         { background-color: #202124; box-shadow: 0 1px 0 #3c3e42; }
[data-theme="dark"] .header-left h1 { color: #e8eaed; }
[data-theme="dark"] .menu-toggle    { color: #9aa0a6; }
[data-theme="dark"] .search-bar     { background-color: #303134; }
[data-theme="dark"] .search-bar .material-icons { color: #9aa0a6; }
[data-theme="dark"] .search-bar input { color: #e8eaed; }
[data-theme="dark"] .search-bar input::placeholder { color: #5f6368; }
[data-theme="dark"] .header-icon    { color: #9aa0a6; }
[data-theme="dark"] .header-icon-btn:hover { background-color: #3c3e42; }

/* Header panels */
[data-theme="dark"] .hdr-panel,
[data-theme="dark"] .search-results,
[data-theme="dark"] .profile-dropdown { background: #202124; border: 1px solid #3c3e42; }
[data-theme="dark"] .hdr-panel-title  { color: #e8eaed; border-color: #3c3e42; }
[data-theme="dark"] .hdr-panel-label  { color: #9aa0a6; }
[data-theme="dark"] .hdr-seg-btn      { background: #303134; border-color: #3c3e42; color: #e8eaed; }
[data-theme="dark"] .hdr-seg-btn:hover { border-color: #8ab4f8; color: #8ab4f8; }
[data-theme="dark"] .hdr-seg-btn.hdr-seg-active { background: #1a3a5c; border-color: #4a8ed8; color: #8ab4f8; }
[data-theme="dark"] .hdr-notif-empty .material-icons { color: #3c3e42; }
[data-theme="dark"] .hdr-notif-empty p { color: #9aa0a6; }
[data-theme="dark"] .sr-item          { color: #e8eaed; border-color: #3c3e42; }
[data-theme="dark"] .sr-item:hover    { background: #1a3a5c; }
[data-theme="dark"] .sr-path          { color: #9aa0a6; }
[data-theme="dark"] .sr-empty         { color: #9aa0a6; }
[data-theme="dark"] .dropdown-item    { color: #e8eaed; }
[data-theme="dark"] .dropdown-item .material-icons { color: #9aa0a6; }
[data-theme="dark"] .dropdown-item:hover { background: #3c3e42; }
[data-theme="dark"] .dropdown-divider  { background-color: #3c3e42; }

/* ── Sidebar ── */
[data-theme="dark"] .sidebar          { background-color: #202124; box-shadow: 1px 0 0 #3c3e42; }
[data-theme="dark"] .sidebar-header   { border-bottom-color: #3c3e42; }
[data-theme="dark"] .sidebar-header .logo { color: #e8eaed; }
[data-theme="dark"] .nav-section .nav-divider { background-color: #3c3e42; }

/* Nav items */
[data-theme="dark"] .nav-item         { color: #e8eaed; }
[data-theme="dark"] .nav-item .material-icons { color: #9aa0a6; }
[data-theme="dark"] .nav-item .chevron { color: #9aa0a6; }
[data-theme="dark"] .nav-item:hover:not(.active) { background-color: #3c3e42; }
[data-theme="dark"] .nav-item.active  { background-color: #1a3a5c; color: #8ab4f8; }
[data-theme="dark"] .nav-item.active .material-icons,
[data-theme="dark"] .nav-item.active .chevron { color: #8ab4f8; }

/* Submenu */
[data-theme="dark"] .submenu-item     { color: #bdc1c6; }
[data-theme="dark"] .submenu-item .material-icons { color: #9aa0a6; }
[data-theme="dark"] .submenu-item:hover { background-color: #3c3e42; color: #e8eaed; }
[data-theme="dark"] .submenu-item:hover .material-icons { color: #8ab4f8; }
[data-theme="dark"] .submenu-item.active-sub { background-color: #1a3a5c; color: #8ab4f8; font-weight: 600; }
[data-theme="dark"] .submenu-item.active-sub .material-icons { color: #8ab4f8; }

.notification-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: var(--google-red);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 20px;
}

.profile-wrapper {
    position: relative;
}

.profile-btn {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.profile-btn:hover {
    background-color: var(--grey-100);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    display: none;
    z-index: 1500;
}

.profile-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--grey-800);
}

.dropdown-item:hover {
    background-color: var(--grey-100);
}

.dropdown-item .material-icons {
    font-size: 20px;
    color: var(--grey-600);
}

.dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item.danger {
    color: var(--google-red);
}

.dropdown-item.danger:hover {
    background-color: #fce8e6;
}

.dropdown-item.danger .material-icons {
    color: var(--google-red);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--grey-200);
    margin: 8px 0;
}

/* Dashboard grid untuk modul portal */
.portal-grid {
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ========================================
   CONTENT PADDING
   ======================================== */
.content {
    padding: 28px 32px;
}

/* ========================================
   STATS GRID & CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 24px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h4 {
    font-size: 12px;
    color: var(--grey-600);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-info p {
    font-size: 32px;
    font-weight: 700;
    color: #202124;
    margin: 0;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.blue { background: #e8f0fe; color: #1a73e8; }
.stat-icon.green { background: #e6f4ea; color: #34a853; }
.stat-icon.purple { background: #f3e8fd; color: #9334e6; }
.stat-icon.cyan { background: #e0f7fa; color: #00bcd4; }
.stat-icon.pink { background: #fce4ec; color: #e91e63; }

/* ========================================
   SECTIONS
   ======================================== */
.section {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #202124;
}

/* ========================================
   TABLES
   ======================================== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--grey-300);
}

th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--grey-600);
    background: #f8f9fa;
}

tr:hover {
    background-color: var(--grey-100);
}

/* Status badges */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: #e6f4ea; color: #34a853; }
.badge-danger { background: #fce8e6; color: #ea4335; }
.badge-warning { background: #fef7e0; color: #fbbc04; }

/* ========================================
   LINKS & BUTTONS
   ======================================== */
.view-all {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.btn-primary {
    background: #1a73e8;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .material-icons {
    font-size: 64px;
    color: var(--grey-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #202124;
}

.empty-state p {
    color: var(--grey-600);
    margin-bottom: 24px;
}

.portal-card {
    background-color: white;
    border-radius: var(--border-radius-card);
    padding: 24px 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    cursor: default;
    position: relative;
    text-decoration: none;
}

.portal-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-icon {
    background-color: #e8f0fe;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    color: var(--google-blue);
}

.card-icon i,
.card-icon .material-icons {
    font-size: 32px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #202124;
}

.card-desc {
    font-size: 14px;
    color: var(--grey-600);
    line-height: 1.4;
}

.card-arrow {
    color: var(--grey-400);
    margin-left: 12px;
    align-self: center;
}

.card-arrow i,
.card-arrow .material-icons {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 900px) {
    .app-container {
        position: relative;
        height: 100dvh;
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        max-width: 320px;
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        z-index: 1300;
        box-shadow: 8px 0 22px rgba(0, 0, 0, 0.22);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar.collapsed {
        width: min(84vw, 320px);
    }

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .item-text,
    .sidebar.collapsed .chevron {
        display: inline;
    }

    .sidebar.collapsed .logo-img {
        margin: 0;
    }

    .sidebar.collapsed .nav-item {
        justify-content: flex-start;
        padding: 10px 12px;
    }

    .main-content {
        min-width: 0;
        width: 100%;
    }

    .header {
        min-height: 56px;
        padding: 8px 12px;
        gap: 8px;
    }

    .header-left {
        min-width: 0;
        flex: 1;
        gap: 8px;
    }

    .header-left h1 {
        margin-right: 0;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: min(38vw, 180px);
    }

    .search-bar {
        width: min(42vw, 210px);
        min-width: 112px;
        padding: 6px 10px;
    }

    .search-bar input {
        font-size: 14px;
    }

    .search-results {
        width: min(92vw, 360px);
    }

    .header-right {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-icon-btn,
    .profile-btn {
        width: 36px;
        height: 36px;
    }

    .header-icon .material-icons,
    .profile-icon {
        font-size: 22px;
    }

    .hdr-panel {
        position: fixed;
        top: 60px;
        right: 10px;
        left: auto;
        max-width: calc(100vw - 20px);
        z-index: 1500;
    }

    .hdr-panel-notif {
        min-width: 0;
        width: min(92vw, 360px);
    }

    .profile-dropdown {
        right: 0;
        min-width: 190px;
        z-index: 1500;
    }

    .content,
    .portal-grid {
        padding: 14px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header {
        padding: 8px 10px;
    }

    .search-bar {
        display: none;
    }

    .header-left h1 {
        max-width: calc(100vw - 215px);
        font-size: 15px;
    }
}


