:root {
    --navy-950: #0b1220;
    --navy-900: #0f172a;
    --navy-800: #172033;

    --text: #172033;
    --muted: #64748b;

    --page: #f4f6f8;
    --surface: #ffffff;
    --border: #e2e8f0;

    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #f0fdfa;

    --warning: #b45309;
    --warning-soft: #fffbeb;

    --danger: #b91c1c;
    --danger-soft: #fef2f2;

    --success: #047857;
    --success-soft: #ecfdf5;

    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06),
              0 8px 24px rgba(15, 23, 42, 0.04);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    margin: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--page);
    color: var(--text);

    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


a {
    color: inherit;
}


h1,
h2,
h3,
p {
    margin-top: 0;
}


h1 {
    margin-bottom: 6px;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}


h2 {
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.25;
}


small {
    font-size: 13px;
}


/* =========================================================
   APP HEADER
   ========================================================= */

.app-header {
    position: relative;
    z-index: 50;

    background: var(--navy-900);
    color: #ffffff;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


.header-inner {
    width: min(100% - 40px, 1240px);
    min-height: 68px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 28px;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex: 0 0 auto;

    color: #ffffff;
    text-decoration: none;
}


.brand-mark {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary);
    color: #ffffff;

    font-size: 20px;
    font-weight: 800;
}


.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}


.brand-copy strong {
    font-size: 16px;
    letter-spacing: 0.01em;
}


.brand-copy small {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.025em;
}


.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;

    margin-left: auto;
}


.desktop-nav a,
.logout-link {
    padding: 8px 10px;

    border-radius: 7px;

    color: #cbd5e1;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}


.desktop-nav a:hover,
.logout-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}


.header-account {
    display: flex;
    align-items: center;
    gap: 7px;
}


.role-badge,
.role {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
}


.mobile-menu {
    display: none;
    position: relative;
}


.mobile-menu summary {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    list-style: none;
    cursor: pointer;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.05);
}


.mobile-menu summary::-webkit-details-marker {
    display: none;
}


.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 19px;
    height: 2px;

    display: block;

    border-radius: 2px;
    background: #ffffff;
}


.menu-icon {
    position: relative;
}


.menu-icon::before,
.menu-icon::after {
    position: absolute;
    left: 0;

    content: "";
}


.menu-icon::before {
    top: -6px;
}


.menu-icon::after {
    top: 6px;
}


.mobile-menu-panel {
    position: absolute;
    top: 50px;
    right: 0;

    width: min(300px, calc(100vw - 32px));

    padding: 8px;

    border: 1px solid #253047;
    border-radius: 12px;

    background: var(--navy-900);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.30);
}


.mobile-menu-panel a {
    display: block;

    padding: 11px 12px;

    border-radius: 8px;

    color: #e2e8f0;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}


.mobile-menu-panel a:hover {
    background: rgba(255, 255, 255, 0.07);
}


.mobile-user {
    padding: 8px 12px 12px;
    margin-bottom: 5px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}


.mobile-user strong,
.mobile-user span {
    display: block;
}


.mobile-user strong {
    font-size: 14px;
}


.mobile-user span {
    margin-top: 2px;

    color: #94a3b8;
    font-size: 12px;
}


.mobile-menu-panel .mobile-logout {
    margin-top: 5px;

    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;

    color: #fca5a5;
}


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.container,
.page-container {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}


.container {
    padding-top: 28px;
    padding-bottom: 48px;
}


.page-container {
    padding: 0;
}


.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    margin-bottom: 20px;
}


.page-heading p {
    margin-bottom: 0;
    color: var(--muted);
}


.muted {
    color: var(--muted);
}


/* =========================================================
   CARDS / PANELS
   ========================================================= */

.panel,
.card,
.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    box-shadow: var(--shadow);
}


.panel,
.card {
    padding: 20px;
    margin-bottom: 18px;
}


.panel > :last-child,
.card > :last-child {
    margin-bottom: 0;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 20px;
}


.stat-card {
    min-width: 0;
    padding: 17px;
}


.stat-card span,
.stat-card small {
    display: block;
}


.stat-card span {
    color: #475569;

    font-size: 13px;
    font-weight: 650;
}


.stat-card strong {
    display: block;

    margin: 6px 0 4px;

    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.15;
    letter-spacing: -0.02em;

    overflow-wrap: anywhere;
}


.stat-card small {
    color: var(--muted);
    line-height: 1.35;
}


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


.income-grid > div {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #ffffff;
}


.income-grid strong {
    display: block;
    margin-top: 5px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button,
.btn,
.action-grid button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: var(--primary);
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;
    text-align: center;

    cursor: pointer;
}


.button:hover,
.btn:hover {
    background: var(--primary-dark);
}


.button.secondary,
.btn.secondary,
.btn:not(.btn-primary) {
    border-color: var(--border);

    background: #ffffff;
    color: #334155;
}


.button.secondary:hover,
.btn.secondary:hover,
.btn:not(.btn-primary):hover {
    background: #f8fafc;
}


.button:disabled,
.btn:disabled,
.action-grid button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}


.action-grid button {
    width: 100%;

    border-color: var(--border);

    background: #f1f5f9;
    color: #64748b;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-group {
    margin-bottom: 17px;
}


.form-group label {
    display: block;

    margin-bottom: 6px;

    color: #334155;

    font-size: 14px;
    font-weight: 700;
}


.input,
.form-control {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    outline: none;

    background: #ffffff;
    color: var(--text);

    font-family: inherit;
    font-size: 16px;
}


.input:focus,
.form-control:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.12);
}


textarea.input,
textarea.form-control {
    resize: vertical;
}


.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 22px;
}


