/* SimpleERP app shell — dark green top bar, white module menu, light green-grey workspace, white panels. */

:root {
    --green-950: #082e24;
    --green-900: #0b3f31;
    --green-800: #145040;
    --green-700: #1d5f4d;
    --accent-600: #0f6b4b;
    --accent-700: #0a4f39;
    --accent-50: #ddf1e7;
    --mint-300: #7fe0b5;
    --mint-200: #bfe3d2;

    --grey-25: #f8faf9;
    --grey-50: #f3f6f4;
    --grey-75: #eef3f0;
    --grey-100: #e3eae6;
    --grey-200: #d5dfd9;
    --grey-300: #b9c8bf;
    --grey-400: #8fa197;
    --grey-500: #4d6257;
    --grey-700: #33463c;
    --grey-900: #14231b;

    --danger-700: #8a1f17;

    --topbar-height: 56px;
    --radius: 10px;

    --font-heading: "Manrope", "Source Sans 3", system-ui, sans-serif;
    --bs-body-font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--grey-900);
    --bs-body-bg: var(--grey-50);
    --bs-primary: var(--accent-600);
    --bs-primary-rgb: 15, 107, 75;
    --bs-link-color: var(--accent-600);
    --bs-link-color-rgb: 15, 107, 75;
    --bs-link-hover-color: var(--accent-700);
    --bs-link-hover-color-rgb: 10, 79, 57;
    --bs-border-color: var(--grey-200);
    --bs-secondary-color: var(--grey-500);
    --bs-secondary-rgb: 77, 98, 87;
    --bs-danger: var(--danger-700);
    --bs-danger-rgb: 138, 31, 23;
}

body {
    background: var(--grey-50);
    font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--font-heading); }

.text-secondary { color: var(--grey-500) !important; }
.text-danger { color: var(--danger-700) !important; }

:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 2px; }

/* ---------- Buttons ---------- */

.btn-primary {
    --bs-btn-bg: var(--accent-600);
    --bs-btn-border-color: var(--accent-600);
    --bs-btn-hover-bg: var(--accent-700);
    --bs-btn-hover-border-color: var(--accent-700);
    --bs-btn-active-bg: var(--green-900);
    --bs-btn-active-border-color: var(--green-900);
    --bs-btn-disabled-bg: var(--accent-600);
    --bs-btn-disabled-border-color: var(--accent-600);
    --bs-btn-focus-shadow-rgb: 15, 107, 75;
    font-weight: 700;
}

.btn-outline-primary {
    --bs-btn-color: var(--accent-600);
    --bs-btn-border-color: var(--grey-300);
    --bs-btn-hover-bg: var(--accent-50);
    --bs-btn-hover-color: var(--accent-700);
    --bs-btn-hover-border-color: var(--accent-600);
    --bs-btn-active-bg: var(--accent-50);
    --bs-btn-active-color: var(--accent-700);
    --bs-btn-active-border-color: var(--accent-600);
}

.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--grey-300);
    --bs-btn-color: var(--grey-900);
    --bs-btn-hover-bg: var(--grey-75);
    --bs-btn-hover-border-color: var(--grey-400);
}

.btn-link { --bs-btn-color: var(--accent-600); --bs-btn-hover-color: var(--accent-700); }

.btn { border-radius: 8px; font-weight: 600; }

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-control, .form-select {
    border-color: var(--grey-300);
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-600);
    box-shadow: 0 0 0 0.2rem rgba(15, 107, 75, 0.15);
}

.form-check-input:checked { background-color: var(--accent-600); border-color: var(--accent-600); }
.form-check-input:focus { border-color: var(--accent-600); box-shadow: 0 0 0 0.2rem rgba(15, 107, 75, 0.15); }

.form-label { color: var(--grey-700); font-weight: 600; font-size: 0.875rem; }

.dropdown-item.active, .dropdown-item:active { background: var(--accent-50); color: var(--grey-900); }

.page-link { color: var(--accent-600); }
.active > .page-link, .page-link.active { background-color: var(--accent-600); border-color: var(--accent-600); }

/* ---------- App shell: dark green top bar + white module menu bar ---------- */

body { display: flex; flex-direction: column; min-height: 100vh; }

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    background: var(--green-900);
    color: #fff;
}

.app-topbar :focus-visible { outline-color: var(--mint-200); }

