:root{--red:#f10808;--blue:#004aad;--ink:#172033;--muted:#657084;--line:#dce3ef;--bg:#f6f8fc}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#fff 0%,#eef4ff 50%,#fff5f5 100%)}.login-card,.form-card{width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-top:5px solid var(--red);border-radius:8px;padding:32px;box-shadow:0 18px 50px rgba(0,74,173,.14)}.form-card{width:min(560px,100%)}.login-logo{width:150px;height:auto;display:block;margin-bottom:16px}h1{margin:0 0 24px;color:var(--blue)}label{display:grid;gap:7px;margin-bottom:16px;font-weight:700}input,select{width:100%;border:1px solid var(--line);border-radius:6px;padding:12px 13px;font:inherit;background:#fff;color:var(--ink)}button{width:100%;border:0;border-radius:6px;padding:13px 16px;background:var(--red);color:#fff;font-weight:800;cursor:pointer}.alert{background:#fff1f1;border:1px solid #ffc7c7;color:#a40000;border-radius:6px;padding:11px 12px;margin-bottom:16px}.alert.success{background:#effaf3;border-color:#bde8c8;color:#126b2f}.alert.danger{background:#fff1f1;border-color:#ffc7c7;color:#a40000}.app-header{min-height:70px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:900;color:var(--blue)}.brand img{width:128px;height:auto}.app-header nav{display:flex;align-items:center;gap:18px;color:var(--muted)}.app-header nav a{color:var(--red);font-weight:800}.module-shell{width:min(1120px,calc(100vw - 32px));margin:34px auto}.hero{padding:34px 0 24px;border-bottom:3px solid var(--blue)}.hero>p,.dashboard-hero-copy>p{margin:0 0 8px;color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:0}.hero h1{font-size:42px;margin:0}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:24px}.module-card{min-height:126px;display:flex;flex-direction:column;justify-content:space-between;background:#fff;border:1px solid var(--line);border-left:5px solid var(--red);border-radius:8px;padding:20px;box-shadow:0 12px 32px rgba(23,32,51,.06)}.module-card span{color:var(--blue);font-size:20px;font-weight:900}.module-card strong{color:var(--red)}@media(max-width:640px){.app-header{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.app-header nav{flex-wrap:wrap}.hero h1{font-size:32px}}
.dashboard-hero small {
    color: #64748b;
    font-size: 14px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
}

.dashboard-hero-copy {
    min-width: 0;
    padding-top: 0;
    margin-top: -4px;
}

.dashboard-hero-copy h1 {
    margin-bottom: 6px;
}

.dashboard-hero-copy small {
    display: block;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 0;
}

.quick-actions a {
    background: #004aad;
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 74, 173, 0.18);
}

.quick-actions a:first-child {
    background: #f10808;
}

.attendance-widget {
    width: min(280px, 100%);
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #004aad;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.attendance-widget span {
    display: block;
    color: #f10808;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.attendance-widget small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.attendance-widget p {
    margin: 0 0 12px;
    color: #0f172a;
    font-weight: 700;
}

.attendance-widget p strong {
    color: #004aad;
}

.attendance-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
}

.attendance-actions .btn,
.attendance-shortcut {
    width: auto;
    min-width: 0;
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.attendance-actions .btn-primary {
    background: #004aad;
}

.attendance-actions .btn-brand {
    background: #f10808;
}

.attendance-actions .btn:disabled {
    background: #e5e7eb;
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
}

.attendance-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #004aad;
}

.attendance-completed {
    color: #126b2f;
    font-weight: 800;
}

.attendance-completed a {
    display: inline-flex;
    align-items: center;
    border: 1px solid #004aad;
    border-radius: 6px;
    padding: 7px 12px;
    color: #004aad;
    font-size: 14px;
    font-weight: 800;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.dashboard-kpi-section {
    margin: 14px 0;
}

.dashboard-kpi-section h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 20px;
}

.kpi-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    min-height: 82px;
}

.kpi-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.kpi-card strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 0;
}

.kpi-card a {
    color: #004aad;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.kpi-card.warning {
    border-left: 5px solid #f59e0b;
}

.kpi-card.danger {
    border-left: 5px solid #f10808;
}

.kpi-card.info {
    border-left: 5px solid #004aad;
}

.kpi-card.success {
    border-left: 5px solid #16a34a;
}

.alert-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.alert-panel h2,
.module-section h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #0f172a;
}

.alert-list {
    display: grid;
    gap: 10px;
}

.alert-list a,
.alert-list p {
    display: block;
    padding: 13px 15px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.alert-list a:hover {
    background: #eef4ff;
    color: #004aad;
}

.module-section {
    margin-top: 28px;
}

.debug-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #004aad;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.debug-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #0f172a;
}

.debug-table-wrap {
    overflow-x: auto;
}

.debug-panel table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.debug-panel th,
.debug-panel td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.debug-panel th {
    color: #64748b;
    font-weight: 800;
}

.debug-status {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 800;
    font-size: 12px;
}

.debug-status.ok {
    background: #effaf3;
    color: #126b2f;
}

.debug-status.failed {
    background: #fff1f1;
    color: #a40000;
}

.conversion-dashboard {
    width: 95%;
    max-width: 1600px;
}

.conversion-hero {
    align-items: center;
    margin-bottom: 10px;
    min-height: auto;
    padding: 16px 18px;
}

.conversion-hero .dashboard-hero-copy {
    gap: 2px;
}

.conversion-hero .dashboard-hero-copy p {
    font-size: 11px;
    margin-bottom: 2px;
}

.conversion-hero h1 {
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 1.08;
}

.conversion-hero small {
    font-size: 12px;
}

.conversion-filter-card,
.conversion-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.conversion-filter-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
    gap: 8px;
    align-items: end;
    margin: 10px 0;
    padding: 10px;
}

.conversion-filter-card label {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    margin: 0;
}

.conversion-filter-card input,
.conversion-filter-card select {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 9px;
}

.conversion-filter-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.conversion-filter-actions button,
.conversion-filter-actions a {
    align-items: center;
    border-radius: 7px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    width: auto;
}

.conversion-filter-actions button {
    background: #004aad;
    color: #fff;
}

.conversion-filter-actions a {
    border: 1px solid #dce3ef;
    color: #004aad;
}

.conversion-grid {
    display: grid;
    gap: 10px;
}

.conversion-kpis,
.conversion-funnel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 10px 0;
}

.conversion-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #004aad;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    min-height: 74px;
    padding: 10px;
}