.form-error,
.error {
    display: block;

    margin-top: 5px;

    color: var(--danger);

    font-size: 13px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-wrapper {
    min-height: calc(100vh - 145px);

    display: flex;
    align-items: center;
    justify-content: center;
}


.login-card {
    width: 100%;
    max-width: 420px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #ffffff;

    box-shadow: var(--shadow);
}


.login-card .button {
    width: 100%;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 11px 14px;
    margin-bottom: 18px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 14px;
}


.alert.success {
    border-color: #a7f3d0;
    background: var(--success-soft);
    color: #065f46;
}


.alert.warning {
    border-color: #fde68a;
    background: var(--warning-soft);
    color: #92400e;
}


.alert.danger {
    border-color: #fecaca;
    background: var(--danger-soft);
    color: #991b1b;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .desktop-nav,
    .header-account {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .action-grid,
    .income-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .header-inner {
        width: calc(100% - 28px);
        min-height: 62px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 10px;
    }

    .container,
    .page-container {
        width: calc(100% - 28px);
    }

    .container {
        padding-top: 20px;
        padding-bottom:
            calc(34px + env(safe-area-inset-bottom));
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 10px;

        margin-bottom: 16px;
    }

    .page-heading .button,
    .page-heading .btn {
        width: 100%;
    }

    .stats-grid {
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card strong {
        font-size: 21px;
    }

    .panel,
    .card {
        padding: 16px;
        margin-bottom: 14px;
    }

    .action-grid,
    .income-grid {
        grid-template-columns: 1fr;
    }

    .button,
    .btn,
    .action-grid button {
        width: 100%;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-wrapper {
        min-height: calc(100vh - 120px);
    }

    .login-card {
        padding: 22px 18px;
    }

}


/* =========================================================
   DASHBOARD V2
   ========================================================= */

.dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.dashboard-heading h1 {
    margin-bottom: 5px;
}

.dashboard-heading p {
    margin: 0;
    color: var(--muted);
}

.heading-meta {
    display: none;
}

.page-role {
    margin-top: 4px;
    padding: 5px 9px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: #ffffff;
    color: #64748b;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
}


.business-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 17px 18px;
    margin-bottom: 16px;

    border: 1px solid var(--border);
    border-left: 4px solid #94a3b8;
    border-radius: var(--radius);

    background: #ffffff;
    box-shadow: var(--shadow);
}

.business-status.status-open {
    border-left-color: var(--success);
}

.business-status.status-closed {
    border-left-color: #475569;
}

.business-status-copy {
    min-width: 0;
}

.business-status-copy strong,
.business-status-copy small {
    display: block;
}

.business-status-copy strong {
    margin-top: 2px;

    font-size: 20px;
    line-height: 1.2;
}

.business-status-copy small {
    margin-top: 4px;
    color: var(--muted);
}

.section-label {
    display: block;

    margin-bottom: 3px;

    color: #64748b;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill {
    flex: 0 0 auto;

    padding: 5px 9px;

    border-radius: 999px;

    background: #f1f5f9;
    color: #475569;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.status-open .status-pill {
    background: var(--success-soft);
    color: var(--success);
}

.status-closed .status-pill {
    background: #e2e8f0;
    color: #334155;
}


.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 16px;
}

.dashboard-kpi {
    min-width: 0;

    padding: 15px 16px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #ffffff;
    box-shadow: var(--shadow);
}

.dashboard-kpi span,
.dashboard-kpi small {
    display: block;
}

.dashboard-kpi span {
    color: #64748b;

    font-size: 12px;
    font-weight: 700;
}

.dashboard-kpi strong {
    display: block;

    margin: 4px 0 3px;

    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.025em;

    overflow-wrap: anywhere;
}

.dashboard-kpi small {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.3;
}

.dashboard-kpi.kpi-attention {
    border-color: #fed7aa;
    background: var(--warning-soft);
}


.operations-panel,
.activity-panel {
    padding: 18px;
    margin-bottom: 16px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #ffffff;
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
}

.text-action {
    flex: 0 0 auto;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.text-action:hover {
    text-decoration: underline;
}


.primary-operation {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;

    min-height: 68px;

    padding: 12px 16px;

    border-radius: 10px;

    background: var(--primary);
    color: #ffffff;

    text-decoration: none;
}

.primary-operation:hover {
    background: var(--primary-dark);
}

.primary-operation span {
    font-size: 16px;
    font-weight: 800;
}

.primary-operation small {
    margin-top: 2px;

    color: #ccfbf1;
    font-size: 12px;
}


.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.workflow-action {
    min-height: 72px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #f8fafc;
    color: var(--text);

    text-decoration: none;
}

.workflow-action:hover {
    border-color: #99f6e4;
    background: var(--primary-soft);
}

.workflow-action strong,
.workflow-action small {
    display: block;
}

.workflow-action strong {
    font-size: 14px;
}

.workflow-action small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.3;
}

.workflow-close {
    border-color: #fecaca;
}

.workflow-close:hover {
    border-color: #fca5a5;
    background: var(--danger-soft);
}

.operations-note {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.operation-disabled,
.closed-summary {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #f8fafc;
}

.operation-disabled strong,
.operation-disabled small,
.closed-summary strong,
.closed-summary span {
    display: block;
}

.operation-disabled small,
.closed-summary span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}


.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border: 1px solid var(--border);
    border-radius: 9px;

    overflow: hidden;
}

.payment-grid > div {
    padding: 11px 12px;

    border-right: 1px solid var(--border);
}

.payment-grid > div:last-child {
    border-right: 0;
}

.payment-grid span,
.payment-grid strong {
    display: block;
}

.payment-grid span {
    color: var(--muted);
    font-size: 11px;
}

.payment-grid strong {
    margin-top: 2px;
    font-size: 15px;
}

.reconciliation-state {
    margin-top: 9px;

    color: var(--muted);

    font-size: 12px;
}

.reconciliation-good {
    color: var(--success);
}

.reconciliation-warning {
    color: var(--warning);
}


.activity-list {
    border-top: 1px solid var(--border);
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 11px 0;

    border-bottom: 1px solid var(--border);
}

.activity-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-row > div {
    min-width: 0;
}

.activity-row strong,
.activity-row small {
    display: block;
}

.activity-row > div > strong {
    font-size: 14px;
}

.activity-row small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}

.activity-amount {
    flex: 0 0 auto;

    font-size: 14px;
    white-space: nowrap;
}


.empty-state {
    padding: 13px 14px;

    border: 1px dashed #cbd5e1;
    border-radius: 9px;

    background: #f8fafc;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state strong {
    font-size: 13px;
}

.empty-state span {
    margin-top: 2px;

    color: var(--muted);

    font-size: 12px;
}


@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .dashboard-heading {
        margin-bottom: 14px;
    }

    .dashboard-heading h1 {
        font-size: 27px;
    }

    .dashboard-heading p {
        font-size: 13px;
    }

    .page-role {
        margin-top: 2px;
    }

    .business-status {
        padding: 14px;
        margin-bottom: 12px;
    }

    .business-status-copy strong {
        font-size: 17px;
    }

    .business-status-copy small {
        font-size: 11px;
    }

    .dashboard-kpis {
        gap: 9px;
        margin-bottom: 12px;
    }

    .dashboard-kpi {
        padding: 12px;
    }

    .dashboard-kpi strong {
        font-size: 20px;
    }

    .operations-panel,
    .activity-panel {
        padding: 15px;
        margin-bottom: 12px;
    }

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

    .payment-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .payment-grid > div {
        border-bottom: 1px solid var(--border);
    }

    .payment-grid > div:nth-child(2) {
        border-right: 0;
    }

    .payment-grid > div:nth-child(3),
    .payment-grid > div:nth-child(4) {
        border-bottom: 0;
    }

}


/* =========================================================
   OWNER DASHBOARD V2
   ========================================================= */

.owner-performance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 16px;
}

.owner-section-intro {
    margin: -5px 0 14px;

    color: var(--muted);

    font-size: 13px;
}

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

.owner-stream-card {
    min-width: 0;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #f8fafc;
}

.owner-stream-card span,
.owner-stream-card strong,
.owner-stream-card small {
    display: block;
}

.owner-stream-card span {
    min-height: 34px;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

.owner-stream-card strong {
    margin-top: 5px;

    font-size: 17px;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.owner-stream-card small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
}


.attention-clear,
.attention-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;
}

.attention-clear {
    background: var(--success-soft);
    border-color: #a7f3d0;
}

.attention-check {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--success);
    color: #ffffff;

    font-weight: 900;
}

.attention-clear strong,
.attention-clear small,
.attention-item strong,
.attention-item small {
    display: block;
}

.attention-clear small,
.attention-item small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}

.attention-item {
    justify-content: space-between;

    background: var(--warning-soft);
    border-color: #fed7aa;
}


.management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.management-action {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 70px;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #f8fafc;
    color: var(--text);

    text-decoration: none;
}

a.management-action:hover {
    border-color: #99f6e4;
    background: var(--primary-soft);
}

.management-action strong,
.management-action small {
    display: block;
}

.management-action strong {
    font-size: 13px;
}

.management-action small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.3;
}

.management-action > span {
    flex: 0 0 auto;

    color: var(--primary);

    font-size: 20px;
    font-weight: 850;
}

.management-coming {
    opacity: 0.64;
}