.brand-link {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-link:hover { color: #fff; }

.brand-mark {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

/* Home link (in front of the module switcher) */
.topbar-home {
    flex: none;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.topbar-home .bi { color: var(--mint-200); }
.topbar-home:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.topbar-home.active { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Module switcher (dropdown next to the home link) */
.module-switcher { min-width: 0; }

.module-switcher-btn {
    max-width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.module-switcher-btn:hover,
.module-switcher-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); }
.module-switcher-btn:focus-visible { outline: 2px solid var(--mint-200); outline-offset: 2px; }

.module-switcher-label { flex: none; font-size: 0.75rem; font-weight: 500; color: var(--mint-200); }
.module-switcher-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-switcher-caret { flex: none; font-size: 0.75rem; }

.module-menu { min-width: 320px; padding: 6px; margin-top: 8px !important; border-color: var(--grey-200); border-radius: 10px; box-shadow: 0 14px 34px rgba(8, 30, 22, 0.28); }
.module-menu .dropdown-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--grey-900); white-space: normal; }
.module-menu .dropdown-item:hover { background: var(--grey-75); }
.module-menu .dropdown-item.active,
.module-menu .dropdown-item:active { background: var(--accent-50); color: var(--grey-900); }
.module-menu-title { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.module-menu-current { font-size: 0.75rem; font-weight: 600; color: #0b5a3e; }
.module-menu-desc { font-size: 0.8125rem; color: var(--grey-500); }
.module-menu .module-menu-manage { color: var(--accent-600); font-weight: 600; }
.module-menu .dropdown-divider { margin: 4px 6px; border-color: var(--grey-100); }

.topbar-actions { margin-left: auto; min-width: 0; display: flex; align-items: center; gap: 16px; }

/* Command search */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.topbar-search:focus-within { background: rgba(255, 255, 255, 0.18); outline: 2px solid var(--mint-200); outline-offset: 2px; }
.topbar-search > .bi { color: var(--mint-200); }
.topbar-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 0.875rem; outline: none; }
.topbar-search input::placeholder { color: rgba(255, 255, 255, 0.72); }
.topbar-search input::-webkit-search-cancel-button { display: none; }
.topbar-search kbd { flex: none; padding: 1px 6px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; background: none; color: var(--mint-200); font-family: inherit; font-size: 0.75rem; }

.command-results { top: 46px; left: 0; width: 100%; min-width: 300px; padding: 6px; border-color: var(--grey-200); border-radius: 10px; box-shadow: 0 14px 34px rgba(8, 30, 22, 0.28); }
.command-results .dropdown-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 8px; color: var(--grey-900); white-space: normal; }
.command-results .dropdown-item.active,
.command-results .dropdown-item:hover { background: var(--accent-50); color: var(--grey-900); }
.command-hint { font-size: 0.8125rem; color: var(--grey-500); }
.command-empty { padding: 8px 12px; color: var(--grey-500); }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #fff;
    font-size: 0.875rem;
}

.user-btn:hover, .user-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
.user-btn:focus-visible { outline: 2px solid var(--mint-200); outline-offset: 2px; }
.user-btn .avatar { flex: none; width: 32px; height: 32px; background: var(--mint-300); color: var(--green-900); font-weight: 700; font-size: 0.8rem; }
.user-btn-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--accent-50);
    color: var(--accent-700);
    font-weight: 700;
    font-size: 0.9rem;
}

.user-menu { min-width: 240px; margin-top: 6px !important; border-color: var(--grey-200); border-radius: 10px; box-shadow: 0 14px 34px rgba(8, 30, 22, 0.2); }
.user-menu .user-menu-header { padding: 10px 16px 12px; border-bottom: 1px solid var(--grey-100); margin-bottom: 6px; }

/* Module menu bar (tabs) */
.app-subnav {
    display: flex;
    align-items: stretch;
    gap: 0 28px;
    padding: 0 24px;
    background: #fff;
    border-bottom: 1px solid var(--grey-200);
    overflow-x: auto;
}

.subnav-link {
    display: flex;
    align-items: center;
    padding: 13px 2px 11px;
    border-bottom: 2px solid transparent;
    color: var(--grey-500);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.subnav-link:hover { color: var(--grey-900); }
.subnav-link.active { color: var(--grey-900); font-weight: 600; border-bottom-color: var(--accent-600); }
.subnav-badge { margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-600); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.6; text-align: center; }

.app-content { flex: 1; width: 100%; padding: 24px; }

.page-title { margin: 0 0 20px; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--grey-900); overflow-wrap: anywhere; }

.app-footer { padding: 12px 24px; font-size: 0.8rem; color: var(--grey-500); }

/* ---------- Panels (cards) ---------- */