.conversion-card span,
.conversion-rate-strip span {
    color: #64748b;
    display: block;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.conversion-card strong {
    color: #0f172a;
    display: block;
    font-size: 24px;
    line-height: 1.05;
}

.conversion-card small {
    color: #004aad;
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-top: 4px;
}

.conversion-rate-strip div {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.conversion-rate-strip strong {
    color: #0f172a;
    display: block;
    font-size: 18px;
}

.conversion-panel {
    margin: 10px 0;
    padding: 12px;
}

.conversion-section-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.conversion-section-head h2 {
    color: #0f172a;
    font-size: 17px;
    margin: 0;
}

.conversion-section-head p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

.conversion-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.conversion-table th,
.conversion-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 7px 8px;
    text-align: left;
    vertical-align: middle;
}

.conversion-table th {
    color: #64748b;
    font-size: 10.5px;
    text-transform: uppercase;
}

.conversion-table td {
    color: #172033;
    font-size: 13px;
}

.conversion-table tbody tr:hover {
    background: #f8fbff;
}

.conversion-note {
    color: #64748b;
    font-size: 12px;
    margin: 12px 0 0;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .conversion-filter-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .conversion-kpis,
    .conversion-funnel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions a {
        width: 100%;
        text-align: center;
    }

    .dashboard-hero {
        flex-direction: column;
        gap: 18px;
    }

    .attendance-widget {
        width: 100%;
        flex: none;
    }

    .attendance-actions {
        justify-content: flex-start;
    }

    .attendance-shortcut {
        width: max-content;
    }

    .kpi-card {
        min-height: auto;
    }

    .kpi-card strong {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .conversion-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .conversion-filter-card,
    .conversion-kpis,
    .conversion-funnel,
    .conversion-rate-strip {
        grid-template-columns: 1fr;
    }

    .conversion-filter-actions {
        flex-wrap: wrap;
    }
}

.costing-shell .costing-hero {
    margin-bottom: 14px;
}

.costing-shell {
    width: 95%;
    max-width: 1600px;
}

.costing-primary-action,
.costing-filter-actions button,
.costing-sticky-actions button,
.costing-print-tools button,
.costing-small-btn {
    width: auto;
    border: 0;
    border-radius: 8px;
    background: #004aad;
    color: #fff;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.costing-panel,
.costing-filter-card,
.costing-sheet {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 14px 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.costing-panel h2,
.costing-sheet h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #0f172a;
}

.costing-filter-card,
.costing-form-grid,
.costing-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.costing-filter-card label,
.costing-form-grid label,
.costing-notes {
    margin: 0;
    color: #344054;
}

.costing-filter-actions,
.costing-sticky-actions,
.costing-print-tools,
.costing-delete-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.costing-filter-actions a,
.costing-sticky-actions a,
.costing-print-tools a,
.costing-delete-actions a {
    border: 1px solid #dce3ef;
    border-radius: 8px;
    padding: 10px 14px;
    color: #004aad;
    font-weight: 900;
    background: #fff;
}

.costing-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.costing-chart-bars {
    display: grid;
    gap: 10px;
}

.costing-chart-row {
    display: grid;
    grid-template-columns: 96px 1fr 42px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.costing-chart-row div {
    height: 10px;
    border-radius: 999px;
    background: #eef4ff;
    overflow: hidden;
}

.costing-chart-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #004aad, #f10808);
}

.costing-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.costing-section-head p {
    margin: 0;
    color: #64748b;
}

.costing-search-field {
    grid-column: span 2;
}

.costing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.costing-table th,
.costing-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
}

.costing-table th {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.costing-table tbody tr {
    transition: background .16s ease;
}

.costing-table tbody tr:hover {
    background: #f8fbff;
}

.costing-click-row {
    cursor: pointer;
}

.costing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.costing-actions form {
    display: inline-flex;
    margin: 0;
}

.costing-actions a,
.costing-actions button {
    border: 1px solid #dce3ef;
    border-radius: 999px;
    padding: 6px 10px;
    color: #004aad;
    font-size: 12px;
    font-weight: 900;
    background: #fff;
    width: auto;
    cursor: pointer;
}

.costing-actions a.danger {
    color: #f10808;
}

.costing-query-link {
    color: #004aad;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.costing-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.costing-status-badge.status-draft {
    background: #fff7df;
    color: #9a6400;
}

.costing-status-badge.status-final {
    background: #eaf2ff;
    color: #004aad;
}

.costing-status-badge.status-approved,
.costing-status-badge.status-booked {
    background: #eaf8ef;
    color: #137333;
}

.costing-status-badge.status-cancelled {
    background: #fff1f1;
    color: #a40000;
}

.costing-dashboard-page .costing-hero {
    align-items: center;
    margin-bottom: 10px;
    min-height: auto;
    padding: 14px 18px;
}

.costing-dashboard-page .costing-hero .dashboard-hero-copy {
    gap: 2px;
}

.costing-dashboard-page .costing-hero .dashboard-hero-copy p {
    font-size: 11px;
    margin-bottom: 2px;
}

.costing-dashboard-page .costing-hero h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.08;
}

.costing-dashboard-page .costing-hero small {
    font-size: 12px;
}

.costing-dashboard-page .costing-primary-action {
    border-radius: 7px;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 11px;
}

.costing-dashboard-page .dashboard-kpi-section {
    margin: 10px 0;
}

.costing-dashboard-page .kpi-grid {
    gap: 10px;
}

.costing-dashboard-page .kpi-card {
    min-height: 68px;
    padding: 9px 11px;
}

.costing-dashboard-page .kpi-card span {
    font-size: 10.5px;
    margin-bottom: 3px;
}

.costing-dashboard-page .kpi-card strong {
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.08;
}

.costing-dashboard-page .costing-filter-card {
    align-items: end;
    gap: 8px;
    grid-template-columns: minmax(230px, 1.45fr) minmax(130px, .85fr) minmax(130px, .85fr) minmax(120px, .75fr) minmax(120px, .75fr) auto;
    margin: 10px 0;
    padding: 10px;
}

.costing-dashboard-page .costing-search-field {
    grid-column: auto;
}

.costing-dashboard-page .costing-filter-card label {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
}

.costing-dashboard-page .costing-filter-card input,
.costing-dashboard-page .costing-filter-card select {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 9px;
}

.costing-dashboard-page .costing-filter-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

.costing-dashboard-page .costing-filter-actions button,
.costing-dashboard-page .costing-filter-actions a {
    border-radius: 7px;
    font-size: 12px;
    min-height: 34px;
    padding: 7px 10px;
}

.costing-dashboard-page .costing-panel {
    margin: 10px 0;
    padding: 12px;
}

.costing-dashboard-page .costing-section-head {
    margin-bottom: 8px;
}

.costing-dashboard-page .costing-section-head h2 {
    font-size: 17px;
    margin: 0 0 2px;
}

.costing-dashboard-page .costing-section-head p {
    font-size: 12px;
}

.costing-dashboard-page .costing-table th,
.costing-dashboard-page .costing-table td {
    padding: 6px 8px;
}

.costing-dashboard-page .costing-table th {
    font-size: 10.5px;
}

.costing-dashboard-page .costing-table td {
    font-size: 13px;
    vertical-align: middle;
}

.costing-dashboard-page .costing-actions {
    flex-wrap: nowrap;
    gap: 5px;
}

.costing-dashboard-page .costing-actions a,
.costing-dashboard-page .costing-actions button {
    border-radius: 999px;
    font-size: 11.5px;
    min-height: 27px;
    padding: 5px 8px;
    white-space: nowrap;
}

.costing-dashboard-page .costing-status-badge {
    font-size: 11px;
    min-height: 22px;
    min-width: 64px;
    padding: 3px 8px;
}

.costing-form-page {
    padding-bottom: 72px;
}

.costing-form-page .costing-hero {
    align-items: center;
    margin-bottom: 10px;
    min-height: auto;
    padding: 14px 18px;
}

.costing-form-page .costing-hero .dashboard-hero-copy {
    gap: 2px;
}

.costing-form-page .costing-hero .dashboard-hero-copy p {
    font-size: 11px;
    margin-bottom: 2px;
}

.costing-form-page .costing-hero h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.08;
}

.costing-form-page .costing-hero small {
    font-size: 12px;
}

.costing-form-page .costing-primary-action {
    border-radius: 7px;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 11px;
}

.costing-form-page .costing-form {
    display: grid;
    gap: 10px;
}

.costing-form-page .costing-panel {
    margin: 0;
    padding: 12px;
}

.costing-form-page .costing-panel h2 {
    font-size: 17px;
    margin: 0 0 8px;
}

.costing-form-page .costing-form-grid {
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.costing-form-page .costing-form-grid label {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    margin-bottom: 0;
}

.costing-form-page .costing-form-grid input,
.costing-form-page .costing-form-grid select,
.costing-form-page .costing-notes textarea,
.costing-form-page .costing-item-row input,
.costing-form-page .costing-flight-row input,
.costing-form-page .costing-service-row input,
.costing-form-page .costing-excel-table input,
.costing-form-page .costing-excel-table select {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 9px;
}

.costing-form-page .costing-calculation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.costing-form-page .costing-section-head {
    gap: 10px;
    margin-bottom: 8px;
}

.costing-form-page .costing-section-head h2 {
    font-size: 17px;
    margin: 0 0 2px;
}

.costing-form-page .costing-section-head p {
    font-size: 12px;
    line-height: 1.3;
}

.costing-form-page .costing-small-btn {
    border-radius: 7px;
    font-size: 12px;
    min-height: 30px;
    padding: 6px 10px;
}

.costing-form-page .costing-items {
    border-radius: 7px;
}

.costing-form-page .costing-row-head {
    font-size: 10.5px;
}

.costing-form-page .costing-row-head span,
.costing-form-page .costing-item-row label,
.costing-form-page .costing-flight-row label,
.costing-form-page .costing-service-row label {
    padding: 5px 6px;
}

.costing-form-page .costing-item-row {
    grid-template-columns: minmax(105px, 1fr) minmax(145px, 1.25fr) minmax(120px, 1fr) 72px 120px 74px;
}

.costing-form-page .costing-flight-row,
.costing-form-page .costing-service-row {
    grid-template-columns: minmax(260px, 1fr) 132px 74px;
}

.costing-form-page .costing-row-remove {
    align-self: center;
    border-radius: 7px;
    font-size: 11.5px;
    margin: 5px;
    min-height: 28px;
    padding: 5px 8px;
}

.costing-form-page .costing-inline-total {
    font-size: 12px;
    gap: 8px;
    margin-top: 7px;
}

.costing-form-page .costing-inline-total strong {
    font-size: 16px;
}

.costing-form-page .costing-summary-grid {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

.costing-form-page .costing-summary-grid div {
    padding: 8px 9px;
}

.costing-form-page .costing-summary-grid span {
    font-size: 10px;
    margin-bottom: 3px;
}

.costing-form-page .costing-summary-grid strong {
    font-size: 15px;
    line-height: 1.15;
}

.costing-form-page .costing-summary-grid small {
    font-size: 10px;
    margin-top: 3px;
}

.costing-form-page .costing-commercial-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.costing-form-page .costing-commercial-card {
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #f8fbff;
    padding: 10px 12px;
    min-height: 72px;
}

.costing-form-page .costing-commercial-card span {
    display: block;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.costing-form-page .costing-commercial-card strong {
    color: #0f4db8;
    display: block;
    font-size: 20px;
    line-height: 1.2;
}

.costing-form-page .costing-commercial-card.editable {
    background: #fff7f7;
    border-color: #fecaca;
}

.costing-form-page .costing-commercial-card.tcs-info,
.costing-view-page .costing-breakdown .tcs-info {
    background: #f8fbff;
    border-color: #bfdbfe;
}

.costing-form-page .costing-commercial-card.tcs-info strong,
.costing-view-page .costing-breakdown .tcs-info strong {
    color: #0f4db8;
}

.costing-form-page .costing-commercial-card[hidden] {
    display: none !important;
}

.costing-form-page .costing-commercial-card.editable input {
    border: 0;
    background: transparent;
    color: #e53935;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    min-height: 28px;
    padding: 0;
}

.costing-form-page .costing-commercial-card.editable input:focus {
    box-shadow: none;
    outline: 0;
}

.costing-form-page .costing-notes {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    margin-top: 10px;
}

.costing-form-page .costing-notes textarea {
    min-height: 72px;
}

.costing-form-page .costing-sticky-actions {
    border-top: 1px solid #dce3ef;
    bottom: 0;
    margin-top: 0;
    padding: 8px 0;
}

.costing-form-page .costing-sticky-actions a,
.costing-form-page .costing-sticky-actions button {
    border-radius: 7px;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 12px;
}

.costing-muted {
    color: #64748b;
    font-size: 12px;
}

.costing-items {
    display: grid;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.costing-item-row,
.costing-flight-row,
.costing-service-row {
    display: grid;
    gap: 0;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.costing-item-row:last-child,
.costing-flight-row:last-child,
.costing-service-row:last-child {
    border-bottom: 0;
}

.costing-item-row {
    grid-template-columns: minmax(120px, 1fr) minmax(170px, 1.3fr) minmax(140px, 1fr) 90px 140px 92px;
}

.costing-flight-row {
    grid-template-columns: minmax(260px, 1fr) 150px 92px;
}

.costing-service-row {
    grid-template-columns: minmax(260px, 1fr) 150px 92px;
}

.costing-row-head {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.costing-row-head span,
.costing-item-row label,
.costing-flight-row label,
.costing-service-row label {
    min-width: 0;
    margin: 0;
    padding: 8px;
    color: #344054;
    border-right: 1px solid #e5e7eb;
}

.costing-row-head span:last-child {
    border-right: 0;
}

.costing-item-row input,
.costing-flight-row input,
.costing-service-row input {
    min-height: 38px;
    padding: 8px 10px;
}

.costing-row-remove,
.costing-delete-actions button {
    width: auto;
    border: 0;
    border-radius: 8px;
    background: #f10808;
    color: #fff;
    padding: 8px 10px;
    font-weight: 900;
    cursor: pointer;
    margin: 8px;
}

.costing-inline-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.costing-inline-total strong {
    color: #004aad;
    font-size: 18px;
}

.costing-excel-wrap {
    border: 1px solid #dce3ef;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.costing-excel-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
    table-layout: fixed;
}

.costing-excel-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .03em;
    padding: 8px 7px;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid #dce3ef;
}

.costing-excel-table td {
    border-bottom: 1px solid #edf1f7;
    border-right: 1px solid #edf1f7;
    padding: 5px;
    vertical-align: middle;
    background: #fff;
}

.costing-excel-table td:last-child,
.costing-excel-table th:last-child {
    border-right: 0;
}

.costing-excel-table tr:last-child td {
    border-bottom: 0;
}

.costing-excel-table th:nth-child(1) { width: 142px; }
.costing-excel-table th:nth-child(2) { width: 120px; }
.costing-excel-table th:nth-child(3) { width: 250px; }
.costing-excel-table th:nth-child(4) { width: 220px; }
.costing-excel-table th:nth-child(5) { width: 132px; }
.costing-excel-table th:nth-child(6) { width: 160px; }
.costing-excel-table th:nth-child(7) { width: 140px; }
.costing-excel-table th:nth-child(8) { width: 118px; }
.costing-excel-table th:nth-child(9) { width: 76px; }

.costing-type-cell-inner {
    align-items: center;
    display: flex;
    gap: 5px;
    min-width: 0;
}

.costing-form-page .costing-type-cell-inner .costing-row-type {
    flex: 1 1 auto;
    min-width: 0;
}

.costing-reorder-controls {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
}

.costing-form-page .costing-excel-table .costing-row-move {
    align-items: center;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    color: #0f4db8 !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 12px !important;
    font-weight: 850;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    min-height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    width: 24px !important;
}

.costing-form-page .costing-excel-table .costing-row-move:hover:not(:disabled) {
    background: #eff6ff !important;
    border-color: #93b4e8 !important;
}

.costing-form-page .costing-excel-table .costing-row-move:disabled {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    cursor: default;
    opacity: .45;
}

.costing-form-page .costing-excel-table .costing-row-actions-cell {
    text-align: center;
}

.costing-form-page .costing-excel-table .costing-row-remove {
    background: #ef2b1f !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    display: inline-flex;
    font-size: 10.5px !important;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    min-height: 26px !important;
    padding: 6px 7px !important;
    width: auto !important;
}

.costing-form-page .costing-excel-table input,
.costing-form-page .costing-excel-table select {
    width: 100%;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #182230;
    font-weight: 750;
}

.costing-form-page .costing-excel-table input:focus,
.costing-form-page .costing-excel-table select:focus {
    background: #fff;
    border-color: #0f4db8;
    box-shadow: 0 0 0 3px rgba(15, 77, 184, .08);
    outline: 0;
}

.costing-row-label {
    margin-top: 4px;
}

.costing-row-total {
    color: #0f4db8 !important;
    font-weight: 900 !important;
    text-align: right;
}

.costing-excel-table tr[data-row-type="flight"] td {
    background: #f8fbff;
}

.costing-excel-table tr[data-row-type="land"] td,
.costing-excel-table tr[data-row-type="service"] td {
    background: #fffdf7;
}

.costing-excel-total {
    margin-top: 8px;
}

.costing-view-excel-table {
    table-layout: fixed;
}

.costing-view-excel-table th,
.costing-view-excel-table td {
    white-space: nowrap;
}

.costing-view-excel-table td:nth-child(3),
.costing-view-excel-table td:nth-child(4) {
    white-space: normal;
}

.costing-summary-grid {
    margin-top: 16px;
}

.costing-summary-grid div,
.costing-detail-grid div,
.costing-breakdown div {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.costing-summary-grid span,
.costing-detail-grid span,
.costing-breakdown span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.costing-summary-grid strong,
.costing-detail-grid strong,
.costing-breakdown strong {
    color: #0f172a;
    font-size: 20px;
}

.costing-summary-grid small,
.costing-breakdown small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.costing-notes {
    display: grid;
    margin-top: 16px;
}

.costing-sticky-actions {
    position: sticky;
    bottom: 12px;
    justify-content: flex-end;
    background: rgba(246, 248, 252, .9);
    padding: 12px 0;
}

.costing-print-tools {
    justify-content: flex-end;
}

.costing-sheet header {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 3px solid #004aad;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.costing-sheet header img {
    width: 132px;
    height: auto;
}

.costing-sheet header p {
    margin: 0 0 4px;
    color: #f10808;
    font-weight: 900;
    text-transform: uppercase;
}

.costing-sheet header h1 {
    margin: 0 0 4px;
}

.costing-detail-grid,
.costing-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.costing-breakdown .final {
    background: #fff1f1;
    border-color: #ffc7c7;
}

.costing-breakdown .final strong {
    color: #f10808;
}

.costing-view-page .costing-hero {
    align-items: center;
    margin-bottom: 10px;
    min-height: auto;
    padding: 15px 18px;
}

.costing-view-page .costing-hero .dashboard-hero-copy {
    gap: 2px;
}

.costing-view-page .costing-hero .dashboard-hero-copy p {
    font-size: 11px;
    margin-bottom: 2px;
}

.costing-view-page .costing-hero h1 {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.08;
}

.costing-view-page .costing-hero small {
    font-size: 12px;
}

.costing-view-page .costing-primary-action,
.costing-view-page .costing-print-tools button,
.costing-view-page .costing-print-tools a {
    border-radius: 7px;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 11px;
}

.costing-view-page .costing-print-tools {
    gap: 7px;
    margin: 0 0 8px;
}

.costing-view-page .costing-print-tools .proposal-action {
    background: #0f4db8;
    border-color: #0f4db8;
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 77, 184, .16);
}

.costing-view-page .costing-print-tools .proposal-action:hover {
    background: #083f9e;
    border-color: #083f9e;
    color: #fff;
}

.costing-view-page .costing-sheet {
    margin: 0 0 12px;
    padding: 14px;
}

.costing-view-page .costing-sheet header {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom-width: 2px;
}

.costing-view-page .costing-sheet header img {
    width: 74px;
}

.costing-view-page .costing-sheet header h1 {
    font-size: 22px;
    line-height: 1.1;
    margin: 0 0 2px;
}

.costing-view-page .costing-sheet header span {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.costing-view-page .costing-sheet h2 {
    font-size: 15px;
    margin: 12px 0 7px;
}

.costing-view-page .costing-detail-grid,
.costing-view-page .costing-breakdown {
    gap: 8px;
    margin: 10px 0 12px;
}

.costing-view-page .costing-linked-records {
    background: linear-gradient(135deg, rgba(15, 77, 184, .045), rgba(16, 185, 129, .04));
    border: 1px solid rgba(15, 77, 184, .12);
    border-radius: 10px;
    margin: 8px 0 12px;
    padding: 8px 10px;
}

.costing-view-page .linked-records-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.costing-view-page .linked-records-head h2 {
    font-size: 14px;
    margin: 0;
}

.costing-current-row td {
    background: #eff6ff;
}

.costing-current-badge {
    background: #0f4db8;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    font-weight: 850;
    margin-left: 4px;
    padding: 3px 6px;
    vertical-align: middle;
}

.costing-view-page .linked-records-bar {
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.costing-view-page .linked-record-item {
    align-items: center;
    background: #fff;
    display: flex;
    flex: 1 1 205px;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    padding: 7px 9px;
}

.costing-view-page .linked-record-item + .linked-record-item {
    border-left: 1px solid #e5eaf2;
}

.costing-view-page .linked-record-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.costing-view-page .linked-record-value {
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.costing-view-page .linked-record-value.muted,
.costing-view-page .linked-record-meta {
    color: #64748b;
    font-size: 10.5px;
    font-weight: 750;
}

.costing-view-page .linked-record-meta::before,
.costing-view-page .linked-record-action::before {
    color: #c0c8d5;
    content: "·";
    margin-right: 4px;
}

.costing-view-page .linked-record-action {
    color: #0f4db8;
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.costing-view-page .linked-record-action:hover,
.costing-view-page a.linked-record-value:hover {
    text-decoration: underline;
}

.costing-view-page .costing-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.costing-view-page .costing-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.costing-view-page .costing-detail-grid div,
.costing-view-page .costing-breakdown div {
    padding: 8px 9px;
}

.costing-view-page .costing-detail-grid span,
.costing-view-page .costing-breakdown span {
    font-size: 10px;
    margin-bottom: 3px;
}

.costing-view-page .costing-detail-grid strong,
.costing-view-page .costing-breakdown strong {
    font-size: 15px;
    line-height: 1.2;
}

.costing-view-page .costing-breakdown .final {
    grid-column: span 2;
}

.costing-view-page .costing-breakdown .final strong {
    font-size: 18px;
}

.costing-view-page .table-wrap,
.costing-view-page .costing-table {
    margin-bottom: 6px;
}

.costing-view-page .costing-table th,
.costing-view-page .costing-table td {
    padding: 6px 8px;
}

.costing-view-page .costing-table th {
    font-size: 10.5px;
}

.costing-view-page .costing-table td {
    font-size: 13px;
}

.costing-view-page .costing-table td:last-child {
    font-weight: 850;
    color: #0f172a;
    white-space: nowrap;
}

.costing-view-page .costing-notes-print {
    margin-top: 10px;
}

.costing-view-page .costing-notes-print p {
    margin: 0;
    line-height: 1.45;
}

.costing-preview-modal[hidden] {
    display: none;
}

.costing-modal-open {
    overflow: hidden;
}

.costing-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, .38);
}

.costing-preview-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 81;
    width: min(460px, 100vw);
    padding: 28px;
    background: #fff;
    box-shadow: -18px 0 45px rgba(15, 23, 42, .18);
    overflow-y: auto;
}

.costing-preview-drawer > p {
    margin: 0 0 8px;
    color: #f10808;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.costing-preview-close {
    float: right;
    width: auto;
    background: #eef4ff;
    color: #004aad;
    padding: 8px 12px;
}

.costing-preview-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.costing-preview-grid div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.costing-preview-grid span {
    color: #64748b;
    font-weight: 800;
}

.costing-preview-grid strong {
    color: #0f172a;
}

.costing-preview-grid .final {
    border-color: #ffc7c7;
    background: #fff1f1;
}

.costing-delete-panel {
    max-width: 640px;
}

@media (max-width: 1200px) {
    .costing-dashboard-page .costing-filter-card {
        grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 1fr)) auto;
    }

    .costing-dashboard-page .costing-actions {
        flex-wrap: wrap;
    }

    .costing-form-page .costing-query-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .costing-form-page .costing-calculation-grid,
    .costing-form-page .costing-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .costing-dashboard-page .costing-filter-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .costing-dashboard-page .costing-filter-actions {
        justify-content: flex-start;
    }

    .costing-form-page .costing-query-grid,
    .costing-form-page .costing-calculation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .costing-form-page .costing-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .costing-form-page .costing-item-row,
    .costing-form-page .costing-flight-row,
    .costing-form-page .costing-service-row {
        gap: 6px;
        padding: 8px;
    }

    .costing-row-head {
        display: none;
    }

    .costing-item-row,
    .costing-flight-row,
    .costing-service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        background: #f8fafc;
    }

    .costing-item-row label,
    .costing-flight-row label,
    .costing-service-row label {
        padding: 0;
        border-right: 0;
    }

    .costing-item-row label::before,
    .costing-flight-row label::before,
    .costing-service-row label::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .costing-row-remove {
        margin: 0;
        align-self: end;
    }

    .costing-excel-wrap {
        border: 0;
        overflow: visible;
        background: transparent;
    }

    .costing-excel-table,
    .costing-excel-table tbody,
    .costing-excel-table tr,
    .costing-excel-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .costing-excel-table thead {
        display: none;
    }

    .costing-excel-table tr {
        border: 1px solid #dce3ef;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 8px;
        background: #fff;
    }

    .costing-excel-table td {
        border: 0;
        padding: 0 0 8px;
    }

    .costing-excel-table td::before {
        content: attr(data-label);
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .03em;
        margin-bottom: 3px;
        text-transform: uppercase;
    }
}

@media (max-width: 640px) {
    .costing-dashboard-page .costing-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .costing-dashboard-page .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .costing-dashboard-page .costing-filter-card {
        grid-template-columns: 1fr;
    }

    .costing-dashboard-page .costing-filter-actions {
        flex-wrap: wrap;
    }

    .costing-form-page .costing-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .costing-form-page .costing-query-grid,
    .costing-form-page .costing-calculation-grid,
    .costing-form-page .costing-summary-grid {
        grid-template-columns: 1fr;
    }

    .costing-form-page .costing-commercial-row {
        grid-template-columns: 1fr;
    }

    .costing-form-page .costing-sticky-actions {
        justify-content: flex-start;
    }

    .costing-section-head,
    .costing-sheet header {
        align-items: flex-start;
        flex-direction: column;
    }

    .costing-item-row,
    .costing-flight-row,
    .costing-service-row {
        grid-template-columns: 1fr;
    }

    .costing-view-page .costing-detail-grid,
    .costing-view-page .costing-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .costing-view-page .linked-record-item {
        flex: 1 1 calc(50% - 1px);
    }

    .costing-view-page .linked-record-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e5eaf2;
    }

    .costing-view-page .linked-record-item:nth-child(4) {
        border-top: 1px solid #e5eaf2;
    }

    .costing-view-page .costing-breakdown .final {
        grid-column: span 2;
    }

    .costing-view-page .costing-sheet header {
        flex-direction: row;
    }
}

@media print {
    .app-header,
    .costing-hero,
    .costing-print-tools,
    .costing-sticky-actions {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .module-shell {
        width: 100%;
        margin: 0;
    }

    .costing-sheet {
        box-shadow: none;
        border: 0;
        margin: 0;
        padding: 0;
    }

    .costing-table {
        min-width: 0;
    }

    .costing-view-page .costing-sheet {
        padding: 0;
    }

    .costing-view-page .costing-hero {
        display: none !important;
    }

    .costing-view-page .costing-sheet header img {
        width: 64px;
    }

    .costing-view-page .costing-sheet header h1 {
        font-size: 19px;
    }

    .costing-view-page .costing-detail-grid,
    .costing-view-page .costing-breakdown {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin: 8px 0 10px;
    }

    .costing-view-page .costing-detail-grid div,
    .costing-view-page .costing-breakdown div {
        padding: 6px 7px;
    }

    .costing-view-page .costing-table th,
    .costing-view-page .costing-table td {
        padding: 5px 6px;
        font-size: 11px;
    }
}

.notification-bell {
    position: relative;
}

.notification-bell summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 42px;
    padding: 7px 10px;
    border: 1px solid #dce3ef;
    border-radius: 999px;
    background: #fff;
    color: #004aad;
    cursor: pointer;
    list-style: none;
}

.notification-bell summary::-webkit-details-marker {
    display: none;
}

.notification-bell .bell-icon {
    font-size: 16px;
    line-height: 1;
}

.notification-bell summary strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f10808;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}

.notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.notification-menu h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 15px;
}

.notification-item,
.notification-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #0f172a;
}