.management-coming > span {
    padding: 4px 7px;

    border-radius: 999px;

    background: #e2e8f0;
    color: #64748b;

    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


@media (max-width: 900px) {

    .owner-performance {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .owner-performance {
        gap: 9px;
        margin-bottom: 12px;
    }

    .owner-stream-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .owner-stream-card {
        padding: 11px 12px;
    }

    .owner-stream-card span {
        min-height: 31px;
        font-size: 12px;
    }

    .owner-stream-card strong {
        font-size: 15px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .management-action {
        min-height: 62px;
        padding: 10px 12px;
    }

}


/* =========================================================
   STAFF & USERS
   ========================================================= */

.owner-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.owner-actions .button {
    flex: 1;
    text-align: center;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 3px 0 5px;
}

.user-list {
    display: grid;
    gap: 12px;
}

.user-card {
    border: 1px solid #dce3ea;
    border-radius: 12px;
    padding: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    background: #fff;
}

.user-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;

    display: grid;
    place-items: center;

    flex: 0 0 44px;

    background: #e8f5f2;
    color: #087f70;
    font-weight: 800;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-details strong {
    font-size: 16px;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.mini-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    padding: 4px 7px;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.mini-badge {
    background: #eef2f6;
    color: #536174;
}

.status-active {
    background: #e8f8f2;
    color: #087f70;
}

.status-inactive {
    background: #f2f3f5;
    color: #7b8492;
}

.protected-label {
    font-size: 12px;
    font-weight: 700;
    color: #748095;
}

.danger-outline {
    background: #fff;
    color: #b42318;
    border: 1px solid #f0b4ae;
}

.access-guide {
    margin-top: 14px;
}

.access-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.access-item {
    padding: 13px;
    border: 1px solid #e0e5eb;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.access-item span {
    color: #69768a;
    font-size: 13px;
    line-height: 1.45;
}

.owner-form-page {
    max-width: 650px;
}

.business-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label {
    font-weight: 800;
    color: #172033;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;

    border: 1px solid #cfd7e2;
    border-radius: 9px;

    background: #fff;
    color: #172033;
    font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(10, 132, 117, .15);
    border-color: #0a8475;
}

.form-help {
    color: #748095;
    line-height: 1.4;
}

.field-error {
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.form-actions .button {
    flex: 1;
    text-align: center;
}


@media (max-width: 600px) {

    .owner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .user-card {
        align-items: flex-start;
    }

    .user-card-action {
        flex: 0 0 auto;
    }

    .user-card-action .button {
        padding: 9px 10px;
        font-size: 12px;
    }

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

    .form-actions {
        flex-direction: column;
    }
}


@media (min-width: 700px) {

    .access-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================================
   TECHMANN APPLICATION SHELL V2
   ========================================================= */

:root {
    --shell-navy: #0f172a;
    --shell-navy-soft: #172033;
    --shell-teal: #0f8b7d;
    --shell-teal-dark: #08766b;
    --shell-bg: #f4f6f8;
    --shell-card: #ffffff;
    --shell-border: #dde3ea;
    --shell-text: #172033;
    --shell-muted: #6b7890;
}


/* Header */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--shell-navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
    width: min(1180px, 100%);
    min-height: 72px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand-mark {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #109b8b,
            #08796f
        );

    color: #fff;
    font-size: 23px;
    font-weight: 900;

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.12);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-copy strong {
    color: #fff;
    font-size: 20px;
    letter-spacing: -.2px;
}

.brand-copy small {
    margin-top: 5px;
    color: #9aa7bc;
    font-size: 12px;
    font-weight: 700;
}


/* Desktop navigation */

.desktop-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a {
    padding: 10px 12px;

    color: #cbd5e1;
    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 750;
}

.desktop-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}


/* Desktop account */

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.12);
}

.header-user-avatar,
.mobile-user-avatar {
    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(15,139,125,.18);
    color: #55d7c7;

    font-weight: 900;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
}

.header-user-copy {
    display: flex;
    flex-direction: column;

    max-width: 150px;
}

.header-user-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: #fff;
    font-size: 13px;
}

.header-user-copy span {
    margin-top: 2px;

    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}


/* Mobile menu */

.mobile-menu {
    display: none;
    margin-left: auto;
}

.mobile-menu summary {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;

    background: rgba(255,255,255,.04);

    cursor: pointer;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    width: 22px;
    height: 2px;

    display: block;

    border-radius: 999px;
    background: #fff;
}

.menu-icon {
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
}

.menu-icon::before {
    top: -7px;
}

.menu-icon::after {
    top: 7px;
}

.mobile-menu-panel {
    position: absolute;
    top: calc(100% - 2px);
    right: 18px;

    width: min(340px, calc(100vw - 36px));

    padding: 10px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;

    background: var(--shell-navy);

    box-shadow:
        0 20px 45px
        rgba(15,23,42,.30);
}

.mobile-user {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px 10px 15px;
    margin-bottom: 6px;

    border-bottom:
        1px solid
        rgba(255,255,255,.10);
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.mobile-user > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-user strong {
    color: #fff;
    font-size: 14px;
}

.mobile-user span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.mobile-menu-panel a {
    display: block;

    padding: 11px 12px;

    border-radius: 9px;

    color: #e5e7eb;
    text-decoration: none;

    font-size: 14px;
    font-weight: 750;
}

.mobile-menu-panel a:hover {
    background: rgba(255,255,255,.07);
}

.mobile-menu-section {
    margin: 7px 10px 3px;
    padding-top: 9px;

    border-top:
        1px solid
        rgba(255,255,255,.09);

    color: #718096;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.mobile-menu-panel .mobile-logout {
    margin-top: 6px;

    border-top:
        1px solid
        rgba(255,255,255,.09);

    color: #fca5a5;
}


/* Bottom navigation */

.mobile-bottom-nav {
    display: none;
}


/* Main workspace */

body {
    background: var(--shell-bg);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 50px;
}


/* Tablet */

@media (max-width: 900px) {

    .header-inner {
        min-height: 68px;
        padding: 0 18px;
    }

    .desktop-nav,
    .header-user {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

}


/* Mobile */

@media (max-width: 600px) {

    body {
        padding-bottom:
            calc(
                72px +
                env(safe-area-inset-bottom)
            );
    }

    .header-inner {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand {
        gap: 9px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;

        border-radius: 10px;

        font-size: 20px;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy small {
        margin-top: 3px;
        font-size: 10px;
    }

    .mobile-menu summary {
        width: 43px;
        height: 43px;
    }

    .container {
        width: calc(100% - 28px);

        padding-top: 22px;
        padding-bottom: 28px;
    }

    .mobile-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 950;

        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;

        min-height: 65px;

        padding:
            5px 8px
            calc(
                5px +
                env(safe-area-inset-bottom)
            );

        border-top: 1px solid var(--shell-border);

        background: rgba(255,255,255,.97);

        box-shadow:
            0 -7px 22px
            rgba(15,23,42,.06);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .mobile-bottom-nav a {
        min-width: 0;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;

        color: #778399;
        text-decoration: none;

        font-size: 10px;
        font-weight: 800;
    }

    .mobile-bottom-nav a.active {
        color: var(--shell-teal);
    }

    .bottom-nav-icon {
        min-height: 25px;

        display: grid;
        place-items: center;

        font-size: 21px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-bottom-nav a.active
    .bottom-nav-icon {
        transform: translateY(-1px);
    }

}


/* =========================================================
   DASHBOARD V2 — MODERN OPERATIONS
   ========================================================= */

.ops-dashboard {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.ops-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.ops-date {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.ops-welcome h1 {
    margin: 0;
    font-size: clamp(27px, 5vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ops-welcome p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 600;
}


/* Business day strip */

.ops-day-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border-left-width: 4px;
}

.ops-day-strip.day-open {
    border-left-color: #159477;
}

.ops-day-strip.day-not-open {
    border-left-color: #d69b2d;
}

.ops-day-strip.day-closed {
    border-left-color: #64748b;
}

.ops-day-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf8f4;
    color: #11866d;
    font-size: 20px;
    font-weight: 900;
}

.day-not-open .ops-day-icon {
    background: #fff7e5;
    color: #b7791f;
}

.day-closed .ops-day-icon {
    background: #eef2f6;
    color: #64748b;
}

.ops-day-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ops-day-copy > span {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.ops-day-copy strong {
    font-size: 20px;
    line-height: 1.2;
}

.ops-day-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 600;
}

.ops-status-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e9faf4;
    color: #08785f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.day-not-open .ops-status-badge {
    background: #fff6df;
    color: #9a6700;
}

.day-closed .ops-status-badge {
    background: #eef2f6;
    color: #526174;
}


/* Sections */

.ops-section {
    margin-bottom: 24px;
}

.ops-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.ops-section-title span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.ops-section-title h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.ops-section-title > a {
    color: #087f6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}


/* Snapshot */

.ops-snapshot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.ops-snapshot article {
    min-width: 0;
    padding: 17px;
    border-right: 1px solid var(--border);
}

.ops-snapshot article:last-child {
    border-right: 0;
}

.ops-snapshot article > span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ops-snapshot article > strong {
    display: block;
    margin: 7px 0 3px;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.ops-snapshot article > small {
    color: var(--muted);
    font-weight: 600;
}

.ops-snapshot .snapshot-warning {
    background: #fff8f0;
}


/* Quick actions */

.ops-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ops-quick-actions > a,
.ops-primary-action {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 16px;
    border-radius: 17px;
    text-decoration: none;
}

.ops-quick-actions > a {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.ops-quick-actions > a:first-child {
    background: #0e8979;
    border-color: #0e8979;
    color: #fff;
}

.ops-quick-icon,
.ops-action-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #edf3f5;
    font-size: 20px;
    font-weight: 900;
}

.ops-quick-actions > a:first-child .ops-quick-icon {
    background: rgba(255,255,255,0.16);
}

.ops-quick-actions > a > span:last-child,
.ops-primary-action > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ops-quick-actions strong,
.ops-primary-action strong {
    font-size: 16px;
}

.ops-quick-actions small,
.ops-primary-action small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 600;
}

.ops-quick-actions > a:first-child small {
    color: rgba(255,255,255,0.78);
}

.ops-primary-action {
    color: #fff;
    background: #0e8979;
    box-shadow: var(--shadow);
}

.ops-primary-action .ops-action-symbol {
    background: rgba(255,255,255,0.16);
}

.ops-primary-action small {
    color: rgba(255,255,255,0.8);
}

.ops-primary-action b {
    margin-left: auto;
    font-size: 25px;
}

.ops-waiting {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.ops-waiting span {
    margin-top: 4px;
    color: var(--muted);
}


/* Payment control */

.ops-control-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.ops-payment-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ops-payment-values > div {
    padding: 18px;
    border-right: 1px solid var(--border);
}

.ops-payment-values > div:last-child {
    border-right: 0;
}

.ops-payment-values span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.ops-payment-values strong {
    display: block;
    margin-top: 5px;
    font-size: 19px;
}

.ops-reconciliation {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}

.ops-reconciliation-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.reconciliation-ok {
    background: #effcf7;
}

.reconciliation-ok .ops-reconciliation-dot {
    background: #0e9874;
}

.reconciliation-attention {
    background: #fff5ee;
}

.reconciliation-attention .ops-reconciliation-dot {
    background: #d56a27;
}

.reconciliation-pending {
    background: #fffaf0;
}

.reconciliation-pending .ops-reconciliation-dot {
    background: #d69b2d;
}

.ops-reconciliation > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ops-reconciliation strong {
    font-size: 14px;
}

.ops-reconciliation small {
    margin-top: 1px;
    color: var(--muted);
    font-weight: 600;
}


/* Activity */

.ops-activity-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.ops-activity-group {
    padding: 18px;
}

.ops-activity-group + .ops-activity-group {
    border-top: 1px solid var(--border);
}

.ops-activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ops-activity-heading > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ops-activity-heading > div > strong {
    font-size: 17px;
}

.ops-activity-heading > a {
    color: #087f6b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.ops-activity-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #eaf8f4;
    color: #087f6b;
    font-weight: 900;
}

.ops-activity-items {
    margin-top: 12px;
}

.ops-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid #edf0f4;
}

.ops-activity-item > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ops-activity-item > div > small {
    margin-top: 2px;
    color: var(--muted);
    font-weight: 600;
}

.ops-activity-item > strong {
    flex: 0 0 auto;
}

.ops-inline-empty {
    margin-top: 12px;
    padding: 13px 14px;
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed #cbd5df;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}


/* Close */

.ops-close-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 24px;
    padding: 18px;
    background: #fff;
    border: 1px solid #f0d5d5;
    border-radius: 18px;
}

.ops-close-section > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ops-close-section > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.ops-close-section > a {
    flex: 0 0 auto;
    padding: 11px 14px;
    color: #a63c3c;
    background: #fff6f6;
    border: 1px solid #efc4c4;
    border-radius: 11px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.ops-closed-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding: 17px 18px;
    background: #effbf7;
    border: 1px solid #bce8da;
    border-radius: 17px;
}

.ops-closed-check {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #118d70;
    color: #fff;
    font-weight: 900;
}

.ops-closed-summary > div {
    display: flex;
    flex-direction: column;
}

.ops-closed-summary small {
    margin-top: 2px;
    color: var(--muted);
}


/* Mobile */

@media (max-width: 600px) {

    .ops-welcome {
        margin-bottom: 14px;
    }

    .ops-welcome h1 {
        font-size: 27px;
    }

    .ops-welcome p {
        font-size: 14px;
    }

    .ops-day-strip {
        gap: 10px;
        padding: 14px;
        margin-bottom: 20px;
        border-radius: 15px;
    }

    .ops-day-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .ops-day-copy strong {
        font-size: 17px;
    }

    .ops-day-copy small {
        font-size: 11px;
    }

    .ops-status-badge {
        padding: 6px 8px;
        font-size: 9px;
    }

    .ops-section {
        margin-bottom: 20px;
    }

    .ops-section-title {
        margin-bottom: 10px;
    }

    .ops-section-title h2 {
        font-size: 19px;
    }

    .ops-snapshot {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 15px;
    }

    .ops-snapshot article {
        padding: 14px;
    }

    .ops-snapshot article:nth-child(2) {
        border-right: 0;
    }

    .ops-snapshot article:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .ops-snapshot article > strong {
        font-size: 18px;
    }

    .ops-snapshot article > small {
        font-size: 11px;
    }

    .ops-quick-actions {
        gap: 9px;
    }

    .ops-quick-actions > a {
        min-height: 76px;
        padding: 13px;
    }

    .ops-quick-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 17px;
    }

    .ops-quick-actions strong {
        font-size: 14px;
    }

    .ops-quick-actions small {
        font-size: 11px;
    }

    .ops-payment-values > div {
        padding: 14px 12px;
    }

    .ops-payment-values span {
        font-size: 11px;
    }

    .ops-payment-values strong {
        font-size: 15px;
    }

    .ops-reconciliation {
        padding: 12px 14px;
    }

    .ops-activity-group {
        padding: 15px;
    }

    .ops-close-section {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 15px;
    }

    .ops-close-section > a {
        text-align: center;
    }

}



/* =========================================================
   HISTORICAL BUSINESS DAY RESOLVER V1
   ========================================================= */

.resolver-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.resolver-header {
    margin-bottom: 18px;
}

.resolver-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #087f6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.resolver-owner-badge {
    display: block;
    width: fit-content;
    margin-bottom: 7px;
    padding: 5px 8px;
    color: #72520a;
    background: #fff4d6;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}

.resolver-header h1 {
    margin: 0;
    font-size: clamp(27px, 5vw, 38px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.resolver-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 600;
}

.resolver-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    background: #fff8e8;
    border: 1px solid #efd9a2;
    border-radius: 16px;
}

.resolver-warning-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #8a6200;
    background: #ffe9ac;
    border-radius: 50%;
    font-weight: 900;
}

.resolver-warning > div:last-child {
    display: flex;
    flex-direction: column;
}

.resolver-warning span {
    margin-top: 3px;
    color: #725f32;
    font-size: 13px;
    line-height: 1.45;
}

.resolver-card {
    margin-bottom: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.resolver-card-heading {
    margin-bottom: 15px;
}

.resolver-card-heading > span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
}

.resolver-card-heading h2 {
    margin: 0;
    font-size: 20px;
}

.resolver-card-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.resolver-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.resolver-summary-grid > div {
    padding: 15px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.resolver-summary-grid > div:nth-child(2n) {
    border-right: 0;
}

.resolver-summary-grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.resolver-summary-grid span,
.resolver-payment-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.resolver-summary-grid strong,
.resolver-payment-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.resolver-highlight {
    background: #eefaf6;
}

.resolver-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.resolver-payment-grid > div {
    padding: 15px;
    border-right: 1px solid var(--border);
}

.resolver-payment-grid > div:last-child {
    border-right: 0;
}

.resolver-payment-note {
    margin-top: 12px;
    padding: 12px 13px;
    color: #7a4b14;
    background: #fff6e9;
    border-radius: 11px;
    font-size: 13px;
    line-height: 1.45;
}

.resolver-payment-note.neutral {
    color: var(--muted);
    background: #f7f9fb;
}

.resolver-form {
    display: grid;
    gap: 16px;
}

.resolver-field {
    display: flex;
    flex-direction: column;
}

.resolver-field label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
}

.resolver-field input,
.resolver-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    color: var(--text);
    background: #fff;
    border: 1px solid #cbd4df;
    border-radius: 11px;
    font: inherit;
}

.resolver-field input:focus,
.resolver-field textarea:focus {
    outline: 2px solid rgba(14, 137, 121, .18);
    border-color: #0e8979;
}

.resolver-field small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.resolver-error {
    margin-top: 5px;
    color: #b33c3c;
    font-size: 12px;
    font-weight: 700;
}

.resolver-confirmation {
    display: flex;
    flex-direction: column;
    padding: 13px;
    background: #f7f9fb;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.resolver-confirmation strong {
    font-size: 13px;
}

.resolver-confirmation span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.resolver-submit {
    width: 100%;
    padding: 13px 16px;
    color: #fff;
    background: #0e8979;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 600px) {

    .resolver-card {
        padding: 15px;
        border-radius: 15px;
    }

    .resolver-summary-grid > div,
    .resolver-payment-grid > div {
        padding: 13px 11px;
    }

    .resolver-summary-grid strong,
    .resolver-payment-grid strong {
        font-size: 16px;
    }

}


/* Historical resolver summary grid refinement */

.resolver-summary-grid > div {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.resolver-summary-grid > div:nth-child(2n) {
    border-right: 0;
}

.resolver-summary-grid > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
}



/* =========================================================
   FRONTEND V3 — APPLICATION DRAWER
   ========================================================= */

.mobile-menu-trigger {
    display: none;
}

.app-drawer,
.app-drawer-backdrop {
    display: none;
}


@media (max-width: 767px) {

    .mobile-menu {
        display: none !important;
    }

    .mobile-menu-trigger {
        appearance: none;
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        padding: 0;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        color: #ffffff;
        cursor: pointer;
    }

    .mobile-menu-trigger .menu-icon {
        position: relative;
        width: 21px;
        height: 14px;
        border-top: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
    }

    .mobile-menu-trigger .menu-icon::after {
        content: "";
        position: absolute;
        left: 0;
        top: 5px;
        width: 21px;
        border-top: 2px solid currentColor;
    }


    .app-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(3, 10, 24, 0.58);
        opacity: 0;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        transition: opacity 180ms ease;
    }

    .app-drawer-backdrop[hidden] {
        display: none;
    }

    .app-drawer-backdrop.is-visible {
        opacity: 1;
    }


    .app-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        z-index: 1200;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 360px);
        padding:
            max(18px, env(safe-area-inset-top))
            18px
            max(22px, env(safe-area-inset-bottom));
        background: #0b1728;
        color: #ffffff;
        box-shadow: -18px 0 50px rgba(0, 0, 0, 0.28);
        transform: translateX(104%);
        visibility: hidden;
        transition:
            transform 220ms ease,
            visibility 220ms ease;
        overflow-y: auto;
    }

    .app-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    body.drawer-open {
        overflow: hidden;
        touch-action: none;
    }


    .app-drawer-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .app-drawer .mobile-user {
        flex: 1;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .app-drawer-close {
        appearance: none;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        font: inherit;
        font-size: 27px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }


    .app-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 16px 0;
    }

    .drawer-section-label {
        margin: 14px 10px 6px;
        color: #7f90aa;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .drawer-section-label:first-child {
        margin-top: 0;
    }

    .app-drawer-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 12px;
        color: #f8fafc;
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 700;
    }

    .app-drawer-nav a:active {
        background: rgba(255, 255, 255, 0.07);
    }

    .app-drawer-nav a b {
        color: #5eead4;
        font-size: 1.15rem;
        font-weight: 500;
    }


    .app-drawer-footer {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: auto;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .app-drawer-footer .mobile-logout {
        display: inline-flex;
        width: fit-content;
        color: #fda4af;
        text-decoration: none;
        font-weight: 800;
    }

    .app-drawer-footer small {
        color: #718096;
        font-size: 0.7rem;
        font-weight: 600;
    }

}


/* Drawer is a mobile interaction only. */
@media (min-width: 768px) {

    .mobile-menu-trigger,
    .app-drawer,
    .app-drawer-backdrop {
        display: none !important;
    }

}



/* =========================================================
   OWNER COMMAND CENTRE V3
   ========================================================= */

.command-centre {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.cc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.cc-eyebrow,
.cc-panel-heading > div > span,
.cc-chart-heading > div > span {
    display: block;
    margin-bottom: 5px;
    color: #718096;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cc-header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.cc-header p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.cc-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid #d7e7e3;
    border-radius: 999px;
    background: #ffffff;
    color: #087f6c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cc-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}


/* Period selector */

.cc-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #e9eef4;
}

.cc-periods button {
    appearance: none;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.cc-periods button.active {
    background: #ffffff;
    color: #087f6c;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}


/* Financial hero */

.cc-financial-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(45, 212, 191, 0.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0d1b2e,
            #10263b
        );
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.cc-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cc-hero-top > div:first-child > span {
    display: block;
    margin-bottom: 7px;
    color: #8fa4bb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cc-hero-top > div:first-child > strong {
    display: block;
    font-size: clamp(2.15rem, 8vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.cc-hero-top > div:first-child > small {
    display: block;
    margin-top: 7px;
    color: #a8b7c8;
    font-size: 0.78rem;
    font-weight: 700;
}

.cc-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cc-hero-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cc-hero-status.is-open span {
    background: #34d399;
}

.cc-hero-status.is-closed span {
    background: #60a5fa;
}

.cc-hero-status.is-pending span {
    background: #fbbf24;
}

.cc-money-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

.cc-money-grid > div {
    padding: 13px 14px;
    background: rgba(8, 20, 35, 0.72);
}

.cc-money-grid span {
    display: block;
    margin-bottom: 5px;
    color: #8fa4bb;
    font-size: 0.7rem;
    font-weight: 700;
}

.cc-money-grid strong {
    font-size: 1.12rem;
    letter-spacing: -0.025em;
}

.cc-money-grid strong.is-negative {
    color: #fda4af;
}


/* Chart */

.cc-chart {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.cc-chart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cc-chart-heading > div > span {
    color: #6f849a;
}

.cc-chart-heading strong {
    font-size: 0.92rem;
}

.cc-chart-heading > small {
    color: #71869c;
    font-size: 0.66rem;
    font-weight: 600;
}

.cc-chart-area {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    height: 130px;
    margin-top: 18px;
    padding-top: 6px;
}

.cc-chart-day {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    min-width: 0;
}

.cc-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-height: 95px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cc-bar {
    display: block;
    width: min(10px, 38%);
    min-height: 2px;
    border-radius: 5px 5px 2px 2px;
    transition: height 300ms ease;
}

.cc-bar.revenue {
    background: #2dd4bf;
}

.cc-bar.expense {
    background: #fb7185;
}

.cc-chart-day > small {
    color: #71869c;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
}

.cc-chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    color: #8fa4bb;
    font-size: 0.65rem;
    font-weight: 700;
}

.cc-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cc-chart-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.cc-chart-legend i.revenue {
    background: #2dd4bf;
}

.cc-chart-legend i.expense {
    background: #fb7185;
}


/* Panels */

.cc-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.055);
}

.cc-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cc-panel-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cc-panel-heading > a {
    color: #087f6c;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
}


/* Operation */

.cc-operation p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
}

.cc-operation-dot {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 50%;
}

.cc-operation-dot.open {
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18,183,106,0.1);
}

.cc-operation-dot.closed {
    background: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.1);
}

.cc-operation-dot.pending {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245,158,11,0.1);
}