.panel {
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.panel-header + .panel-body { padding-top: 0; }

.panel-title { margin: 0; font-family: var(--font-heading); font-size: 1.06rem; font-weight: 700; color: var(--grey-900); }
.panel-subtitle { margin: 2px 0 0; font-size: 0.82rem; color: var(--grey-500); }

.panel-body { padding: 16px 20px; }

.panel-body-flush { border-top: 1px solid var(--grey-100); }

/* Welcome banner (dashboard) */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.welcome-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--accent-50);
    border: 1px solid var(--mint-200);
    color: var(--accent-600);
    font-size: 1.5rem;
}

.welcome-title { margin: 0; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; }
.min-w-0 { min-width: 0; }

/* Key/value rows inside info panels */
.info-list { margin: 0; }
.info-list .info-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--grey-100); }
.info-list .info-row:last-child { border-bottom: 0; }
.info-list dt { font-weight: 600; color: var(--grey-500); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.quick-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    color: var(--grey-900);
    text-decoration: none;
}

.quick-link:hover { border-color: var(--accent-600); background: var(--grey-75); color: var(--grey-900); }
.quick-link-icon { flex: none; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-600); font-size: 1.15rem; }

/* ---------- Tables ---------- */

.table-app { margin: 0; --bs-table-hover-bg: var(--grey-25); }
.table-app > :not(caption) > * > * { padding: 11px 20px; border-bottom-color: var(--grey-100); }
.table-app thead th {
    background: var(--grey-75);
    color: var(--grey-500);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom-color: var(--grey-300);
}
.table-app tbody tr:last-child > * { border-bottom: 0; }

/* DataTables controls inside a flush panel */
.panel-body-flush .dt-container { font-size: 0.9rem; }
.panel-body-flush .dt-container > .dt-layout-row { margin: 0; padding: 10px 20px; }
.panel-body-flush .dt-container > .dt-layout-row.dt-layout-table { padding: 0; }
.panel-body-flush .dt-container .dt-layout-cell { padding: 0; }
.panel-body-flush .dt-container .dt-search input,
.panel-body-flush .dt-container .dt-length select { font-size: 0.9rem; }
.panel-body-flush .dt-container .pagination { margin: 0; }
.panel-body-flush table.dataTable { border-top: 1px solid var(--grey-100); }

/* ---------- Badges / pills ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--grey-75);
    color: var(--grey-700);
    border: 1px solid var(--grey-200);
}

.pill-mono { font-family: var(--bs-font-monospace); }
.pill-role { background: var(--accent-50); color: var(--accent-700); border-color: var(--mint-200); }
.pill-active { background: #e3f4ea; color: #0b5a3e; border-color: #c4e6d3; }
.pill-inactive { background: #fbeceb; color: var(--danger-700); border-color: #f0d0cd; }
.pill-active::before, .pill-inactive::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-pending { background: #fff0d1; color: #6b4300; border-color: #e0b964; }

/* ---------- Modules and subscription ---------- */

.module-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.module-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.module-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.module-card-title { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; }
.module-card-head .pill { flex: none; white-space: nowrap; }
.module-card-desc { color: var(--grey-700); line-height: 1.45; }
.module-card-note { font-size: 0.85rem; color: var(--grey-500); }
.module-card-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.module-card-btn { height: 44px; display: inline-flex; align-items: center; padding: 0 16px; }

.btn-outline-danger { --bs-btn-color: var(--danger-700); --bs-btn-border-color: #e3a39c; --bs-btn-hover-bg: #fbeceb; --bs-btn-hover-color: var(--danger-700); --bs-btn-hover-border-color: var(--danger-700); --bs-btn-active-bg: #fbeceb; --bs-btn-active-color: var(--danger-700); --bs-btn-active-border-color: var(--danger-700); background: #fff; }

/* Module price list */
.price-list { display: flex; flex-direction: column; gap: 20px; }
.price-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; padding: 0 20px 16px; }
.price-form-submit .btn { height: 38px; }
.module-card-price { font-weight: 700; }
.module-card-price-unit { font-weight: 400; color: var(--grey-500); }
.module-card-foot .module-card-price { margin-right: auto; }

/* ---------- Empty state ---------- */

.empty-state { padding: 48px 16px; text-align: center; color: var(--grey-500); }
.empty-state i { display: block; font-size: 2.4rem; color: var(--grey-300); margin-bottom: 10px; }

/* ---------- Alerts / modals ---------- */