.notification-item {
    grid-template-columns: auto 1fr;
}

.notification-item.unread,
.notification-row.unread {
    border-color: #dbeafe;
    background: #f8fbff;
}

.notification-item b,
.notification-row strong {
    display: block;
    font-size: 13px;
}

.notification-item em,
.notification-row em {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.notification-item small,
.notification-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.notification-card {
    grid-template-columns: auto 1fr;
    align-items: start;
    border-color: #e5e7eb;
    background: #fff;
}

.notification-type {
    color: #f10808;
}

.notification-empty {
    padding: 14px 10px;
    color: #64748b;
    font-size: 13px;
}

.notification-view-all {
    display: block;
    margin-top: 8px;
    padding: 9px 10px;
    border-top: 1px solid #eef2f7;
    color: #004aad !important;
    font-weight: 900;
    text-align: center;
}

.notification-widget {
    margin-top: 18px;
}

.notification-list {
    display: grid;
    gap: 8px;
}

@media(max-width:640px) {
    .notification-bell {
        order: -1;
    }

    .notification-menu {
        left: 0;
        right: auto;
    }
}

.desktop-nav-links{display:flex;align-items:center;gap:18px}
.mobile-menu{display:none;position:relative}
.mobile-menu summary{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--blue);font-size:20px;font-weight:900;cursor:pointer;list-style:none}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:25;display:grid;gap:4px;min-width:190px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.mobile-menu-panel a{display:block;padding:9px 10px;border-radius:8px;color:var(--red);font-weight:800}
.mobile-menu-panel a:hover{background:#fff1f1}
.mobile-label,.mobile-only-action{display:none}
.dashboard-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,280px);align-items:start}
.dashboard-hero-copy{grid-column:1;grid-row:1}
.attendance-widget{grid-column:2;grid-row:1 / span 2}
.dashboard-hero>.quick-actions{grid-column:1;grid-row:2}
.dashboard-accordion>summary{display:none}