.cc-operation-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #0d9488;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.cc-operation-action span {
    font-size: 1.1rem;
}

.cc-operation-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 15px;
}

.cc-operation-actions a {
    padding: 10px 7px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    color: #344054;
    text-align: center;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
}


/* Attention */

.cc-attention {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 13px;
}

.cc-attention.is-clear {
    border: 1px solid #a6f4c5;
    background: #ecfdf3;
}

.cc-attention.is-warning {
    border: 1px solid #fedf89;
    background: #fffaeb;
}

.cc-attention-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #087f6c;
    color: #ffffff;
    font-weight: 900;
}

.cc-attention.is-warning .cc-attention-icon {
    background: #dc6803;
}

.cc-attention strong,
.cc-attention span {
    display: block;
}

.cc-attention strong {
    color: #101828;
    font-size: 0.78rem;
}

.cc-attention span {
    margin-top: 2px;
    color: #667085;
    font-size: 0.67rem;
    font-weight: 600;
}


/* Control centre */

.cc-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.cc-control-tile {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #f8fafc;
    color: #101828;
    text-decoration: none;
}

.cc-control-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 11px;
    border-radius: 9px;
    background: #e6f7f4;
    color: #087f6c;
    font-size: 0.9rem;
    font-weight: 900;
}

.cc-control-tile strong {
    font-size: 0.78rem;
}