.alert { border-radius: 10px; }
.modal-content { border: 0; border-radius: var(--radius); }
.modal-header, .modal-footer { border-color: var(--grey-100); }
.modal-title { font-family: var(--font-heading); font-weight: 700; }
.modal-footer { background: var(--grey-25); border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.form-section-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 14px; }

/* ---------- Home page ---------- */

.home-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-date { font-size: 0.875rem; color: var(--grey-500); }
.home-greeting { margin: 4px 0 0; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--grey-900); overflow-wrap: anywhere; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-action { height: 44px; display: inline-flex; align-items: center; padding: 0 16px; }

.home-grid { display: flex; flex-direction: column; gap: 20px; }

/* Key figures: tiles separated by 1px lines */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--grey-200);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: #fff; color: var(--grey-900); text-decoration: none; }
.kpi:hover { background: var(--grey-25); color: var(--grey-900); }
.kpi-module { font-size: 0.8125rem; font-weight: 600; color: var(--grey-500); }
.kpi-value { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-note { font-size: 0.8125rem; color: var(--grey-500); }

.home-row { display: flex; flex-wrap: wrap; gap: 20px; }
.home-chart { flex: 2 1 560px; min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.home-todo { flex: 1 1 340px; min-width: 0; padding: 20px; display: flex; flex-direction: column; }

.home-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.home-panel-head-pad { padding: 16px 20px 12px; }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 16px; height: 210px; padding-top: 8px; border-bottom: 1px solid var(--grey-300); }
.bar-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-value { font-size: 0.78rem; color: var(--grey-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { width: 100%; max-width: 64px; background: #9fd2b9; border-radius: 4px 4px 0 0; }
.bar-current { background: var(--accent-600); }
.bar-labels { display: flex; gap: 16px; }
.bar-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0.8125rem; color: var(--grey-500); }

/* To do */
.todo-item { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-top: 1px solid var(--grey-100); color: var(--grey-900); text-decoration: none; }
.todo-item:hover { color: var(--accent-700); }
.todo-module { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #0b5a3e; }
.todo-text { display: flex; justify-content: space-between; gap: 12px; }
.todo-count { flex: none; min-width: 28px; padding: 0 8px; border-radius: 999px; background: #fbeceb; color: var(--danger-700); font-weight: 700; font-size: 0.8125rem; text-align: center; line-height: 1.6; }
.todo-empty { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--grey-100); color: var(--grey-500); }
.todo-empty .bi { color: var(--accent-600); font-size: 1.1rem; }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
.home-groups { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.group-row { display: flex; flex-direction: column; gap: 6px; }
.group-label { display: flex; justify-content: space-between; gap: 12px; }
.group-track { height: 8px; border-radius: 4px; background: var(--grey-100); }
.group-fill { height: 8px; border-radius: 4px; background: var(--accent-600); }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Login ---------- */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.login-aside {
    background: var(--green-900);
    color: var(--mint-200);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-aside h1 { color: #fff; font-size: 2rem; font-weight: 800; line-height: 1.25; max-width: 440px; }
.login-aside .login-feature { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.login-aside .login-feature i { color: var(--mint-300); font-size: 1.1rem; }

.login-form-wrap { display: grid; place-items: center; padding: 32px 16px; background: var(--grey-50); }
.login-card { width: 100%; max-width: 380px; }
.login-logo { display: block; width: 200px; height: auto; margin: 0 auto 28px; border-radius: 14px; mix-blend-mode: multiply; }

/* ---------- Mobile ---------- */

@media (max-width: 991.98px) {
    .app-topbar { gap: 12px; padding: 0 16px; }
    .app-subnav { padding: 0 8px; }
    .app-content { padding: 16px; }
    .app-footer { padding: 12px 16px; }
    .user-btn-name { display: none; }
    .topbar-search { width: 200px; }
    .login-page { grid-template-columns: 1fr; }
    .login-aside { display: none; }
}

@media (max-width: 767.98px) {
    .price-form { grid-template-columns: 1fr 1fr; }
    .price-form-submit { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .module-cards { grid-template-columns: 1fr; }
    .brand-name, .topbar-search kbd, .module-switcher-label, .topbar-home-name { display: none; }
    .topbar-home { padding: 0 10px; }
    .topbar-actions { flex: 1; gap: 8px; }
    .topbar-search { width: auto; flex: 1; min-width: 0; }
    .command-results { min-width: 0; }
    .page-title, .home-greeting { font-size: 1.4rem; }
    .home-cards { grid-template-columns: 1fr; }
    .bar-chart, .bar-labels { gap: 6px; }
    .bar-value { font-size: 0.7rem; }
}