@media(max-width:768px){
    .app-header{min-height:58px;flex-direction:row;align-items:center;gap:10px;padding:9px 12px}
    .brand{gap:7px;min-width:0}
    .brand img{width:88px}
    .brand span{font-size:0}
    .app-header-nav{gap:8px!important;margin-left:auto}
    .desktop-nav-links{display:none}
    .mobile-menu{display:block}
    .header-user-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:13px;font-weight:800}
    .notification-bell{order:0}
    .notification-bell summary{min-width:36px;padding:6px 8px}
    .notification-menu{left:auto;right:-76px;width:min(310px,calc(100vw - 24px))}
    .mobile-label{display:inline}
    .desktop-label{display:none}
    .mobile-only-action{display:flex}
    .module-shell{width:calc(100vw - 16px);margin:8px auto}
    .dashboard-hero{display:grid;grid-template-columns:1fr;gap:8px;padding:9px 0 8px;border-bottom-width:2px}
    .dashboard-hero-copy{grid-column:1;grid-row:1;margin-top:0}
    .dashboard-hero-copy>p{font-size:10px;margin-bottom:4px}
    .dashboard-hero-copy h1{font-size:25px;line-height:1.05;margin-bottom:4px}
    .dashboard-hero-copy small{font-size:12px;line-height:1.35}
    .attendance-widget{grid-column:1;grid-row:2;width:100%;padding:8px 10px;border-top-width:3px}
    .attendance-widget span{font-size:10px;margin-bottom:2px}
    .attendance-widget small{font-size:11px;margin-bottom:4px}
    .attendance-widget p{font-size:13px;margin-bottom:8px}
    .attendance-actions{gap:7px}
    .attendance-actions .btn,.attendance-shortcut{padding:7px 10px;font-size:12px}
    .dashboard-hero>.quick-actions{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:0}
    .quick-actions a{width:auto!important;min-height:38px;display:flex;align-items:center;justify-content:center;text-align:center;padding:7px 8px;font-size:12px;border-radius:9px;box-shadow:0 5px 12px rgba(0,74,173,.12)}
    .dashboard-kpi-section{margin:9px 0}
    .dashboard-kpi-section h2{font-size:15px;margin-bottom:8px}
    .dashboard-accordion h2{display:none}
    .dashboard-accordion{border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.045);overflow:hidden}
    .dashboard-accordion>summary{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;color:#0f172a;font-size:14px;font-weight:900;cursor:pointer;list-style:none}
    .dashboard-accordion>summary::-webkit-details-marker{display:none}
    .dashboard-accordion>summary::after{content:"+";color:var(--blue);font-size:18px;line-height:1}
    .dashboard-accordion[open]>summary::after{content:"-"}
    .dashboard-accordion .kpi-grid{padding:0 10px 10px}
    .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .kpi-card{min-height:68px;padding:9px 10px;border-radius:7px}
    .kpi-card span{font-size:10.5px;margin-bottom:3px}
    .kpi-card strong{font-size:18px;line-height:1.1;overflow-wrap:anywhere}
    .kpi-card a{font-size:11px}
    .alert-panel,.module-section{padding:10px;margin:8px 0;border-radius:8px}
    .alert-panel h2,.module-section h2{font-size:15px;margin-bottom:8px}
    .alert-list{gap:7px}
    .alert-list a,.alert-list p{padding:9px 10px;font-size:12px}
    .module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
    .module-card{min-height:48px;padding:9px 10px;border-left-width:4px;justify-content:center;box-shadow:0 6px 14px rgba(23,32,51,.045)}
    .module-card span{font-size:13px;line-height:1.15}
    .module-card strong{display:none}
    .debug-panel{display:none}
}