.cc-control-tile small {
    margin-top: 3px;
    color: #7a8699;
    font-size: 0.64rem;
    font-weight: 600;
}

.cc-control-tile b {
    position: absolute;
    top: 13px;
    right: 13px;
    color: #0d9488;
    font-size: 0.66rem;
}

.cc-control-tile.is-coming {
    opacity: 0.68;
}


/* Income streams */

.cc-stream-list {
    margin-top: 13px;
}

.cc-stream {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    border-bottom: 1px solid #edf0f4;
}

.cc-stream:last-child {
    border-bottom: 0;
}

.cc-stream-copy strong,
.cc-stream-copy small {
    display: block;
}

.cc-stream-copy strong {
    color: #101828;
    font-size: 0.76rem;
}

.cc-stream-copy small {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 0.63rem;
    font-weight: 600;
}

.cc-stream-value {
    flex: 0 0 auto;
    color: #101828;
    font-size: 0.79rem;
}


/* Timeline */

.cc-timeline {
    margin-top: 13px;
}

.cc-timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    border-bottom: 1px solid #edf0f4;
}

.cc-timeline-item:last-child {
    border-bottom: 0;
}

.cc-timeline-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cc-timeline-mark.revenue {
    background: #12b76a;
}

.cc-timeline-mark.expense {
    background: #f04438;
}

.cc-timeline-item strong,
.cc-timeline-item small {
    display: block;
}

.cc-timeline-item strong {
    color: #101828;
    font-size: 0.73rem;
}

.cc-timeline-item small {
    margin-top: 3px;
    overflow: hidden;
    color: #98a2b3;
    font-size: 0.61rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-timeline-item > b {
    color: #344054;
    font-size: 0.7rem;
}

.cc-empty {
    padding: 17px 0 3px;
}

.cc-empty strong,
.cc-empty span {
    display: block;
}

.cc-empty strong {
    color: #344054;
    font-size: 0.78rem;
}

.cc-empty span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 0.67rem;
    font-weight: 600;
}


