    :root {
            --ink: #1B2A4A;
            --ink-soft: #3C4A6B;
            --paper: #FBF7EE;
            --paper-dim: #F1EBDC;
            --green: #1E7B4D;
            --green-soft: #E4F1E9;
            --rust: #B23A2E;
            --rust-soft: #F7E7E4;
            --gold: #C99A3B;
            --line: rgba(27, 42, 74, 0.14);
            --white: #fff;
            --radius: 14px;
        }
        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html, body { margin: 0; padding: 0; }
        body {
            background: var(--paper);
            color: var(--ink);
            font-family: 'Hind Siliguri', sans-serif;
            min-height: 100vh;
            padding-bottom: 78px;
        }
        h1, h2, h3, .display { font-family: 'Tiro Bangla', serif; }
        .mono { font-family: 'JetBrains Mono', monospace; }
        .topbar {
            position: sticky; top: 0; z-index: 40;
            background: var(--ink); color: var(--paper);
            padding: 16px 18px 14px;
            display: flex; align-items: center; justify-content: space-between;
            box-shadow: 0 2px 10px rgba(27, 42, 74, 0.18);
        }
        .topbar .brand { display: flex; align-items: center; gap: 10px; }
        .topbar .brand-mark {
            width: 34px; height: 34px; border-radius: 9px;
            background: var(--gold); color: var(--ink);
            display: flex; align-items: center; justify-content: center;
            font-family: 'Tiro Bangla', serif; font-size: 18px; font-weight: 700;
        }
        .topbar .brand-text h1 { font-size: 17px; margin: 0; line-height: 1.1; }
        .topbar .brand-text span { font-size: 11px; opacity: .75; }
        .topbar .user-info { display: flex; align-items: center; gap: 10px; }
        .topbar .user-info .uname { font-size: 12px; opacity: .9; }
        .topbar .user-info .logout-btn {
            background: rgba(255, 255, 255, 0.12); border: none;
            color: var(--paper); padding: 4px 10px; border-radius: 20px;
            font-size: 11px; cursor: pointer;
        }
        .wrap { max-width: 520px; margin: 0 auto; padding: 16px; }
        .password-wrapper { position: relative; }
        .password-wrapper input { padding-right: 44px; }
        .toggle-password {
            position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
            background: none; border: none; font-size: 18px; cursor: pointer;
            color: var(--ink-soft); padding: 4px; line-height: 1;
        }
        .toggle-password:active { opacity: 0.6; }
        .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
        .stat {
            background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 14px 14px 12px;
        }
        .stat .label { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
        .stat .value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; }
        .stat.due .value { color: var(--rust); }
        .stat.paid .value { color: var(--green); }
        .stat.income { background: var(--ink); border-color: var(--ink); }
        .stat.income .label { color: rgba(251, 247, 238, 0.75); }
        .stat.income .value { color: var(--gold); font-size: 24px; }
        .id-search-box { display: flex; gap: 8px; margin-bottom: 16px; }
        .id-search-box input { flex: 1; }
        .payment-total-row {
            display: flex; justify-content: space-between; align-items: center;
            background: var(--green-soft); border-radius: 10px;
            padding: 10px 13px; margin-top: 12px;
            font-size: 13.5px; font-weight: 600; color: var(--green);
        }
        .payment-total-row .mono { font-size: 16px; font-weight: 700; }
        .section-head {
            display: flex; align-items: center; justify-content: space-between;
            margin: 22px 0 10px;
        }
        .section-head h2 { font-size: 18px; margin: 0; }
        .section-head .eyebrow {
            font-size: 11px; letter-spacing: .04em; color: var(--ink-soft);
            text-transform: uppercase; display: block; margin-bottom: 2px;
        }
        .search-row { display: flex; gap: 8px; margin-bottom: 12px; }
        .search-row input { flex: 1; }
        input, select, textarea {
            width: 100%; padding: 11px 13px; border-radius: 10px;
            border: 1.5px solid var(--line); background: var(--white);
            font-family: 'Hind Siliguri', sans-serif; font-size: 15px; color: var(--ink);
        }
        input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
        label { font-size: 12.5px; color: var(--ink-soft); display: block; margin: 12px 0 5px; }
        label:first-child { margin-top: 0; }
        .btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 6px; padding: 11px 16px; border-radius: 10px; border: none;
            font-family: 'Hind Siliguri', sans-serif; font-size: 14.5px;
            font-weight: 600; cursor: pointer; text-decoration: none;
            transition: transform 0.08s, opacity 0.15s;
        }
        .btn:active { transform: scale(0.97); }
        .btn-primary { background: var(--ink); color: var(--paper); }
        .btn-gold { background: var(--gold); color: var(--ink); }
        .btn-green { background: var(--green); color: #fff; }
        .btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
        .btn-rust { background: var(--rust); color: #fff; }
        .btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
        .btn-xs { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }
        .btn-block { width: 100%; }
        .btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
        .forgot-link {
            display: block; text-align: right; font-size: 12.5px;
            color: var(--ink-soft); margin-top: 6px; cursor: pointer;
            text-decoration: none; border: none; background: none; padding: 4px 0;
        }
        .forgot-link:hover { color: var(--ink); text-decoration: underline; }
        .student-card {
            background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 14px;
            margin-bottom: 10px; cursor: pointer; transition: background 0.1s;
        }
        .student-card:active { background: var(--paper-dim); }
        .student-card .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
        .student-card h3 { font-size: 16px; margin: 0 0 2px; font-weight: 600; }
        .student-card .meta { font-size: 12.5px; color: var(--ink-soft); }
        .badge { font-size: 11px; padding: 4px 9px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
        .badge.due { background: var(--rust-soft); color: var(--rust); }
        .badge.clear { background: var(--green-soft); color: var(--green); }
        .badge.disabled { background: var(--paper-dim); color: var(--ink-soft); border: 1px solid var(--line); }
        .student-card.is-disabled { opacity: .6; background: var(--paper-dim); }
        .disabled-banner {
            background: var(--rust-soft); color: var(--rust);
            border: 1px solid rgba(178, 58, 46, 0.25); border-radius: 12px;
            padding: 11px 13px; font-size: 13px; margin-bottom: 14px; line-height: 1.5;
        }
        .student-card .row2 {
            display: flex; justify-content: space-between; margin-top: 10px;
            padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px;
        }
        .student-card .row2 .amt { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
        .empty { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
        .empty .glyph { font-size: 34px; margin-bottom: 10px; opacity: .5; }
        .empty p { font-size: 14px; margin: 4px 0 16px; line-height: 1.6; }
        .classwise-row {
            display: flex; align-items: center; justify-content: space-between; gap: 10px;
            background: var(--white); border: 1px solid var(--line);
            border-radius: 12px; padding: 11px 14px; margin-bottom: 8px;
        }
        .classwise-row .cname { font-size: 14.5px; font-weight: 600; }
        .classwise-row .ccount {
            display: flex; align-items: center; gap: 6px;
            font-family: 'JetBrains Mono', monospace; font-size: 16px;
            font-weight: 700; color: var(--ink); background: var(--paper-dim);
            padding: 3px 11px; border-radius: 20px;
        }
        .classwise-row .ccount span { font-family: 'Hind Siliguri', sans-serif; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
        .bottomnav {
            position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
            background: var(--ink); display: flex;
            padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
            box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
        }
        .navbtn {
            flex: 1; background: none; border: none;
            color: rgba(251, 247, 238, 0.55);
            display: flex; flex-direction: column; align-items: center; gap: 3px;
            padding: 8px 2px; font-family: 'Hind Siliguri', sans-serif;
            font-size: 10.5px; cursor: pointer;
        }
        .navbtn svg { width: 19px; height: 19px; }
        .navbtn.active { color: var(--gold); }
        .screen { display: none; }
        .screen.active { display: block; }
        .overlay {
            position: fixed; inset: 0; background: rgba(27, 42, 74, 0.5);
            z-index: 60; display: none; align-items: flex-end; justify-content: center;
        }
        .overlay.active { display: flex; }
        .sheet {
            background: var(--paper); width: 100%; max-width: 520px;
            border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto;
            padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
            animation: slideup .22s ease-out;
        }
        @keyframes slideup {
            from { transform: translateY(24px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
        .sheet-head h2 { font-size: 18px; margin: 0; }
        .sheet-close {
            width: 32px; height: 32px; border-radius: 50%; border: none;
            background: var(--paper-dim); color: var(--ink); font-size: 18px;
            cursor: pointer; display: flex; align-items: center; justify-content: center;
        }
        .field-row { display: flex; gap: 10px; }
        .field-row>div { flex: 1; }
        .detail-header {
            background: var(--ink); color: var(--paper);
            margin: -16px -16px 16px; padding: 18px 18px 40px;
            border-radius: 0 0 22px 22px; position: relative;
        }
        .detail-header .back {
            background: none; border: none; color: var(--paper);
            font-size: 15px; cursor: pointer;
            display: flex; align-items: center; gap: 6px;
            padding: 0 0 14px; opacity: .85;
        }
        .detail-header h2 { font-size: 21px; margin: 0 0 4px; }
        .detail-header .sub { font-size: 13px; opacity: .75; }
        .detail-card {
            background: var(--white); border-radius: var(--radius);
            padding: 16px; margin-top: -32px;
            box-shadow: 0 4px 16px rgba(27, 42, 74, 0.1); border: 1px solid var(--line);
        }
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
        .info-grid .item .k { font-size: 11.5px; color: var(--ink-soft); margin-bottom: 3px; }
        .info-grid .item .v { font-size: 14.5px; font-weight: 600; }
        .paylist-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 0; border-bottom: 1px solid var(--line);
        }
        .paylist-item:last-child { border-bottom: none; }
        .paylist-item .l .amt { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15.5px; }
        .discount-tag {
            font-family: 'Hind Siliguri', sans-serif; font-weight: 600; font-size: 11px;
            color: var(--gold); background: rgba(201, 154, 59, 0.12);
            padding: 2px 7px; border-radius: 20px;
        }
        .paylist-item .l .d { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
        .paylist-item .r { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
        .icon-btn { padding: 7px 9px; min-width: 34px; }
        .receipt-wrap {
            background: var(--ink); padding: 26px 16px;
            border-radius: var(--radius); display: flex; justify-content: center;
        }
        .receipt {
            background: #fff; width: 100%; max-width: 340px;
            position: relative; padding: 26px 22px 22px;
            font-family: 'JetBrains Mono', monospace;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); border-radius: 4px;
        }
        .receipt .r-top {
            text-align: center; font-family: 'Tiro Bangla', serif;
            border-bottom: 1px dashed #999; padding-bottom: 12px; margin-bottom: 12px;
        }
        .receipt .r-top .inst { font-size: 17px; color: var(--ink); }
        .receipt .r-top .addr { font-size: 10.5px; color: #666; font-family: 'Hind Siliguri', sans-serif; margin-top: 3px; }
        .receipt .r-line {
            display: flex; justify-content: space-between;
            font-size: 12.5px; margin: 6px 0; color: #333;
        }
        .receipt .r-line b { color: var(--ink); font-weight: 700; }
        .receipt .r-amt-box {
            margin: 14px 0; padding: 12px 0;
            border-top: 1px dashed #999; border-bottom: 1px dashed #999; text-align: center;
        }
        .receipt .r-amt-box .lbl { font-size: 10.5px; color: #777; font-family: 'Hind Siliguri', sans-serif; letter-spacing: .05em; }
        .receipt .r-amt-box .amt { font-size: 28px; font-weight: 700; color: var(--ink); }
        .receipt .r-seal {
            position: absolute; right: 18px; bottom: 60px;
            transform: rotate(-14deg); border: 2.5px solid var(--green);
            color: var(--green); font-family: 'Tiro Bangla', serif;
            font-size: 15px; padding: 5px 10px; border-radius: 6px; opacity: .85;
        }
        .receipt .r-foot { font-size: 9.5px; color: #999; text-align: center; margin-top: 6px; font-family: 'Hind Siliguri', sans-serif; }
        .receipt-actions { display: flex; gap: 8px; margin-top: 14px; }
        .receipt-actions .btn { flex: 1; }
        .fab {
            position: fixed; right: 18px; bottom: 90px; z-index: 45;
            width: 54px; height: 54px; border-radius: 50%;
            background: var(--gold); color: var(--ink); border: none;
            box-shadow: 0 6px 16px rgba(201, 154, 59, 0.5);
            font-size: 26px; display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: transform 0.15s;
        }
        .fab:active { transform: scale(0.9); }
        .toast {
            position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
            background: var(--ink); color: var(--paper);
            padding: 10px 18px; border-radius: 10px; font-size: 13.5px;
            z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s;
            max-width: 90%; text-align: center;
        }
        .toast.show { opacity: 1; }
        .hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
        .setup-screen { padding: 60px 24px; text-align: center; }
        .setup-screen .glyph { font-size: 40px; margin-bottom: 14px; }
        .setup-screen h1 { font-size: 22px; margin: 0 0 6px; }
        .setup-screen p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.6; }
        .setup-screen .card {
            background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 18px; text-align: left;
        }
        .login-screen { padding: 60px 24px; text-align: center; }
        .login-screen .glyph { font-size: 48px; margin-bottom: 14px; }
        .login-screen h1 { font-size: 22px; margin: 0 0 6px; }
        .login-screen .card {
            background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 18px;
            text-align: left; max-width: 360px; margin: 0 auto;
        }
        .login-screen .card label { font-size: 13px; font-weight: 600; }
        .date-nav {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px; background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px;
        }
        .date-nav button {
            width: 36px; height: 36px; border-radius: 9px;
            border: 1.5px solid var(--line); background: var(--paper);
            font-size: 17px; color: var(--ink); cursor: pointer;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .date-nav .date-label { flex: 1; text-align: center; position: relative; cursor: pointer; }
        .date-nav .date-label .d1 { font-weight: 700; font-size: 15px; }
        .date-nav .date-label .d2 { font-size: 11.5px; color: var(--ink-soft); }
        .date-nav input[type=date] {
            position: absolute; inset: 0; opacity: 0;
            width: 100%; height: 100%; border: none; margin: 0; padding: 0; cursor: pointer;
        }
        .att-summary { display: flex; gap: 8px; margin-bottom: 14px; }
        .att-chip {
            flex: 1; text-align: center; padding: 10px 6px;
            border-radius: 10px; font-size: 12.5px;
            border: 1px solid var(--line); background: var(--white);
        }
        .att-chip b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 18px; margin-bottom: 2px; }
        .att-chip.present b { color: var(--green); }
        .att-chip.absent b { color: var(--rust); }
        .att-chip.unmarked b { color: var(--ink-soft); }
        .att-row {
            display: flex; align-items: center; justify-content: space-between;
            gap: 10px; background: var(--white); border: 1px solid var(--line);
            border-radius: 12px; padding: 11px 12px; margin-bottom: 8px;
        }
        .att-row .who { flex: 1; min-width: 0; }
        .att-row .who h3 {
            font-size: 14.5px; margin: 0 0 1px; font-weight: 600;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .att-row .who .meta { font-size: 11.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 12px; }
        .att-row .who .meta .phone-meta { color: var(--ink-soft); font-weight: 400; }
        .att-toggle { display: flex; gap: 6px; flex-shrink: 0; }
        .att-btn {
            width: 38px; height: 34px; border-radius: 8px;
            border: 1.5px solid var(--line); background: var(--paper);
            font-size: 15px; cursor: pointer; color: var(--ink-soft);
            transition: background 0.1s, border-color 0.1s;
        }
        .att-btn.present-on { background: var(--green); border-color: var(--green); color: #fff; }
        .att-btn.absent-on { background: var(--rust); border-color: var(--rust); color: #fff; }
        .att-classfilter { margin-bottom: 12px; }
        .filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
        .filter-row select { flex: 1; min-width: 120px; }
        .table-scroll {
            overflow-x: auto; border: 1px solid var(--line);
            border-radius: var(--radius); background: var(--white);
            -webkit-overflow-scrolling: touch;
        }
        .student-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13px; }
        .student-table th {
            text-align: left; font-family: 'Hind Siliguri', sans-serif;
            font-weight: 600; font-size: 11.5px; color: var(--ink-soft);
            text-transform: uppercase; letter-spacing: .02em;
            background: var(--paper-dim); padding: 10px 12px; white-space: nowrap;
            position: sticky; top: 0;
        }
        .student-table td { padding: 11px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
        .student-table tbody tr { cursor: pointer; }
        .student-table tbody tr:active { background: var(--paper-dim); }
        .student-table tbody tr.is-disabled-row { opacity: .55; background: var(--paper-dim); }
        .student-table td.sl { color: var(--ink-soft); font-family: 'JetBrains Mono', monospace; }
        .student-table td.name-cell { font-weight: 600; white-space: normal; min-width: 110px; }
        .student-table td.due-cell { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; min-width: 110px; }
        .student-table td.due-cell.has-due { color: var(--rust); }
        .student-table td.due-cell.no-due { color: var(--green); }
        .due-months { font-family: 'Hind Siliguri', sans-serif; font-weight: 500; font-size: 11px; opacity: .8; }
        .due-month-names {
            font-family: 'Hind Siliguri', sans-serif; font-weight: 400; font-size: 10.5px;
            color: var(--ink-soft); white-space: normal; max-width: 140px; margin-top: 2px; text-align: right;
        }
        .student-table .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
        .status-dot.on { background: var(--green); }
        .status-dot.off { background: var(--ink-soft); }
        .table-hint { font-size: 11px; color: var(--ink-soft); margin-top: 6px; text-align: center; }
        #students-table thead th:first-child { position: sticky; top: 0; left: 0; z-index: 10; background: var(--paper-dim); width: 50px; min-width: 50px; max-width: 50px; text-align: center; }
        #students-table thead th:nth-child(2) { position: sticky; top: 0; left: 50px; z-index: 10; background: var(--paper-dim); min-width: 120px; }
        #students-table tbody td.sl { position: sticky; left: 0; z-index: 5; background: var(--white); width: 50px; min-width: 50px; max-width: 50px; text-align: center; }
        #students-table tbody td.name-cell { position: sticky; left: 50px; z-index: 5; background: var(--white); min-width: 120px; }
        #students-table tbody tr:active td.sl, #students-table tbody tr:active td.name-cell { background: var(--paper-dim); }
        #students-table tbody tr.is-disabled-row td.sl, #students-table tbody tr.is-disabled-row td.name-cell { background: var(--paper-dim); }
        #report-table thead th:first-child { position: sticky; top: 0; left: 0; z-index: 10; background: var(--paper-dim); width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
        #report-table thead th:nth-child(2) { position: sticky; top: 0; left: 40px; z-index: 10; background: var(--paper-dim); min-width: 110px; }
        #report-table tbody td.sl { position: sticky; left: 0; z-index: 5; background: var(--white); width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
        #report-table tbody td.name-cell { position: sticky; left: 40px; z-index: 5; background: var(--white); min-width: 110px; }
        #report-table tbody tr:active td.sl, #report-table tbody tr:active td.name-cell { background: var(--paper-dim); }
        .report-table th.date-col, .report-table td.date-col { text-align: center; padding-left: 6px; padding-right: 6px; min-width: 30px; }
        .report-table th.date-col { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
        .report-table td.date-col { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; }
        .report-table td.date-col.p { color: var(--green); }
        .report-table td.date-col.a { color: var(--rust); }
        .report-table td.date-col.blank { color: var(--line); }
        .report-table td.num-col { text-align: center; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
        .report-table td.num-col.p { color: var(--green); }
        .report-table td.num-col.a { color: var(--rust); }
        #collection-table thead th:nth-child(1) { position: sticky; top: 0; left: 0; z-index: 12; background: var(--paper-dim); width: 40px; min-width: 40px; max-width: 40px; text-align: center; }
        #collection-table thead th:nth-child(2) { position: sticky; top: 0; left: 40px; z-index: 12; background: var(--paper-dim); width: 110px; min-width: 110px; max-width: 110px; }
        #collection-table thead th:nth-child(3) { position: sticky; top: 0; left: 150px; z-index: 12; background: var(--paper-dim); width: 90px; min-width: 90px; max-width: 90px; box-shadow: 2px 0 4px rgba(27, 42, 74, 0.08); }
        #collection-table tbody td.sl { position: sticky; left: 0; z-index: 6; background: var(--white); width: 40px; min-width: 40px; max-width: 40px; text-align: center; font-family: 'JetBrains Mono', monospace; color: var(--ink-soft); }
        #collection-table tbody td.name-cell { position: sticky; left: 40px; z-index: 6; background: var(--white); width: 110px; min-width: 110px; max-width: 110px; font-weight: 600; white-space: normal; }
        #collection-table tbody td.class-cell { position: sticky; left: 150px; z-index: 6; background: var(--white); width: 90px; min-width: 90px; max-width: 90px; box-shadow: 2px 0 4px rgba(27, 42, 74, 0.08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        #collection-table tbody tr:active td.sl, #collection-table tbody tr:active td.name-cell, #collection-table tbody tr:active td.class-cell { background: var(--paper-dim); }
        #collection-table tbody tr.is-disabled-row td.sl, #collection-table tbody tr.is-disabled-row td.name-cell, #collection-table tbody tr.is-disabled-row td.class-cell { background: var(--paper-dim); }
        #collection-table tbody tr.is-disabled-row { opacity: .55; }
        #collection-table th.month-col, #collection-table td.month-col { text-align: center; padding-left: 4px; padding-right: 4px; min-width: 52px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; }
        #collection-table th.month-col { font-family: 'Hind Siliguri', sans-serif; font-size: 11px; font-weight: 600; color: var(--ink-soft); }
        #collection-table td.month-col.has-amount { color: var(--green); }
        #collection-table td.month-col.no-amount { color: var(--line); font-weight: 400; }
        #collection-table td.total-cell { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; color: var(--green); min-width: 95px; }
        #collection-table td.due-cell-report { font-family: 'JetBrains Mono', monospace; font-weight: 700; text-align: right; min-width: 95px; }
        #collection-table td.due-cell-report.has-due { color: var(--rust); }
        #collection-table td.due-cell-report.no-due { color: var(--green); }
        .month-nav {
            display: flex; align-items: center; justify-content: space-between;
            background: var(--white); border: 1px solid var(--line);
            border-radius: var(--radius); padding: 10px 12px; margin-bottom: 14px;
        }
        .month-nav button { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper); font-size: 17px; color: var(--ink); cursor: pointer; }
        .month-nav .m-label { font-weight: 700; font-size: 15.5px; }
        .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
        .toggle-title { font-size: 14px; font-weight: 600; }
        .toggle-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.5; }
        .switch { position: relative; display: inline-block; width: 46px; height: 27px; flex-shrink: 0; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .slider { position: absolute; cursor: pointer; inset: 0; background: var(--line); border-radius: 27px; transition: .2s; }
        .slider::before {
            content: ""; position: absolute; height: 21px; width: 21px;
            left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
            transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
        }
        .switch input:checked+.slider { background: var(--green); }
        .switch input:checked+.slider::before { transform: translateX(19px); }
        .backup-status { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; background: var(--paper-dim); border-radius: 9px; padding: 9px 12px; }
        .backup-status b { color: var(--ink); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; }
        .folder-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); background: var(--paper-dim); border-radius: 9px; padding: 9px 12px; margin-top: 8px; }
        .folder-status .fname { font-weight: 600; color: var(--ink); word-break: break-all; }
        .att-stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
        .att-stats-row .chip { background: var(--paper-dim); border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 12px; color: var(--ink-soft); }
        .att-stats-row .chip b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
        .att-stats-row .chip.present b { color: var(--green); }
        .att-stats-row .chip.absent b { color: var(--rust); }
        .att-stats-row .chip.working b { color: var(--gold); }
        .month-att-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
        .month-att-row:last-child { border-bottom: none; }
        .month-att-row .mname { font-weight: 600; flex: 1; }
        .month-att-row .mcounts { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; display: flex; gap: 12px; }
        .month-att-row .mcounts .p { color: var(--green); }
        .month-att-row .mcounts .a { color: var(--rust); }
        .month-att-row .mcounts .w { color: var(--gold); }
        .att-breakdown-wrap { max-height: 180px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
        .att-breakdown-wrap .empty { padding: 20px 10px; }
        .att-breakdown-wrap .empty .glyph { font-size: 24px; }
        .att-breakdown-wrap .empty p { font-size: 13px; }
        .folder-picker-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
        .folder-picker-row .btn { flex: 1; min-width: 120px; }
        .folder-status .badge-folder { background: var(--green-soft); color: var(--green); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
        .user-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
        .user-row.is-inactive { opacity: .65; background: var(--paper-dim); }
        .user-row .uname { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
        .user-row .perms { font-size: 11px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px; }
        .user-row .perms .perm-tag { background: var(--green-soft); color: var(--green); padding: 1px 8px; border-radius: 12px; font-weight: 600; font-size: 10px; }
        .user-row .user-actions { display: flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; justify-content: flex-end; max-width: 130px; }
        .user-row .user-actions .btn { padding: 5px 8px; font-size: 12px; }
        .user-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
        .user-badge.active { background: var(--green-soft); color: var(--green); }
        .user-badge.inactive { background: var(--rust-soft); color: var(--rust); }
        .user-badge.expired { background: rgba(201, 154, 59, 0.18); color: #8a6a1e; }
        .user-meta-row { font-size: 11px; color: var(--ink-soft); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
        .user-meta-row .expiry { font-weight: 600; }
        .user-meta-row .expiry.warn { color: var(--gold); }
        .user-meta-row .expiry.danger { color: var(--rust); }
        .perm-group { margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
        .perm-group-head { font-size: 13px; font-weight: 700; color: var(--ink); padding: 4px 0 8px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
        .perm-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
        .perm-checkbox-grid label { font-size: 13px; display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: var(--ink); }
        .perm-checkbox-grid input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
        .account-settings { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
        .account-settings .field-group { margin-bottom: 12px; }
        .account-settings .field-group label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
        .period-filter { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0 6px; scrollbar-width: none; }
        .period-filter::-webkit-scrollbar { display: none; }
        .period-chip {
            padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--line);
            background: var(--white); color: var(--ink-soft);
            font-family: 'Hind Siliguri', sans-serif; font-size: 13px; font-weight: 600;
            cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.15s;
        }
        .period-chip:active { transform: scale(0.96); }
        .period-chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
        .period-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
        .period-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
        .period-stat .label { font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }
        .period-stat .value { font-family: 'JetBrains Mono', monospace; font-size: 19px; font-weight: 700; }
        .period-stat.paid .value { color: var(--green); }
        .period-stat.due .value { color: var(--rust); }
        .sms-bulk-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 10px; }
        .sms-count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
        .sms-student-list { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
        .sms-student-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.1s; }
        .sms-student-row:last-child { border-bottom: none; }
        .sms-student-row:active { background: var(--paper-dim); }
        .sms-student-row.selected { background: var(--green-soft); }
        .sms-student-row input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex-shrink: 0; cursor: pointer; pointer-events: none; }
        .sms-student-info { flex: 1; min-width: 0; }
        .sms-student-name { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .sms-student-meta { font-size: 11.5px; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
        .sms-student-meta .due-tag { color: var(--rust); font-weight: 600; }
        .sms-placeholder-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
        .sms-placeholder-row .btn { padding: 5px 10px; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
        .sms-counter { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-soft); text-align: right; margin-top: 6px; }
        .sms-counter.warn { color: var(--gold); font-weight: 700; }
        .sms-counter.over { color: var(--rust); font-weight: 700; }
        .sms-result-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
        .sms-result-row:last-child { border-bottom: none; }
        .sms-result-row .sms-r-name { font-weight: 600; }
        .sms-result-row .sms-r-phone { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-soft); }
        .sms-result-row .sms-r-status { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
        .sms-r-status.ok { background: var(--green-soft); color: var(--green); }
        .sms-r-status.fail { background: var(--rust-soft); color: var(--rust); }
        .sms-r-status.pending { background: var(--paper-dim); color: var(--ink-soft); }
        .sms-api-status { background: var(--green-soft); border: 1px solid var(--green); color: var(--green); padding: 10px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
        .sms-api-status.warn { background: var(--rust-soft); border-color: var(--rust); color: var(--rust); }
        .sms-history-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
        .sms-history-row .sms-h-idx { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 12px; color: var(--ink-soft); background: var(--paper-dim); padding: 3px 8px; border-radius: 8px; flex-shrink: 0; min-width: 32px; text-align: center; }
        .sms-history-row .sms-h-main { flex: 1; min-width: 0; }
        .sms-history-row .sms-h-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
        .sms-history-row .sms-h-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; margin-top: 3px; }
        .sms-history-row .sms-h-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--paper-dim); color: var(--ink-soft); white-space: nowrap; }
        .sms-history-row .sms-h-tag.class-tag { background: rgba(27, 42, 74, 0.1); color: var(--ink); }
        .sms-history-row .sms-h-tag.roll-tag { background: rgba(201, 154, 59, 0.15); color: #8a6a1e; }
        .sms-history-row .sms-h-tag.phone-tag { font-family: 'JetBrains Mono', monospace; background: rgba(30, 123, 77, 0.12); color: var(--green); }
        .sms-history-row .sms-h-month { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 12px; margin-bottom: 5px; margin-right: 4px; }
        .sms-history-row .sms-h-body { font-size: 12px; color: var(--ink-soft); line-height: 1.5; word-break: break-word; margin-bottom: 4px; }
        .sms-history-row .sms-h-time { font-size: 10.5px; color: var(--ink-soft); opacity: .7; }
        .sms-history-row .sms-h-status { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
        .sms-history-row .sms-h-status.ok { background: var(--green-soft); color: var(--green); }
        .sms-history-row .sms-h-status.fail { background: var(--rust-soft); color: var(--rust); }
        .sms-history-row .sms-h-status.pending { background: var(--paper-dim); color: var(--ink-soft); }
        body { padding-bottom: 62px; }
        .topbar { padding: 10px 14px 9px; }
        .topbar .brand { gap: 8px; }
        .topbar .brand-mark { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
        .topbar .brand-text h1 { font-size: 15px; }
        .topbar .brand-text span { font-size: 10px; }
        .topbar .user-info { gap: 8px; }
        .topbar .user-info .logout-btn { padding: 3px 9px; font-size: 10.5px; }
        .wrap { padding: 10px 12px; }
        .id-search-box { gap: 6px; margin-bottom: 10px; }
        .search-row { margin-bottom: 9px; }
        .filter-row { gap: 6px; margin-bottom: 9px; }
        .stats { gap: 8px; margin-bottom: 10px; }
        .stat { padding: 9px 11px 8px; border-radius: 12px; }
        .stat .label { font-size: 11px; margin-bottom: 3px; }
        .stat .value { font-size: 18px; }
        .stat.income .value { font-size: 19px; }
        .section-head { margin: 14px 0 7px; }
        .section-head h2 { font-size: 16px; }
        .section-head .eyebrow { font-size: 10px; margin-bottom: 1px; }
        input, select, textarea { padding: 9px 11px; font-size: 14.5px; border-radius: 9px; }
        label { font-size: 12px; margin: 9px 0 4px; }
        .btn { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
        .btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 7px; }
        .hint { font-size: 11px; margin-top: 3px; }
        .student-card { padding: 11px 12px; margin-bottom: 7px; border-radius: 12px; }
        .student-card h3 { font-size: 15px; margin-bottom: 1px; }
        .student-card .meta { font-size: 12px; }
        .student-card .row2 { margin-top: 8px; padding-top: 8px; font-size: 12.5px; }
        .classwise-row { padding: 9px 12px; margin-bottom: 6px; border-radius: 10px; }
        .classwise-row .cname { font-size: 13.5px; }
        .classwise-row .ccount { font-size: 14px; padding: 2px 9px; }
        .period-filter { gap: 5px; margin-bottom: 8px; padding-bottom: 4px; }
        .period-chip { padding: 6px 12px; font-size: 12.5px; }
        .period-summary { gap: 8px; }
        .period-stat { padding: 9px 11px; }
        .period-stat .label { font-size: 11px; margin-bottom: 3px; }
        .period-stat .value { font-size: 17px; }
        .bottomnav { padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
        .navbtn { padding: 5px 2px; font-size: 10px; gap: 2px; }
        .navbtn svg { width: 18px; height: 18px; }
        .fab { width: 48px; height: 48px; font-size: 23px; right: 14px; bottom: 76px; }
        .date-nav { padding: 7px 10px; margin-bottom: 10px; }
        .date-nav button { width: 32px; height: 32px; font-size: 16px; }
        .date-nav .date-label .d1 { font-size: 14px; }
        .date-nav .date-label .d2 { font-size: 10.5px; }
        .att-summary { gap: 7px; margin-bottom: 10px; }
        .att-chip { padding: 8px 5px; font-size: 11.5px; }
        .att-chip b { font-size: 16px; margin-bottom: 1px; }
        .att-row { padding: 9px 11px; margin-bottom: 6px; border-radius: 10px; }
        .att-row .who h3 { font-size: 13.5px; }
        .att-row .who .meta { font-size: 11px; }
        .att-btn { width: 34px; height: 30px; font-size: 14px; }
        .sheet { padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
        .sheet-head { margin-bottom: 10px; }
        .sheet-head h2 { font-size: 16px; }
        .sheet-close { width: 28px; height: 28px; font-size: 16px; }
        .field-row { gap: 8px; }
        .detail-header { padding: 14px 16px 34px; }
        .detail-header .back { padding: 0 0 10px; font-size: 14px; }
        .detail-header h2 { font-size: 19px; }
        .detail-header .sub { font-size: 12px; }
        .detail-card { padding: 13px; margin-top: -26px; }
        .info-grid { gap: 9px; }
        .info-grid .item .k { font-size: 11px; margin-bottom: 2px; }
        .info-grid .item .v { font-size: 13.5px; }
        .paylist-item { padding: 9px 0; }
        .paylist-item .l .amt { font-size: 14.5px; }
        .att-stats-row { gap: 6px; margin-bottom: 9px; }
        .att-stats-row .chip { padding: 8px 5px; font-size: 11.5px; }
        .att-stats-row .chip b { font-size: 16px; }
        .month-att-row { padding: 6px 4px; font-size: 12.5px; }
        .receipt-wrap { padding: 18px 12px; }
        .receipt { padding: 20px 18px 18px; }
        .receipt .r-top { padding-bottom: 9px; margin-bottom: 9px; }
        .receipt .r-top .inst { font-size: 15px; }
        .receipt .r-amt-box { margin: 11px 0; padding: 9px 0; }
        .receipt .r-amt-box .amt { font-size: 24px; }
        .month-nav { padding: 8px 10px; margin-bottom: 10px; }
        .month-nav button { width: 32px; height: 32px; font-size: 16px; }
        .month-nav .m-label { font-size: 14.5px; }
        .student-table th { padding: 8px 10px; font-size: 11px; }
        .student-table td { padding: 9px 10px; }
        .toggle-row { margin-top: 12px; padding-top: 11px; }
        .backup-status { margin-top: 9px; padding: 7px 10px; }
        .folder-status { padding: 7px 10px; margin-top: 6px; }
        .account-settings { padding: 13px; margin-bottom: 12px; }
        .setup-screen, .login-screen { padding: 40px 20px; }
        .setup-screen .glyph, .login-screen .glyph { font-size: 36px; margin-bottom: 10px; }
        .setup-screen h1, .login-screen h1 { font-size: 19px; }
        .setup-screen p { font-size: 13px; margin-bottom: 18px; }
        @media (max-height: 640px) {
            .topbar { padding: 8px 12px 7px; }
            .wrap { padding: 8px 10px; }
            .stat { padding: 8px 10px 7px; }
            .stat .value { font-size: 17px; }
            .student-card { padding: 9px 10px; }
            .att-row { padding: 8px 10px; }
            body { padding-bottom: 58px; }
            .bottomnav { padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); }
            .navbtn svg { width: 17px; height: 17px; }
            .navbtn { font-size: 9.5px; }
        }
        .month-tags { display: flex; flex-direction: column; gap: 2px; align-items: center; margin-top: 2px; }
        .month-tag { display: inline-block; font-family: 'Hind Siliguri', sans-serif; font-size: 8.5px; font-weight: 700; line-height: 1.25; padding: 1px 4px; border-radius: 6px; white-space: nowrap; }
        .month-tag.admit { background: var(--green-soft); color: var(--green); }
        .month-tag.readmit { background: rgba(201, 154, 59, 0.20); color: #8a6a1e; }
        .link-btn { background: none; border: none; padding: 0; font-family: 'Hind Siliguri', sans-serif; font-size: 13px; font-weight: 700; color: var(--green); cursor: pointer; text-decoration: underline; }
        .link-btn:active { opacity: .6; }
        mark.hl { background: var(--gold); color: var(--ink); padding: 0 2px; border-radius: 3px; font-weight: 700; }
        .user-stats-row {
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.user-stats-row .stat-chip {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.user-stats-row .stat-chip.active {
    background: var(--green-soft);
    color: var(--green);
}
.user-stats-row .stat-chip.inactive {
    background: var(--rust-soft);
    color: var(--rust);
}
.user-stats-row .stat-chip.fee {
    background: rgba(201, 154, 59, 0.15);
    color: #8a6a1e;
}
.user-row .user-actions {
    max-width: 160px;
}
@media print {
    @page { margin: 8mm; size: auto; }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    /* রিসিট ওভারলে ছাড়া সব লুকাই */
    body > *:not(#overlay-receipt) { display: none !important; }
    #overlay-receipt {
        position: static !important;
        display: block !important;
        inset: auto !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: flex-start !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }
    #overlay-receipt .sheet {
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: #fff !important;
        animation: none !important;
    }
    /* শিট হেড, অ্যাকশন বাটন ও সব বাটন লুকাই */
    #overlay-receipt .sheet-head,
    #overlay-receipt .receipt-actions,
    #overlay-receipt .sheet > .btn,
    #overlay-receipt .sheet > button {
        display: none !important;
    }
    #overlay-receipt .receipt-wrap {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        justify-content: center !important;
    }
    #overlay-receipt .receipt {
        max-width: 80mm !important;
        width: 80mm !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: 1px dashed #999 !important;
        margin: 0 auto !important;
        padding: 20px 16px 16px !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
    }
    #overlay-receipt .receipt .r-seal {
        position: static !important;
        display: inline-block !important;
        float: right !important;
        margin-top: 6px !important;
        transform: rotate(-6deg) !important;
    }
    .toast { display: none !important; }
}