@media(max-width:768px){
    .costing-dashboard-page .costing-hero,
    .costing-form-page .costing-hero,
    .costing-view-page .costing-hero{padding:10px 0;gap:8px}
    .costing-dashboard-page .costing-hero h1,
    .costing-form-page .costing-hero h1,
    .costing-view-page .costing-hero h1{font-size:24px;line-height:1.08}
    .costing-dashboard-page .costing-hero small,
    .costing-form-page .costing-hero small,
    .costing-view-page .costing-hero small{font-size:12px}
    .costing-dashboard-page .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .costing-dashboard-page .kpi-card{min-height:58px;padding:8px 9px}
    .costing-dashboard-page .kpi-card span{font-size:10px}
    .costing-dashboard-page .kpi-card strong{font-size:16px}
    .costing-dashboard-page .costing-filter-card{grid-template-columns:1fr 1fr;padding:10px;gap:8px;margin:8px 0}
    .costing-dashboard-page .costing-search-field{grid-column:1/-1}
    .costing-dashboard-page .costing-filter-card input,
    .costing-dashboard-page .costing-filter-card select{min-height:34px;padding:7px 9px;font-size:12px}
    .costing-dashboard-page .costing-filter-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .costing-dashboard-page .costing-filter-actions button,
    .costing-dashboard-page .costing-filter-actions a{min-height:34px;padding:7px 9px;font-size:12px}
    .costing-dashboard-page .costing-panel,
    .costing-form-page .costing-panel,
    .costing-view-page .costing-panel{padding:11px;margin-bottom:10px;border-radius:8px}
    .costing-section-head{align-items:flex-start;gap:8px}
    .costing-section-head h2{font-size:16px}
    .costing-section-head p{font-size:12px}
    .costing-form-grid,
    .costing-query-grid,
    .costing-calculation-grid{grid-template-columns:1fr!important;gap:9px}
    .costing-form label{font-size:12px;gap:4px}
    .costing-form input,
    .costing-form select,
    .costing-form textarea{min-height:34px;padding:7px 9px;font-size:13px}
    .costing-row-head{display:none!important}
    .costing-item-row,
    .costing-flight-row,
    .costing-service-row{display:grid!important;grid-template-columns:1fr!important;gap:8px;padding:10px!important;border:1px solid #dce3ef;border-radius:8px;background:#fff;margin-bottom:8px}
    .costing-item-row label,
    .costing-flight-row label,
    .costing-service-row label{position:relative}
    .costing-item-row label::before,
    .costing-flight-row label::before,
    .costing-service-row label::before{content:attr(data-label);display:block;color:#657084;font-size:10px;font-weight:900;text-transform:uppercase;margin-bottom:3px}
    .costing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
    .costing-summary-grid div{padding:8px 9px}
    .costing-summary-grid span{font-size:10px}
    .costing-summary-grid strong{font-size:15px}
    .costing-sticky-actions{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;background:rgba(246,248,252,.96);border-top:1px solid #dce3ef}
    .costing-sticky-actions a,
    .costing-sticky-actions button{min-height:36px;font-size:13px}
    .table-responsive,
    .table-wrap,
    .data-table-wrap,
    .costing-dashboard-page .table-wrap,
    .costing-view-page .table-wrap{overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}
    table,
    .costing-dashboard-page .costing-table{min-width:760px}
    .costing-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
    .costing-actions a,
    .costing-actions button{min-height:30px;padding:6px 8px;text-align:center;border-radius:999px;font-size:12px}
}

@media(max-width:768px){
    .conversion-dashboard-page .app-header{min-height:52px;padding:8px 10px;gap:8px}
    .conversion-dashboard-page .app-header .brand img{width:82px}
    .conversion-dashboard-page .app-header nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;min-width:0;font-size:12px;white-space:nowrap}
    .conversion-dashboard-page .app-header nav span{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
    .conversion-dashboard-page .app-header nav a{font-size:12px;font-weight:900}
    .conversion-dashboard-page .conversion-dashboard{width:calc(100vw - 18px);margin:8px auto}
    .conversion-dashboard-page .conversion-hero{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;padding:10px 0 9px;border-bottom-width:2px}
    .conversion-dashboard-page .conversion-hero .dashboard-hero-copy{margin:0;min-width:0}
    .conversion-dashboard-page .conversion-hero .dashboard-hero-copy p{display:none}
    .conversion-dashboard-page .conversion-hero h1{font-size:22px;line-height:1.08;margin:0 0 3px}
    .conversion-dashboard-page .conversion-hero small{display:block;font-size:11px;line-height:1.25}
    .conversion-dashboard-page .conversion-hero .costing-primary-action{min-height:30px;padding:6px 9px;border-radius:8px;font-size:12px;white-space:nowrap}
    .conversion-dashboard-page .conversion-filter-card{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;padding:9px}
    .conversion-dashboard-page .conversion-filter-card label{font-size:10px;gap:3px}
    .conversion-dashboard-page .conversion-filter-card input,
    .conversion-dashboard-page .conversion-filter-card select{min-height:32px;padding:6px 8px;font-size:12px}
    .conversion-dashboard-page .conversion-filter-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px}
    .conversion-dashboard-page .conversion-filter-actions button,
    .conversion-dashboard-page .conversion-filter-actions a{min-height:32px;padding:6px 8px;border-radius:7px;font-size:12px}
    .conversion-dashboard-page .conversion-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
    .conversion-dashboard-page .conversion-card{min-height:62px;padding:8px 9px;border-radius:7px}
    .conversion-dashboard-page .conversion-card span{font-size:9.5px;margin-bottom:3px}
    .conversion-dashboard-page .conversion-card strong{font-size:18px;line-height:1.08}
    .conversion-dashboard-page .conversion-panel{margin:8px 0;padding:10px;border-radius:8px}
    .conversion-dashboard-page .conversion-section-head{gap:8px;margin-bottom:7px}
    .conversion-dashboard-page .conversion-section-head h2{font-size:15px}
    .conversion-dashboard-page .conversion-section-head p{font-size:11px}
    .conversion-dashboard-page .agent-performance-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .conversion-dashboard-page .agent-performance-wrap table{min-width:700px}
}

/* CRM Home Quick Access launcher */
.quick-access-section{
    margin:22px 0 0;
    padding:22px;
    background:#fff;
    border:1px solid rgba(220,227,239,.92);
    border-radius:18px;
    box-shadow:0 18px 48px rgba(15,77,184,.08);
}

.quick-access-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.quick-access-head h2{
    margin:0 0 4px;
    color:#172033;
    font-size:22px;
    line-height:1.1;
    font-weight:900;
}

.quick-access-head p{
    margin:0;
    color:#657084;
    font-size:14px;
    font-weight:700;
}

.quick-access-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(118px,130px));
    justify-content:space-between;
    gap:16px;
}