/* Value transition */

.cc-value-change {
    animation: ccValueChange 220ms ease;
}

@keyframes ccValueChange {
    from {
        opacity: 0.35;
        transform: translateY(3px);
    }

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


/* Wider screens */

@media (min-width: 768px) {

    .cc-financial-hero {
        padding: 28px;
    }

    .cc-control-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .command-centre {
        padding-top: 10px;
    }

}



/* =========================================================
   OWNER COMMAND CENTRE V3
   ========================================================= */

.command-centre {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.cc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.cc-eyebrow,
.cc-panel-heading > div > span,
.cc-chart-heading > div > span {
    display: block;
    margin-bottom: 5px;
    color: #718096;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cc-header h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.cc-header p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 0.9rem;
    font-weight: 600;
}

.cc-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid #d7e7e3;
    border-radius: 999px;
    background: #ffffff;
    color: #087f6c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cc-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.12);
}


/* Period selector */

.cc-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #e9eef4;
}

.cc-periods button {
    appearance: none;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.cc-periods button.active {
    background: #ffffff;
    color: #087f6c;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}


/* Financial hero */

.cc-financial-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(45, 212, 191, 0.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #0d1b2e,
            #10263b
        );
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.cc-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cc-hero-top > div:first-child > span {
    display: block;
    margin-bottom: 7px;
    color: #8fa4bb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cc-hero-top > div:first-child > strong {
    display: block;
    font-size: clamp(2.15rem, 8vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.cc-hero-top > div:first-child > small {
    display: block;
    margin-top: 7px;
    color: #a8b7c8;
    font-size: 0.78rem;
    font-weight: 700;
}

.cc-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #cbd5e1;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cc-hero-status span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cc-hero-status.is-open span {
    background: #34d399;
}

.cc-hero-status.is-closed span {
    background: #60a5fa;
}

.cc-hero-status.is-pending span {
    background: #fbbf24;
}

.cc-money-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
}

.cc-money-grid > div {
    padding: 13px 14px;
    background: rgba(8, 20, 35, 0.72);
}

.cc-money-grid span {
    display: block;
    margin-bottom: 5px;
    color: #8fa4bb;
    font-size: 0.7rem;
    font-weight: 700;
}

.cc-money-grid strong {
    font-size: 1.12rem;
    letter-spacing: -0.025em;
}

.cc-money-grid strong.is-negative {
    color: #fda4af;
}


/* Chart */

.cc-chart {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.cc-chart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cc-chart-heading > div > span {
    color: #6f849a;
}

.cc-chart-heading strong {
    font-size: 0.92rem;
}

.cc-chart-heading > small {
    color: #71869c;
    font-size: 0.66rem;
    font-weight: 600;
}

.cc-chart-area {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    height: 130px;
    margin-top: 18px;
    padding-top: 6px;
}

.cc-chart-day {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 8px;
    min-width: 0;
}

.cc-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-height: 95px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cc-bar {
    display: block;
    width: min(10px, 38%);
    min-height: 2px;
    border-radius: 5px 5px 2px 2px;
    transition: height 300ms ease;
}

.cc-bar.revenue {
    background: #2dd4bf;
}

.cc-bar.expense {
    background: #fb7185;
}

.cc-chart-day > small {
    color: #71869c;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
}

.cc-chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    color: #8fa4bb;
    font-size: 0.65rem;
    font-weight: 700;
}

.cc-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cc-chart-legend i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.cc-chart-legend i.revenue {
    background: #2dd4bf;
}

.cc-chart-legend i.expense {
    background: #fb7185;
}


/* Panels */

.cc-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 24, 40, 0.055);
}

.cc-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cc-panel-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cc-panel-heading > a {
    color: #087f6c;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 800;
}


/* Operation */

.cc-operation p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
}

.cc-operation-dot {
    width: 11px;
    height: 11px;
    margin-top: 5px;
    border-radius: 50%;
}

.cc-operation-dot.open {
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18,183,106,0.1);
}

.cc-operation-dot.closed {
    background: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.1);
}

.cc-operation-dot.pending {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245,158,11,0.1);
}

.cc-operation-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #0d9488;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.cc-operation-action span {
    font-size: 1.1rem;
}

.cc-operation-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 15px;
}

.cc-operation-actions a {
    padding: 10px 7px;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    color: #344054;
    text-align: center;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
}


/* Attention */

.cc-attention {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 13px;
}

.cc-attention.is-clear {
    border: 1px solid #a6f4c5;
    background: #ecfdf3;
}

.cc-attention.is-warning {
    border: 1px solid #fedf89;
    background: #fffaeb;
}

.cc-attention-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #087f6c;
    color: #ffffff;
    font-weight: 900;
}

.cc-attention.is-warning .cc-attention-icon {
    background: #dc6803;
}

.cc-attention strong,
.cc-attention span {
    display: block;
}

.cc-attention strong {
    color: #101828;
    font-size: 0.78rem;
}

.cc-attention span {
    margin-top: 2px;
    color: #667085;
    font-size: 0.67rem;
    font-weight: 600;
}


/* Control centre */

.cc-control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.cc-control-tile {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #f8fafc;
    color: #101828;
    text-decoration: none;
}

.cc-control-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 11px;
    border-radius: 9px;
    background: #e6f7f4;
    color: #087f6c;
    font-size: 0.9rem;
    font-weight: 900;
}

.cc-control-tile strong {
    font-size: 0.78rem;
}

.cc-control-tile small {
    margin-top: 3px;
    color: #7a8699;
    font-size: 0.64rem;
    font-weight: 600;
}

.cc-control-tile b {
    position: absolute;
    top: 13px;
    right: 13px;
    color: #0d9488;
    font-size: 0.66rem;
}

.cc-control-tile.is-coming {
    opacity: 0.68;
}


/* Income streams */

.cc-stream-list {
    margin-top: 13px;
}

.cc-stream {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    border-bottom: 1px solid #edf0f4;
}

.cc-stream:last-child {
    border-bottom: 0;
}

.cc-stream-copy strong,
.cc-stream-copy small {
    display: block;
}

.cc-stream-copy strong {
    color: #101828;
    font-size: 0.76rem;
}

.cc-stream-copy small {
    margin-top: 3px;
    color: #98a2b3;
    font-size: 0.63rem;
    font-weight: 600;
}

.cc-stream-value {
    flex: 0 0 auto;
    color: #101828;
    font-size: 0.79rem;
}


/* Timeline */

.cc-timeline {
    margin-top: 13px;
}

.cc-timeline-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    border-bottom: 1px solid #edf0f4;
}

.cc-timeline-item:last-child {
    border-bottom: 0;
}

