.pos-admin-page{min-height:100vh;padding:24px;background:radial-gradient(circle at top left,rgba(20,184,166,.12),transparent 36%),linear-gradient(135deg,#f8fafc,#eef3f8);color:#0f172a;font-family:Inter,"Segoe UI",Arial,sans-serif}
.pos-admin-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;background:rgba(255,255,255,.86);border:1px solid #dbe5ef;border-radius:26px;padding:18px 20px;box-shadow:0 12px 32px rgba(15,23,42,.07)}
.pos-admin-header h1{margin:0;font-size:32px;font-weight:950;letter-spacing:-.8px}.pos-admin-header p{margin:5px 0 0;color:#64748b;font-weight:800}
.pos-card,.report-card{background:rgba(255,255,255,.93);border:1px solid #dbe5ef;border-radius:24px;padding:22px;box-shadow:0 14px 34px rgba(15,23,42,.07)}
.pos-card h3,.report-card h3{margin:0 0 10px;color:#64748b;font-size:13px;font-weight:950;text-transform:uppercase}.pos-card strong,.report-card span{font-size:30px;font-weight:950;color:#0f172a}
.report-cards,.shift-grid,.close-grid,.cash-count-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:16px}.report-card.total{background:linear-gradient(135deg,#0f172a,#0f766e)}.report-card.total h3,.report-card.total span{color:white}.mt{margin-top:20px}
.pos-alert{padding:16px 18px;border-radius:18px;margin-bottom:16px;font-weight:900}.pos-alert.danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.pos-alert.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.pos-input,.pos-textarea{width:100%;border:1px solid #dbe5ef;border-radius:18px;padding:14px 16px;font-size:16px;font-weight:800;outline:none;margin:8px 0 16px}.pos-input.big{font-size:30px;text-align:right;font-weight:950}.pos-textarea{min-height:110px;resize:vertical}
.primary-btn,.danger-btn,.back-pos-btn{border:0;border-radius:16px;padding:14px 20px;color:white;font-weight:950;cursor:pointer}.primary-btn,.back-pos-btn{background:linear-gradient(135deg,#0f766e,#14b8a6)}.danger-btn{background:linear-gradient(135deg,#ef4444,#b91c1c)}
.status-card{border-color:#86efac}.status-dot{width:14px;height:14px;background:#22c55e;display:inline-block;border-radius:999px;margin-bottom:8px}.warning{border-color:#facc15}.ok{border-color:#86efac}.ok-text{color:#047857;font-size:32px;font-weight:950}.bad-text{color:#b91c1c;font-size:32px;font-weight:950}
@media(max-width:1000px){.report-cards,.shift-grid,.close-grid,.cash-count-grid{grid-template-columns:repeat(2,1fr)}}

/* MOB365 settings page: isolated scroll and enterprise layout.
   The global POS shell intentionally locks body scrolling, therefore this
   page owns its scroll container instead of changing html/body. */
.pos-admin-page {
    position: fixed;
    inset: 0;
    z-index: 120;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    padding: 22px clamp(16px, 3vw, 42px) 110px;
    background:
        radial-gradient(circle at 8% 0, rgba(13,148,136,.11), transparent 30%),
        linear-gradient(145deg,#f5f8fb 0%,#edf3f7 100%);
}

.pos-admin-page *,
.pos-admin-page *::before,
.pos-admin-page *::after { box-sizing: border-box; }

.pos-admin-page .pos-admin-header,
.pos-admin-page .settings-layout,
.pos-admin-page .settings-footer,
.pos-admin-page > .pos-alert,
.pos-admin-page > .pos-card {
    width: min(1380px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.pos-admin-page .pos-admin-header {
    min-height: 88px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #d9e3ec;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.pos-admin-page .pos-admin-header h1 {
    font-size: clamp(25px, 2.2vw, 32px);
    letter-spacing: -.65px;
}

.pos-admin-page .back-pos-btn {
    min-width: 92px;
    min-height: 44px;
    border: 1px solid #cbd8e5;
    border-radius: 11px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.pos-admin-page .back-pos-btn:hover {
    border-color: #0f766e;
    color: #0f766e;
    background: #f0fdfa;
}

.settings-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.settings-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #d9e3ec;
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 7px 20px rgba(15,23,42,.045);
}

.settings-card.full-width { grid-column: 1 / -1; }

.settings-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #e5ebf1 !important;
}

.settings-title .settings-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 11px !important;
    background: #e7f5f3 !important;
    color: #0f766e !important;
    font-size: 19px;
}

.settings-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
}

.settings-title p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

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

.field-group { min-width: 0; }
.field-group label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.pos-admin-page .pos-input,
.pos-admin-page .pos-textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #cbd8e5;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pos-admin-page .pos-input {
    min-height: 48px;
    padding: 0 14px;
}

.pos-admin-page .pos-input:focus,
.pos-admin-page .pos-textarea:focus {
    border-color: #0f9488;
    box-shadow: 0 0 0 4px rgba(15,148,136,.12);
}

.pos-admin-page .pos-input:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
}

.pos-admin-page .pos-textarea {
    min-height: 105px;
    padding: 13px 14px;
    resize: vertical;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 68px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
}

.toggle-row strong {
    display: block;
    color: #172033;
    font-size: 14px;
    font-weight: 850;
}

.toggle-row small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.danger-setting strong { color: #b42318; }

.switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 27px;
}

.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #cbd5e1;
    transition: .2s ease;
}

.switch .slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15,23,42,.25);
    transition: .2s ease;
}

.switch input:checked + .slider {
    background: linear-gradient(135deg,#0f766e,#14b8a6);
}

.switch input:checked + .slider::before { transform: translateX(21px); }
.switch input:disabled + .slider { cursor: not-allowed; opacity: .48; }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 4px rgba(15,148,136,.18); }

.settings-test-btn { margin-top: 14px; }

.pos-admin-page .secondary-btn,
.pos-admin-page .primary-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 850;
}

.pos-admin-page .secondary-btn {
    border: 1px solid #cbd8e5;
    background: #fff;
    color: #172033;
}

.pos-admin-page .primary-btn {
    border: 1px solid #0f766e;
    background: linear-gradient(135deg,#0f766e,#0d9488);
    box-shadow: 0 8px 18px rgba(15,118,110,.18);
}

.pos-admin-page button:disabled { cursor: not-allowed; opacity: .55; }

.settings-footer {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(203,216,229,.95);
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 30px rgba(15,23,42,.12);
    backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
    .settings-layout { grid-template-columns: 1fr; }
    .settings-card.full-width { grid-column: auto; }
}

@media (max-width: 620px) {
    .pos-admin-page { padding: 12px 12px 96px; }
    .pos-admin-page .pos-admin-header {
        min-height: 0;
        align-items: flex-start;
        padding: 16px;
        border-radius: 14px;
    }
    .pos-admin-page .pos-admin-header p { font-size: 12px; }
    .settings-card { padding: 16px; border-radius: 14px; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-footer { bottom: 6px; }
    .settings-footer button { flex: 1; }
}