.quick-access-tile{
    position:relative;
    width:100%;
    min-height:130px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:16px 12px;
    background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
    border:1px solid #e5ebf5;
    border-radius:18px;
    box-shadow:0 10px 26px rgba(23,32,51,.055);
    color:#172033;
    text-align:center;
    opacity:0;
    transform:translateY(12px);
    animation:quickAccessIn .36s ease forwards;
    animation-delay:calc(var(--tile-index, 0) * 55ms);
    transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
    cursor:pointer;
    overflow:hidden;
}

.quick-access-tile::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:18px;
    background:radial-gradient(circle at top right,rgba(15,77,184,.10),transparent 42%),radial-gradient(circle at bottom left,rgba(229,57,53,.07),transparent 40%);
    opacity:.65;
    pointer-events:none;
}

.quick-access-tile:hover,
.quick-access-tile:focus-visible{
    transform:translateY(-4px);
    border-color:#0F4DB8;
    box-shadow:0 18px 42px rgba(15,77,184,.16);
    outline:0;
}

.quick-access-icon{
    position:relative;
    z-index:1;
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#eef4ff;
    color:#0F4DB8;
    font-size:31px;
    line-height:1;
    box-shadow:inset 0 0 0 1px rgba(15,77,184,.08);
    transition:transform .2s ease,background .2s ease;
}