.cc-timeline-mark {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cc-timeline-mark.revenue {
    background: #12b76a;
}

.cc-timeline-mark.expense {
    background: #f04438;
}

.cc-timeline-item strong,
.cc-timeline-item small {
    display: block;
}

.cc-timeline-item strong {
    color: #101828;
    font-size: 0.73rem;
}

.cc-timeline-item small {
    margin-top: 3px;
    overflow: hidden;
    color: #98a2b3;
    font-size: 0.61rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-timeline-item > b {
    color: #344054;
    font-size: 0.7rem;
}

.cc-empty {
    padding: 17px 0 3px;
}

.cc-empty strong,
.cc-empty span {
    display: block;
}

.cc-empty strong {
    color: #344054;
    font-size: 0.78rem;
}

.cc-empty span {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 0.67rem;
    font-weight: 600;
}


/* Value transition */

.cc-value-change {
    animation: ccValueChange 220ms ease;
}

@keyframes ccValueChange {
    from {
        opacity: 0.35;
        transform: translateY(3px);
    }

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


/* Wider screens */

@media (min-width: 768px) {

    .cc-financial-hero {
        padding: 28px;
    }

    .cc-control-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .command-centre {
        padding-top: 10px;
    }

}



/* =========================================================
   TECHMANN FRONTEND V3.1
   MODERN SHELL + LIGHT / DARK DESIGN SYSTEM
   ========================================================= */

:root {
    --tm-bg: #f3f6f9;
    --tm-surface: #ffffff;
    --tm-surface-2: #f8fafc;
    --tm-surface-3: #eef2f6;

    --tm-text: #101828;
    --tm-text-soft: #475467;
    --tm-muted: #7b8799;

    --tm-border: #e1e7ef;
    --tm-border-soft: #edf1f5;

    --tm-brand: #0d9488;
    --tm-brand-strong: #087f6c;
    --tm-brand-soft: #e7f8f5;

    --tm-header: #0f172a;
    --tm-header-text: #ffffff;

    --tm-danger: #e5484d;
    --tm-warning: #f59e0b;

    --tm-shadow:
        0 1px 2px rgba(16, 24, 40, 0.03),
        0 8px 24px rgba(16, 24, 40, 0.06);

    --tm-nav-height: 72px;
}


html[data-theme="dark"] {
    color-scheme: dark;

    --tm-bg: #07111f;
    --tm-surface: #0d1929;
    --tm-surface-2: #111f31;
    --tm-surface-3: #17263a;

    --tm-text: #f5f7fa;
    --tm-text-soft: #c4ceda;
    --tm-muted: #8796aa;

    --tm-border: #23344a;
    --tm-border-soft: #1a2a3e;

    --tm-brand: #2dd4bf;
    --tm-brand-strong: #5eead4;
    --tm-brand-soft: #103833;

    --tm-header: #07111f;
    --tm-header-text: #ffffff;

    --tm-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 12px 30px rgba(0, 0, 0, 0.22);
}


html,
body {
    background: var(--tm-bg);
}

body {
    color: var(--tm-text);
    transition:
        background-color 180ms ease,
        color 180ms ease;
}


/* =========================================================
   HEADER
   ========================================================= */

.app-header {
    background: var(--tm-header);
    border-bottom: 1px solid
        rgba(255, 255, 255, 0.06);
}

.mobile-menu-trigger {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid
        rgba(255,255,255,0.16);
    border-radius: 13px;
    background:
        rgba(255,255,255,0.055);
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    appearance: none;
}

.menu-svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.mobile-menu-trigger:active {
    transform: scale(0.94);
}


/* Remove old CSS-generated menu icon */

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.desktop-theme-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid
        rgba(255,255,255,0.13);
    border-radius: 12px;
    background:
        rgba(255,255,255,0.05);
    color: #ffffff;
    cursor: pointer;
}

.desktop-theme-toggle svg {
    grid-area: 1 / 1;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-moon {
    display: none;
}

html[data-theme="dark"]
.desktop-theme-toggle .theme-sun {
    display: none;
}

html[data-theme="dark"]
.desktop-theme-toggle .theme-moon {
    display: block;
}


/* =========================================================
   DRAWER
   ========================================================= */

.app-drawer {
    background: #091525;
    border-left: 1px solid
        rgba(255,255,255,0.07);
    box-shadow:
        -24px 0 60px rgba(0,0,0,0.28);
}

.app-drawer-nav a {
    border-radius: 12px;
    transition:
        background-color 140ms ease,
        transform 140ms ease;
}

.app-drawer-nav a:hover,
.app-drawer-nav a:focus-visible {
    background:
        rgba(255,255,255,0.055);
}

.app-drawer-nav a:active {
    transform: scale(0.985);
}

.app-drawer-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
}


/* =========================================================
   DRAWER THEME SWITCH
   ========================================================= */

.theme-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 0 18px;
    border-bottom: 1px solid
        rgba(255,255,255,0.1);
}

.theme-control-copy {
    display: flex;
    align-items: center;
    gap: 11px;
}

.theme-control-copy > span:last-child {
    display: flex;
    flex-direction: column;
}

.theme-control-copy strong {
    color: #f8fafc;
    font-size: 0.8rem;
}

.theme-control-copy small {
    margin-top: 2px;
    color: #7f8ca1;
    font-size: 0.66rem;
    font-weight: 600;
}

.theme-control-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background:
        rgba(45,212,191,0.1);
    color: #5eead4;
}

.theme-control-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.theme-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #344054;
    cursor: pointer;
    transition: background 160ms ease;
}

.theme-switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.25);
    transition: transform 180ms ease;
}

.theme-switch[aria-checked="true"] {
    background: #0d9488;
}

.theme-switch[aria-checked="true"] span {
    transform: translateX(20px);
}


/* =========================================================
   GENERAL SURFACES
   ========================================================= */

.container {
    background: var(--tm-bg);
}

.card,
.panel,
.cc-panel,
.cc-operation-card,
.cc-control-tile,
.ops-activity-card,
.ops-control-card,
.ops-snapshot,
.ops-day-strip,
.ops-closed-summary,
.resolver-card {
    background: var(--tm-surface);
    border-color: var(--tm-border);
    color: var(--tm-text);
    box-shadow: var(--tm-shadow);
}


/* Command Centre text */

.command-centre,
.command-centre h1,
.command-centre h2,
.command-centre h3,
.cc-stream-copy strong,
.cc-stream-value,
.cc-timeline-item strong,
.cc-timeline-item > b,
.cc-attention strong,
.cc-control-tile {
    color: var(--tm-text);
}

.command-centre p,
.cc-stream-copy small,
.cc-timeline-item small,
.cc-attention span,
.cc-control-tile small,
.cc-empty span {
    color: var(--tm-muted);
}

.cc-control-tile {
    background: var(--tm-surface-2);
    border-color: var(--tm-border);
}

.cc-stream,
.cc-timeline-item {
    border-color: var(--tm-border-soft);
}

.cc-empty strong {
    color: var(--tm-text-soft);
}


/* Attention states in dark mode */

html[data-theme="dark"]
.cc-attention.is-clear {
    border-color: #155e52;
    background: #0b2e2a;
}

html[data-theme="dark"]
.cc-attention.is-warning {
    border-color: #7c4a03;
    background: #2e210c;
}


/* =========================================================
   BOTTOM APPLICATION BAR
   ========================================================= */

.mobile-bottom-nav {
    background:
        color-mix(
            in srgb,
            var(--tm-surface) 94%,
            transparent
        );
    border-top: 1px solid var(--tm-border);
    box-shadow:
        0 -8px 28px rgba(16,24,40,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.mobile-bottom-nav a {
    position: relative;
    gap: 4px;
    color: var(--tm-muted);
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.mobile-bottom-nav a:active {
    transform: scale(0.94);
}

.mobile-bottom-nav a.active {
    color: var(--tm-brand-strong);
}

.bottom-nav-icon {
    display: grid;
    width: 34px;
    height: 28px;
    place-items: center;
    border-radius: 10px;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.mobile-bottom-nav a.active
.bottom-nav-icon {
    background: var(--tm-brand-soft);
}

.bottom-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-bottom-nav a > span:last-child {
    font-size: 0.61rem;
    font-weight: 750;
}


/* =========================================================
   FORMS — THEME COMPATIBILITY
   ========================================================= */

input,
select,
textarea {
    background: var(--tm-surface);
    border-color: var(--tm-border);
    color: var(--tm-text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--tm-brand);
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--tm-brand) 15%,
            transparent
        );
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .desktop-theme-toggle {
        display: none;
    }

    .mobile-menu-trigger {
        display: inline-flex;
    }

    .header-inner {
        gap: 10px;
    }

    .mobile-bottom-nav {
        min-height:
            calc(
                var(--tm-nav-height) +
                env(safe-area-inset-bottom)
            );
        padding-bottom:
            env(safe-area-inset-bottom);
    }

    body {
        padding-bottom:
            calc(
                var(--tm-nav-height) +
                env(safe-area-inset-bottom)
            );
    }
}


/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid
        rgba(45,212,191,0.38);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   V3.1.1 — MOBILE HEADER ALIGNMENT
   ========================================================= */

@media (max-width: 767px) {

    .header-inner {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .mobile-menu-trigger {
        flex: 0 0 44px;
        margin-left: auto;
    }

}


/* =========================================================
   V3.1.1 — HEADER + PERIOD CHART
   ========================================================= */

@media (max-width: 767px) {

    .header-inner {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .mobile-menu-trigger {
        flex: 0 0 44px;
        margin-left: auto;
    }

}


.cc-chart-period[hidden] {
    display: none !important;
}

.cc-chart-period.active {
    animation:
        ccPeriodChartIn 180ms ease;
}

@keyframes ccPeriodChartIn {

    from {
        opacity: 0.35;
        transform: translateY(3px);
    }

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

}


/* =========================================================
   V3.2 — MOBILE HEADER EDGE ALIGNMENT
   ========================================================= */

@media (max-width: 767px) {

    .app-header {
        width: 100%;
    }

    .app-header .header-inner {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left:
            max(24px, env(safe-area-inset-left));

        padding-right:
            max(24px, env(safe-area-inset-right));

        box-sizing: border-box;
    }

    .app-header .brand {
        flex: 0 1 auto;
        min-width: 0;
    }

    .app-header .mobile-menu-trigger {
        display: inline-flex;
        flex: 0 0 44px;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

}


/* Period charts always obey hidden state */

.cc-chart-period[hidden] {
    display: none !important;
}



/* =========================================================
   TECHMANN OPERATIONS TARGET UI
   ========================================================= */

.ops-target-ui {
    max-width: 620px;
    margin: 0 auto;
    padding: 20px 18px 32px;
}


/* Header */

.ops-target-ui .ops-welcome {
    margin-bottom: 16px;
}

.ops-target-ui .ops-welcome h1 {
    margin: 3px 0 2px;
    font-size: 1.55rem;
    line-height: 1.08;
}

.ops-target-ui .ops-welcome p {
    margin: 0;
    font-size: 0.78rem;
}

.ops-target-ui .ops-date {
    font-size: 0.63rem;
    letter-spacing: 0.11em;
}


/* Business day */

.ops-target-ui .ops-day-strip {
    min-height: auto;
    margin-bottom: 18px;
    padding: 14px 15px;
    border-radius: 15px;
}

.ops-target-ui .ops-day-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

.ops-target-ui .ops-day-copy {
    gap: 0;
}

.ops-target-ui .ops-day-copy > span {
    font-size: 0.58rem;
}

.ops-target-ui .ops-day-copy strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.ops-target-ui .ops-day-copy small {
    margin-top: 2px;
    font-size: 0.61rem;
}

.ops-target-ui .ops-status-badge {
    padding: 6px 9px;
    font-size: 0.55rem;
}


/* Sections */

.ops-target-ui .ops-section {
    margin-top: 18px;
}

.ops-target-ui .ops-section-title {
    margin-bottom: 9px;
}

.ops-target-ui .ops-section-title span {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.ops-target-ui .ops-section-title h2 {
    margin-top: 2px;
    font-size: 1.08rem;
    line-height: 1.15;
}


/* Financial position — exactly 3 columns */

.ops-target-ui .ops-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    background: var(--tm-surface);
}

.ops-target-ui .ops-snapshot article {
    min-width: 0;
    min-height: 92px;
    padding: 14px 10px;
    border: 0;
    border-right: 1px solid var(--tm-border);
}

.ops-target-ui .ops-snapshot article:last-child {
    border-right: 0;
}

.ops-target-ui .ops-snapshot article > span {
    display: block;
    font-size: 0.65rem;
    line-height: 1.2;
}

.ops-target-ui .ops-snapshot article > strong {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.1;
    white-space: nowrap;
}

.ops-target-ui .ops-snapshot article:nth-child(1) > strong {
    color: var(--tm-brand-strong);
}

.ops-target-ui .ops-snapshot article:nth-child(2) > strong {
    color: var(--tm-danger);
}


/* Main operational actions */

.ops-target-ui .ops-target-actions {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.ops-target-ui .ops-target-sale,
.ops-target-ui .ops-target-expense {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 9px 13px;
    border-radius: 12px;
    text-decoration: none;
}

.ops-target-ui .ops-target-sale {
    border: 1px solid var(--tm-brand);
    background: var(--tm-brand);
    color: #ffffff;
}

.ops-target-ui .ops-target-expense {
    border: 1px solid var(--tm-brand);
    background: var(--tm-surface);
    color: var(--tm-brand-strong);
}

.ops-target-ui .ops-target-sale .ops-action-symbol,
.ops-target-ui .ops-target-expense .ops-action-symbol {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 500;
}

.ops-target-ui .ops-target-sale .ops-action-symbol {
    border: 1px solid rgba(255,255,255,.75);
}

.ops-target-ui .ops-target-expense .ops-action-symbol {
    border: 1px solid var(--tm-brand);
}

.ops-target-ui .ops-target-sale strong,
.ops-target-ui .ops-target-expense strong {
    display: block;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ops-target-ui .ops-target-sale small,
.ops-target-ui .ops-target-expense small {
    display: block;
    margin-top: 1px;
    font-size: 0.58rem;
    opacity: 0.78;
}

.ops-target-ui .ops-target-sale b,
.ops-target-ui .ops-target-expense b {
    font-size: 1.2rem;
}


/* Payment control */

.ops-target-ui .ops-control-card {
    overflow: hidden;
    border-radius: 14px;
}

.ops-target-ui .ops-payment-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ops-target-ui .ops-payment-values > div {
    min-height: 70px;
    padding: 12px;
}

.ops-target-ui .ops-payment-values span {
    font-size: 0.62rem;
}

.ops-target-ui .ops-payment-values strong {
    margin-top: 5px;
    font-size: 0.78rem;
}

.ops-target-ui .ops-reconciliation {
    min-height: auto;
    padding: 11px 13px;
}

.ops-target-ui .ops-reconciliation strong {
    font-size: 0.71rem;
}

.ops-target-ui .ops-reconciliation small {
    font-size: 0.61rem;
}


/* Recent transactions */

.ops-target-ui .ops-activity-card {
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
}

.ops-target-ui .ops-activity-item {
    min-height: 54px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--tm-border-soft);
}

.ops-target-ui .ops-activity-item:last-child {
    border-bottom: 0;
}

.ops-target-ui .ops-activity-item > div > strong {
    font-size: 0.72rem;
}

.ops-target-ui .ops-activity-item small {
    font-size: 0.59rem;
}

.ops-target-ui .ops-activity-item > strong {
    font-size: 0.7rem;
}

.ops-target-ui .ops-money-in {
    color: var(--tm-brand-strong);
}

.ops-target-ui .ops-money-out {
    color: var(--tm-danger);
}

.ops-target-ui .ops-inline-empty {
    padding: 18px 14px;
    font-size: 0.68rem;
}


/* Close business day */

.ops-target-ui .ops-close-section {
    display: block;
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
}

.ops-target-ui .ops-close-section > div strong {
    font-size: 0.75rem;
}

.ops-target-ui .ops-close-section > div span {
    margin-top: 2px;
    font-size: 0.61rem;
}

.ops-target-ui .ops-close-section > a {
    display: block;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.7rem;
}


/* Mobile target proportions */

@media (max-width: 767px) {

    .ops-target-ui {
        padding:
            16px
            14px
            28px;
    }

    .ops-target-ui .ops-welcome {
        align-items: flex-start;
    }

    .ops-target-ui .page-role {
        margin-top: 1px;
    }

    .ops-target-ui .ops-snapshot article {
        padding: 13px 8px;
    }

    .ops-target-ui .ops-snapshot article > strong {
        font-size: clamp(0.72rem, 3.5vw, 0.9rem);
    }

}



/* =========================================================
   TECHMANN RECORD REVENUE V1
   ========================================================= */

.revenue-entry-page {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 110px;
}

.revenue-entry-header {
    margin-bottom: 20px;
}

.revenue-back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--tm-brand);
    font-weight: 700;
    text-decoration: none;
}

.revenue-entry-header h1 {
    margin: 0 0 5px;
    color: var(--tm-text);
    font-size: 1.75rem;
    line-height: 1.2;
}

.revenue-entry-header p {
    margin: 0;
    color: var(--tm-text-soft);
}

.revenue-entry-card {
    padding: 22px;
}

.revenue-entry-form .form-group {
    margin-bottom: 22px;
}

.revenue-entry-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--tm-text);
    font-weight: 700;
}

.revenue-entry-form .form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    background: var(--tm-surface);
    color: var(--tm-text);
    font: inherit;
    padding: 12px 14px;
}

.revenue-entry-form textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

.revenue-entry-form .form-control:focus {
    outline: none;
    border-color: var(--tm-brand);
    box-shadow: 0 0 0 3px var(--tm-brand-soft);
}

.revenue-entry-row {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 14px;
}

.revenue-money-input {
    position: relative;
}

.revenue-money-input > span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tm-text-soft);
    font-weight: 700;
    pointer-events: none;
}

.revenue-money-input input {
    padding-left: 34px !important;
}

.revenue-payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.revenue-payment-option {
    margin: 0 !important;
    cursor: pointer;
}

.revenue-payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.revenue-payment-option span {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    background: var(--tm-surface);
    color: var(--tm-text-soft);
    font-weight: 700;
    text-align: center;
    transition: 0.15s ease;
}

.revenue-payment-option input:checked + span {
    border-color: var(--tm-brand);
    background: var(--tm-brand-soft);
    color: var(--tm-brand-strong);
}

.revenue-payment-option input:focus-visible + span {
    outline: 2px solid var(--tm-brand);
    outline-offset: 2px;
}

.revenue-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 13px;
    background: var(--tm-brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.revenue-submit:hover {
    background: var(--tm-brand-strong);
}

.form-error {
    margin-top: 6px;
    color: var(--tm-danger);
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 520px) {
    .revenue-entry-card {
        padding: 18px;
    }

    .revenue-entry-row {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 10px;
    }

    .revenue-payment-options {
        gap: 7px;
    }

    .revenue-payment-option span {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
}