.quick-access-tile:hover .quick-access-icon,
.quick-access-tile:focus-visible .quick-access-icon{
    transform:scale(1.08);
    background:#e7f0ff;
}

.quick-access-tile strong{
    position:relative;
    z-index:1;
    display:block;
    color:#172033;
    font-size:14px;
    line-height:1.18;
    font-weight:900;
}

.quick-access-badge{
    position:absolute;
    top:10px;
    right:10px;
    z-index:2;
    min-width:24px;
    height:24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    border:2px solid #fff;
    border-radius:999px;
    background:#E53935;
    color:#fff;
    font-size:11px;
    line-height:1;
    font-weight:900;
    box-shadow:0 8px 18px rgba(229,57,53,.22);
}

@keyframes quickAccessIn{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:1024px){
    .quick-access-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        justify-content:stretch;
    }
    .quick-access-tile{
        min-height:124px;
    }
}

@media(max-width:768px){
    .quick-access-section{
        padding:14px;
        margin:10px 0;
        border-radius:16px;
    }
    .quick-access-head{
        margin-bottom:12px;
    }
    .quick-access-head h2{
        font-size:18px;
        margin-bottom:2px;
    }
    .quick-access-head p{
        font-size:12px;
    }
    .quick-access-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
        margin-top:0;
    }
    .quick-access-tile{
        min-height:116px;
        padding:13px 10px;
        border-left:1px solid #e5ebf5;
        box-shadow:0 8px 20px rgba(23,32,51,.055);
    }
    .quick-access-icon{
        width:50px;
        height:50px;
        font-size:27px;
    }
    .quick-access-tile strong{
        font-size:13px;
    }
}

/* CRM Home header apps launcher + profile menu */
html,
body{
    min-height:100%;
    background:var(--bg)!important;
}

.app-header{
    position:relative;
    z-index:100;
}

.app-header-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px!important;
}

.crm-app-launcher,
.profile-menu{
    position:relative;
}

.crm-app-launcher summary,
.profile-menu summary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid transparent;
    border-radius:999px;
    background:#fff;
    color:var(--blue);
    list-style:none;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.crm-app-launcher summary::-webkit-details-marker,
.profile-menu summary::-webkit-details-marker{
    display:none;
}

.crm-app-launcher summary:hover,
.crm-app-launcher[open] summary,
.profile-menu summary:hover,
.profile-menu[open] summary{
    background:#eef4ff;
    border-color:#cfe0ff;
    box-shadow:0 8px 20px rgba(15,77,184,.12);
}

.apps-grid-icon{
    width:20px;
    height:20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:3px;
}

.apps-grid-icon i{
    width:4px;
    height:4px;
    display:block;
    border-radius:999px;
    background:#475569;
}

.crm-app-menu{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    z-index:80;
    width:360px;
    max-width:calc(100vw - 24px);
    padding:16px;
    border:1px solid rgba(220,227,239,.95);
    border-radius:24px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.18);
}

.crm-app-menu h2{
    margin:0 0 14px;
    color:#172033;
    font-size:18px;
    line-height:1.1;
    font-weight:900;
}

.crm-app-menu-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}

.crm-app-tile{
    position:relative;
    min-height:96px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:11px 8px;
    border:1px solid transparent;
    border-radius:18px;
    background:#fff;
    color:#172033;
    text-align:center;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.crm-app-tile:hover,
.crm-app-tile:focus-visible{
    background:#f8fbff;
    border-color:#cfe0ff;
    box-shadow:0 12px 26px rgba(15,77,184,.11);
    transform:translateY(-2px);
    outline:0;
}

.crm-app-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#eef4ff;
    color:#0F4DB8;
    font-size:26px;
    line-height:1;
    transition:transform .18s ease;
}

.crm-app-tile:hover .crm-app-icon,
.crm-app-tile:focus-visible .crm-app-icon{
    transform:scale(1.07);
}

.crm-app-tile strong{
    max-width:100%;
    color:#172033;
    font-size:12px;
    line-height:1.18;
    font-weight:900;
}

.profile-avatar{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:999px;
    background:linear-gradient(135deg,#0F4DB8,#E53935);
    color:#fff;
    font-size:15px;
    line-height:1;
    font-weight:950;
}

.profile-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.profile-menu-panel{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    z-index:80;
    min-width:230px;
    padding:10px;
    border:1px solid rgba(220,227,239,.95);
    border-radius:18px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.18);
}

.profile-menu-head{
    padding:10px 11px 12px;
    border-bottom:1px solid #eef2f7;
    margin-bottom:6px;
}

.profile-menu-head strong,
.profile-menu-head span{
    display:block;
}

.profile-menu-head strong{
    color:#172033;
    font-size:14px;
    font-weight:950;
}

.profile-menu-head span{
    margin-top:3px;
    color:#657084;
    font-size:12px;
    font-weight:800;
}

.profile-menu-panel a{
    display:block;
    padding:10px 11px;
    border-radius:12px;
    color:#172033!important;
    font-size:13px;
    font-weight:900;
}

.profile-menu-panel a:hover{
    background:#eef4ff;
    color:#0F4DB8!important;
}

.header-user-name,
.desktop-nav-links,
.mobile-menu{
    display:none!important;
}

@media(max-width:768px){
    .app-header-nav{
        gap:7px!important;
    }
    .crm-app-launcher summary,
    .profile-menu summary{
        width:38px;
        height:38px;
    }
    .apps-grid-icon{
        width:18px;
        height:18px;
        gap:3px;
    }
    .crm-app-menu{
        position:fixed;
        top:64px;
        left:12px;
        right:12px;
        width:auto;
        max-width:none;
        padding:14px;
        border-radius:22px;
    }
    .crm-app-menu-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }
    .crm-app-tile{
        min-height:92px;
    }
    .profile-menu-panel{
        position:fixed;
        top:64px;
        right:12px;
        left:auto;
        min-width:min(240px,calc(100vw - 24px));
    }
    .notification-menu{
        position:fixed;
        top:64px;
        left:12px!important;
        right:12px!important;
        width:auto;
        max-width:none;
    }
}
