:root {
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #dfe5ee;
    --app-ink: #182230;
    --app-muted: #667085;
    --app-primary: #2557d6;
    --app-primary-dark: #1844b5;
    --app-sidebar: #101828;
    --app-success: #16865c;
    --app-danger: #c93636;
    --app-shadow: 0 12px 35px rgba(16, 24, 40, 0.07);
}

html {
    min-width: 320px;
}

body {
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-navbar {
    min-height: 68px;
    border-bottom: 1px solid rgba(223, 229, 238, 0.8);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.04);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-navbar .navbar-brand {
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--app-primary);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 7px 16px rgba(37, 87, 214, 0.22);
}

.app-context {
    color: var(--app-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20b486;
    box-shadow: 0 0 0 4px rgba(32, 180, 134, 0.12);
}

.app-layout {
    min-height: calc(100vh - 68px);
}

.app-sidebar {
    position: fixed;
    inset: 68px auto 0 0;
    width: 244px;
    padding: 28px 18px;
    background: var(--app-sidebar);
    color: #fff;
}

.sidebar-label {
    margin: 0 12px 12px;
    color: #98a2b3;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.app-navigation .nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
}

.app-navigation .nav-link:hover,
.app-navigation .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.app-navigation .nav-link.active {
    background: #fff;
    color: var(--app-sidebar);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.app-navigation .nav-link.disabled {
    color: #7d899c;
    opacity: 1;
}

.nav-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.active .nav-icon {
    background: rgba(37, 87, 214, 0.1);
    color: var(--app-primary);
}

.nav-note {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 600;
}

.sidebar-footer {
    position: absolute;
    right: 24px;
    bottom: 26px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #d0d5dd;
}

.account-password-link {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    color: #98a2b3;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
}

.account-password-link:hover,
.account-password-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.sidebar-logout {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e4e7ec;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    font-weight: 650;
}

.sidebar-logout:hover,
.sidebar-logout:focus-visible {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-user-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 0.82rem;
}

.mobile-user-panel strong {
    color: var(--app-ink);
    font-size: 0.92rem;
}

.mobile-user-panel .account-password-link {
    min-height: 40px;
    padding-right: 12px;
    color: var(--app-muted);
}

.mobile-user-panel .account-password-link:hover,
.mobile-user-panel .account-password-link:focus-visible {
    color: var(--app-ink);
}

.mobile-user-panel form {
    margin-top: 12px;
}

.app-main {
    min-width: 0;
}

.content-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 42px 28px 64px;
}

.page-header {
    margin-bottom: 28px;
}

.page-eyebrow,
.modal-eyebrow {
    color: var(--app-primary);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.11em;
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 760;
    letter-spacing: -0.035em;
}

.page-description {
    color: var(--app-muted);
    font-size: 0.98rem;
}

.app-primary-action {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 20px;
    border-color: var(--app-primary);
    border-radius: 10px;
    background: var(--app-primary);
    font-size: 0.94rem;
    font-weight: 650;
    box-shadow: 0 8px 20px rgba(37, 87, 214, 0.18);
}

.app-primary-action:hover,
.app-primary-action:focus-visible {
    border-color: var(--app-primary-dark);
    background: var(--app-primary-dark);
}

.notification-area:not(:empty) {
    margin-bottom: 18px;
}

.notification-area .alert {
    margin-bottom: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(16, 24, 40, 0.05);
}

.store-panel {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.store-panel-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--app-border);
}

.deleted-toggle {
    min-height: 30px;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 600;
}

.deleted-toggle .form-check-input {
    width: 2.5rem;
    height: 1.35rem;
    margin-right: 7px;
    cursor: pointer;
}

.store-list-heading,
.store-row {
    grid-template-columns: minmax(220px, 1fr) 140px minmax(230px, auto);
    align-items: center;
    gap: 20px;
}

.employee-list-heading,
.employee-row {
    grid-template-columns: minmax(230px, 1fr) minmax(155px, 0.7fr) 120px minmax(230px, auto);
    align-items: center;
    gap: 20px;
}

.employee-list-heading {
    display: grid;
    padding: 12px 24px;
    border-bottom: 1px solid var(--app-border);
    background: #f9fafb;
    color: #7a8598;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.store-list-heading {
    padding: 12px 24px;
    border-bottom: 1px solid var(--app-border);
    background: #f9fafb;
    color: #7a8598;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.store-row {
    display: grid;
    min-height: 84px;
    padding: 17px 24px;
    border-bottom: 0;
    transition: background-color 150ms ease;
}

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

.employee-row {
    display: grid;
    min-height: 88px;
    padding: 17px 24px;
    border-bottom: 1px solid #edf0f4;
    transition: background-color 150ms ease;
}

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

.employee-row:hover {
    background: #fbfcfe;
}

.employee-row.is-deleted {
    background: #fafafa;
}

.employee-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.employee-color-swatch {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 2px solid rgba(16, 24, 40, 0.14);
    border-radius: 11px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.employee-details {
    min-width: 0;
}

.employee-name {
    overflow: hidden;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-color-code {
    margin-top: 3px;
    color: var(--app-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.employee-phone {
    color: #475467;
    font-size: 0.88rem;
}

.employee-phone.is-empty {
    color: #98a2b3;
    font-style: italic;
}

.employee-phone-label {
    display: none;
}

.store-row:hover {
    background: #fbfcfe;
}

.store-row.is-deleted {
    background: #fafafa;
}

.store-name {
    overflow: hidden;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-meta {
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 0.77rem;
}

.status-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-active {
    background: #ecfdf3;
    color: var(--app-success);
}

.status-deleted {
    background: #f2f4f7;
    color: #667085;
}

.store-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.store-actions .btn {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 650;
}

.btn-edit {
    border-color: #cfd8e6;
    color: #344054;
    background: #fff;
}

.btn-edit:hover {
    border-color: #aebbcf;
    background: #f8fafc;
    color: var(--app-ink);
}

.btn-delete {
    border-color: transparent;
    color: var(--app-danger);
    background: #fff5f5;
}

.btn-delete:hover {
    border-color: #ffd6d6;
    color: #a62c2c;
    background: #ffebeb;
}

.store-loading,
.store-empty {
    display: flex;
    min-height: 210px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 34px;
    color: var(--app-muted);
    text-align: center;
}

.empty-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #eef3ff;
    color: var(--app-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.2);
}

.modal-header,
.modal-body,
.modal-footer {
    padding-right: 24px;
    padding-left: 24px;
}

.modal-header {
    padding-top: 22px;
    padding-bottom: 18px;
}

.modal-body {
    padding-top: 24px;
    padding-bottom: 26px;
}

.modal-footer {
    padding-top: 16px;
    padding-bottom: 16px;
    background: #f9fafb;
}

.modal-footer .btn {
    min-width: 96px;
    min-height: 42px;
    border-radius: 9px;
    font-weight: 650;
}

.form-control {
    border-color: #cfd7e5;
    border-radius: 10px;
}

.form-control:focus {
    border-color: #7191e8;
    box-shadow: 0 0 0 0.22rem rgba(37, 87, 214, 0.12);
}

.modal-eyebrow-danger {
    color: var(--app-danger);
}

.delete-note {
    padding: 12px 14px;
    border-left: 3px solid #f3a3a3;
    border-radius: 0 8px 8px 0;
    background: #fff7f7;
    color: #667085;
    font-size: 0.88rem;
}

.optional-label {
    margin-left: 5px;
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 500;
}

.color-fieldset {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #f9fafb;
}

.color-fieldset legend {
    float: none;
    width: auto;
    padding: 0;
    font-size: 0.9rem;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.color-picker-row .form-control-color {
    width: 54px;
    height: 48px;
    flex: 0 0 54px;
    padding: 5px;
    cursor: pointer;
}

.color-picker-row .form-control-color:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.color-preview-code {
    display: block;
    color: #344054;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 650;
}

.calendar-content-shell {
    width: min(1440px, 100%);
}

.calendar-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.calendar-store-control {
    width: min(320px, 100%);
    flex: 0 0 min(320px, 100%);
}

.calendar-store-control .form-label {
    margin-bottom: 7px;
    color: #475467;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-store-control .form-select {
    min-height: 48px;
    border-color: #cfd7e5;
    border-radius: 10px;
    background-color: #fff;
    font-weight: 650;
}

.calendar-store-control .form-select:focus {
    border-color: #7191e8;
    box-shadow: 0 0 0 0.22rem rgba(37, 87, 214, 0.12);
}

.calendar-global-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    background: #fff;
}

.calendar-month-navigation,
.calendar-global-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-month-navigation {
    min-width: min(360px, 100%);
    justify-content: space-between;
}

.calendar-global-title {
    min-width: 0;
    margin: 0;
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-align: center;
}

.calendar-nav-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid #d5dce7;
    border-radius: 9px;
    color: #344054;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.calendar-nav-button:hover,
.calendar-nav-button:focus-visible {
    border-color: #9ab0e9;
    color: var(--app-primary);
    background: #f5f8ff;
}

.calendar-global-actions .btn {
    min-height: 38px;
    font-weight: 650;
    text-decoration: none;
}

.calendar-action-divider {
    width: 1px;
    height: 24px;
    background: var(--app-border);
}

.calendar-stores-loading {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--app-muted);
}

.calendar-stores-loading[hidden] {
    display: none;
}

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

.store-calendar-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
}

.store-calendar-panel.has-error {
    border-color: #efb1b1;
}

.store-calendar-trigger,
.earning-card-trigger,
.payment-section-trigger {
    appearance: none;
    width: 100%;
    border: 0;
    color: inherit;
    background: #fff;
    text-align: left;
}

.store-calendar-trigger {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px;
}

.store-calendar-trigger:hover,
.store-calendar-trigger:focus-visible,
.earning-card-trigger:hover,
.earning-card-trigger:focus-visible,
.payment-section-trigger:hover,
.payment-section-trigger:focus-visible {
    background: #f8faff;
}

.store-calendar-trigger:focus-visible,
.earning-card-trigger:focus-visible,
.payment-section-trigger:focus-visible {
    outline: 3px solid rgba(37, 87, 214, 0.2);
    outline-offset: -3px;
}

.store-calendar-identity,
.earning-card-identity,
.payment-section-heading {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.store-calendar-identity strong {
    overflow: hidden;
    font-size: 0.96rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-calendar-summary {
    overflow: hidden;
    margin-top: 2px;
    color: #667085;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    margin-right: 4px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

[aria-expanded="true"] > .panel-chevron {
    transform: rotate(225deg);
}

.store-calendar-collapse {
    border-top: 1px solid var(--app-border);
}

.store-calendar-workspace {
    position: relative;
    min-width: 0;
    padding: 12px 8px 14px;
}

.store-calendar-error {
    margin: 4px 4px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #9f1f1f;
    background: #fff1f1;
    font-size: 0.78rem;
}

.store-calendar-error[hidden] {
    display: none;
}

@media (min-width: 1200px) {
    .store-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.calendar-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.calendar-workspace {
    position: relative;
    min-height: 620px;
    padding: 24px;
}

.calendar-loading {
    position: absolute;
    z-index: 4;
    top: 16px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 650;
    box-shadow: 0 5px 16px rgba(16, 24, 40, 0.08);
}

.calendar-empty-state {
    display: flex;
    min-height: 480px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 40px 24px;
    color: var(--app-muted);
    text-align: center;
}

.calendar-empty-state[hidden],
.calendar-workspace[hidden],
.calendar-loading[hidden] {
    display: none;
}

.calendar-empty-state .btn {
    min-height: 42px;
    margin-top: 8px;
    border-radius: 9px;
    font-weight: 650;
}

.store-calendar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    --fc-border-color: #e3e8ef;
    --fc-button-bg-color: #fff;
    --fc-button-border-color: #cfd7e5;
    --fc-button-hover-bg-color: #f5f7fa;
    --fc-button-hover-border-color: #b9c4d3;
    --fc-button-active-bg-color: #eef3ff;
    --fc-button-active-border-color: #aebfec;
    --fc-button-text-color: #344054;
    --fc-neutral-bg-color: #f8fafc;
    --fc-page-bg-color: #fff;
    --fc-today-bg-color: #f1f5ff;
}

.store-calendar .fc-toolbar {
    gap: 14px;
    margin-bottom: 22px;
}

.store-calendar .fc-toolbar-title {
    color: var(--app-ink);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.store-calendar .fc-button {
    min-height: 40px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 650;
    box-shadow: none;
}

.store-calendar .fc-col-header-cell-cushion {
    padding: 11px 6px;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
    text-transform: capitalize;
}

.store-calendar .fc-daygrid-day-frame {
    min-height: 104px;
}

.store-calendar .fc-daygrid-day-number {
    min-width: 30px;
    padding: 7px 8px;
    color: #344054;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.store-calendar .fc-day-other .fc-daygrid-day-number {
    color: #a0a9b8;
}

.store-calendar .fc-day-today .fc-daygrid-day-number {
    margin: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--app-primary);
    color: #fff;
}

.store-calendar .fc-daygrid-day {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.store-calendar .fc-daygrid-day:hover {
    background: #f8faff;
}

.store-calendar .fc-daygrid-event {
    min-height: 25px;
    margin: 2px 4px;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 700;
}

.store-calendar .fc-daygrid-event.attendance-absent {
    background-image: linear-gradient(rgba(16, 24, 40, 0.18), rgba(16, 24, 40, 0.18));
}

.store-calendar .fc-daygrid-event.attendance-pending {
    border-style: dashed;
}

.calendar-event-content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.calendar-event-symbol {
    flex: 0 0 auto;
    line-height: 1;
}

.calendar-event-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-day-summary {
    display: none;
}

.day-plan-panel {
    width: min(500px, 100vw) !important;
    border-left: 0;
    box-shadow: -18px 0 50px rgba(16, 24, 40, 0.16);
}

.day-plan-header {
    align-items: flex-start;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--app-border);
}

.day-plan-subtitle {
    color: var(--app-muted);
    font-size: 0.86rem;
    text-transform: capitalize;
}

.day-plan-store {
    margin-top: 8px;
    color: var(--app-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.day-plan-body {
    padding: 0;
    background: #f7f9fc;
}

.day-plan-body > .notification-area {
    margin: 18px 20px 0;
}

.day-plan-section {
    margin: 18px 20px;
    padding: 20px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, 0.04);
}

.day-plan-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.day-plan-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--app-primary);
    font-size: 0.7rem;
    font-weight: 750;
}

.employee-checklist,
.attendance-list {
    display: grid;
    gap: 9px;
}

.employee-check-option {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.employee-check-option:hover {
    border-color: #b8c7ea;
    background: #f8faff;
}

.employee-check-option:has(.form-check-input:checked) {
    border-color: #9ab0e9;
    background: #f2f6ff;
}

.employee-check-option .form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
    margin: 0;
    cursor: pointer;
}

.employee-plan-swatch {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid rgba(16, 24, 40, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.employee-check-name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-plan-save {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border-radius: 10px;
    font-weight: 700;
}

.attendance-section {
    margin-bottom: 28px;
}

.attendance-row {
    padding: 13px;
    border: 1px solid #e1e6ee;
    border-radius: 11px;
}

.attendance-employee {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    font-size: 0.88rem;
}

.attendance-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
}

.attendance-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 6px;
    border: 1px solid #d5dce7;
    border-radius: 8px !important;
    color: #475467;
    background: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.btn-check:checked + .attendance-button-pending {
    border-color: #7c8ca5;
    background: #eef1f5;
    color: #344054;
}

.btn-check:checked + .attendance-button-present {
    border-color: #53ad89;
    background: #e9f8f1;
    color: #08714c;
}

.btn-check:checked + .attendance-button-absent {
    border-color: #e48c8c;
    background: #fff0f0;
    color: #a62c2c;
}

.attendance-control:disabled .attendance-button {
    cursor: not-allowed;
    opacity: 0.58;
}

.day-section-state {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 18px;
    border: 1px dashed #d7dee9;
    border-radius: 10px;
    color: var(--app-muted);
    font-size: 0.82rem;
    text-align: center;
}

.day-section-empty {
    flex-direction: column;
}

.day-section-empty span {
    max-width: 310px;
}

.payment-settings-fieldset {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #f9fafb;
}

.payment-settings-fieldset legend {
    float: none;
    width: auto;
    padding: 0;
    font-size: 0.9rem;
}

.payment-settings-fieldset .input-group-text {
    border-color: #cfd7e5;
    color: #475467;
    background: #eef2f7;
    font-weight: 700;
}

.employee-rate-badge {
    display: block;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #10704c;
    font-size: 0.7rem;
    font-weight: 750;
}

.payments-content-shell {
    width: min(1180px, 100%);
}

.payments-layout {
    display: grid;
    gap: 24px;
}

.payment-section {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.payment-section-header {
    display: flex;
    min-height: 92px;
    align-items: center;
    padding: 21px 24px;
    border-bottom: 1px solid var(--app-border);
}

.payment-section-trigger {
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
}

.payment-section-trigger[aria-expanded="false"] {
    border-bottom-color: transparent;
}

.payment-section-heading {
    text-align: left;
}

.payment-section-heading .h5 {
    display: block;
    font-weight: 750;
}

.payment-section-kicker {
    color: var(--app-primary);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.outstanding-list,
.payment-history-list {
    padding: 18px;
    background: #f7f9fc;
}

.earning-card {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(16, 24, 40, 0.04);
}

.earning-card:last-child,
.payment-history-card:last-child {
    margin-bottom: 0;
}

.earning-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 20px;
    border-bottom: 1px solid #edf0f4;
}

.earning-card-trigger {
    cursor: pointer;
}

.earning-card-collapse {
    border-top: 1px solid #edf0f4;
}

.earning-card-name {
    display: block;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earning-card-total {
    color: #475467;
    font-size: 0.84rem;
}

.earning-count-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--app-primary);
    font-size: 0.72rem;
    font-weight: 750;
}

.earning-checklist {
    padding: 5px 20px;
}

.earning-option {
    display: grid;
    min-height: 62px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid #edf0f4;
    cursor: pointer;
}

.earning-option:last-child {
    border-bottom: 0;
}

.earning-option .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}

.earning-option-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.earning-option-main {
    color: #344054;
    font-size: 0.87rem;
    font-weight: 700;
}

.earning-option-store {
    overflow: hidden;
    color: #7a8598;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.earning-option-amount {
    color: var(--app-ink);
    font-size: 0.88rem;
    white-space: nowrap;
}

.earning-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-top: 1px solid #edf0f4;
    background: #fbfcfe;
}

.earning-selected-summary {
    display: flex;
    flex-direction: column;
    color: #667085;
    font-size: 0.78rem;
}

.earning-selected-summary strong {
    color: var(--app-ink);
    font-size: 0.95rem;
}

.earning-pay-button {
    min-width: 132px;
    min-height: 44px;
    border-radius: 9px;
    font-weight: 700;
}

.payment-history-card {
    display: grid;
    min-height: 98px;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 12px;
    padding: 18px 20px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    background: #fff;
}

.payment-history-card.is-cancelled {
    background: #fafafa;
}

.payment-history-identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.payment-history-identity time {
    margin-bottom: 3px;
    color: #7a8598;
    font-size: 0.72rem;
    font-weight: 650;
}

.payment-history-identity h3 {
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 0.96rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-history-identity span {
    color: #667085;
    font-size: 0.76rem;
}

.payment-history-value {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}

.payment-history-amount {
    font-size: 1rem;
    white-space: nowrap;
}

.payment-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 750;
}

.payment-status-active {
    background: #ecfdf3;
    color: var(--app-success);
}

.payment-status-cancelled {
    background: #f2f4f7;
    color: #667085;
}

.payment-history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.payment-history-actions .btn {
    min-height: 40px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 650;
}

.payment-loading,
.payment-empty {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 28px;
    color: var(--app-muted);
    text-align: center;
}

.payment-empty span:last-child {
    max-width: 470px;
    font-size: 0.82rem;
}

.payment-confirm-summary {
    color: #475467;
    font-weight: 650;
}

.payment-modal-list {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 11px;
}

.payment-modal-row {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border-bottom: 1px solid #edf0f4;
    color: #475467;
    font-size: 0.82rem;
}

.payment-modal-row:last-child {
    border-bottom: 0;
}

.payment-modal-row strong {
    color: var(--app-ink);
    white-space: nowrap;
}

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

.payment-detail-total {
    color: var(--app-primary);
    font-size: 1.35rem;
    white-space: nowrap;
}

.payment-detail-status {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
}

.payment-detail-status-active {
    background: #ecfdf3;
    color: var(--app-success);
}

.payment-detail-status-cancelled {
    background: #f2f4f7;
    color: #667085;
}

.financial-lock-link {
    margin-left: 8px;
    font-weight: 750;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(37, 87, 214, 0.12), transparent 34rem),
        var(--app-bg);
}

.auth-shell {
    width: min(440px, 100%);
}

.auth-card {
    padding: clamp(26px, 6vw, 38px);
    border: 1px solid var(--app-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(16, 24, 40, 0.12);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 34px;
    font-size: 1.05rem;
    font-weight: 750;
}

.auth-heading {
    margin-bottom: 26px;
}

.auth-card .alert {
    border: 0;
    border-radius: 10px;
    font-size: 0.88rem;
}

.auth-submit {
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
}

.account-content-shell {
    max-width: 720px;
}

.account-password-card {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

.account-password-card-header,
.account-password-card-body {
    padding: 22px 24px;
}

.account-password-card-header {
    border-bottom: 1px solid var(--app-border);
    background: #f9fafb;
}

.account-password-card-body .alert {
    border: 0;
    border-radius: 10px;
}

.account-password-submit {
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
}

.forbidden-card {
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 40px 24px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: var(--app-shadow);
}

.forbidden-card p {
    max-width: 520px;
    color: var(--app-muted);
}

.forbidden-code {
    color: var(--app-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.forbidden-card .btn {
    min-height: 44px;
    margin-top: 8px;
    border-radius: 9px;
    font-weight: 650;
}

.offcanvas .app-navigation .nav-link {
    color: #475467;
}

.offcanvas .app-navigation .nav-link.active {
    background: #eef3ff;
    color: var(--app-primary);
    box-shadow: none;
}

.offcanvas .app-navigation .nav-link.disabled {
    color: #98a2b3;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: 244px;
    }
}

@media (max-width: 767.98px) {
    .content-shell {
        padding: 28px 16px 48px;
    }

    .page-header {
        margin-bottom: 22px;
    }

    .account-password-card-header,
    .account-password-card-body {
        padding: 20px 18px;
    }

    .calendar-page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 22px;
    }

    .calendar-global-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .calendar-month-navigation {
        width: 100%;
        min-width: 0;
    }

    .calendar-global-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .store-calendar-workspace {
        padding: 10px 6px 12px;
    }

    .calendar-store-control {
        width: 100%;
        flex-basis: auto;
    }

    .calendar-workspace {
        min-height: 520px;
        padding: 17px 12px;
    }

    .calendar-loading {
        top: 10px;
        right: 12px;
    }

    .store-calendar .fc-toolbar {
        margin-bottom: 16px;
    }

    .store-calendar .fc-daygrid-day-frame {
        min-height: 78px;
    }

    .store-calendar .fc-col-header-cell-cushion {
        padding-inline: 2px;
        font-size: 0.68rem;
    }

    .store-calendar .fc-daygrid-day-number {
        min-width: 25px;
        padding: 5px;
        font-size: 0.72rem;
    }

    .store-calendar .fc-daygrid-event {
        min-height: 23px;
        margin-inline: 2px;
        padding: 3px 4px;
        font-size: 0.66rem;
    }

    .app-primary-action {
        width: 100%;
    }

    .store-panel-header {
        padding: 19px 18px;
    }

    .store-list {
        padding: 10px;
        background: #f7f9fc;
    }

    .store-row {
        display: block;
        min-height: 0;
        margin-bottom: 10px;
        padding: 17px;
        border: 1px solid var(--app-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
    }

    .store-row:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .employee-list {
        padding: 10px;
        background: #f7f9fc;
    }

    .employee-row {
        display: block;
        min-height: 0;
        margin-bottom: 10px;
        padding: 17px;
        border: 1px solid var(--app-border);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 10px rgba(16, 24, 40, 0.04);
    }

    .employee-row:last-child {
        margin-bottom: 0;
        border-bottom: 1px solid var(--app-border);
    }

    .employee-phone {
        margin-top: 15px;
        padding-top: 13px;
        border-top: 1px solid #edf0f4;
    }

    .employee-phone-label {
        display: block;
        margin-bottom: 3px;
        color: #98a2b3;
        font-size: 0.67rem;
        font-style: normal;
        font-weight: 700;
        letter-spacing: 0.07em;
    }

    .employee-row .store-status {
        margin-top: 13px;
    }

    .employee-row .store-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 16px;
    }

    .employee-row .store-actions.is-single {
        grid-template-columns: 1fr;
    }

    .employee-row .store-actions .btn {
        min-height: 44px;
    }

    .store-status {
        margin-top: 13px;
    }

    .store-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 16px;
    }

    .store-actions.is-single {
        grid-template-columns: 1fr;
    }

    .store-actions .btn {
        min-height: 44px;
    }

    .store-loading,
    .store-empty {
        min-height: 180px;
        background: #fff;
    }

    .payments-content-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .payment-section-header {
        min-height: 0;
        padding: 18px;
    }

    .outstanding-list,
    .payment-history-list {
        padding: 10px;
    }

    .payment-history-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 15px;
        padding: 17px;
    }

    .payment-history-value {
        align-items: flex-end;
    }

    .payment-history-actions {
        grid-column: 1 / -1;
    }

    .payment-history-actions .btn {
        min-height: 44px;
        flex: 1 1 0;
    }
}

@media (max-width: 575.98px) {
    .calendar-content-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    .calendar-page-header {
        padding-right: 6px;
        padding-left: 6px;
    }

    .calendar-global-toolbar {
        margin-right: 2px;
        margin-left: 2px;
        padding: 9px;
    }

    .calendar-global-title {
        font-size: 0.98rem;
    }

    .calendar-global-actions {
        gap: 4px;
    }

    .calendar-global-actions .btn {
        min-height: 40px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.75rem;
    }

    .calendar-action-divider {
        display: none;
    }

    .store-calendar-grid {
        gap: 10px;
    }

    .store-calendar-trigger,
    .earning-card-trigger {
        min-height: 62px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .store-calendar .fc-toolbar-title {
        font-size: 1.05rem;
        white-space: nowrap;
    }

    .store-calendar .fc-toolbar {
        flex-wrap: nowrap;
    }

    .store-calendar .fc-toolbar-chunk {
        min-width: 44px;
    }

    .store-calendar .fc-toolbar-chunk:nth-child(2) {
        min-width: 0;
        flex: 1 1 auto;
        text-align: center;
    }

    .store-calendar .fc-button {
        min-width: 42px;
        min-height: 42px;
        padding: 6px 9px;
    }

    .store-calendar .fc-daygrid-day-frame {
        position: relative;
        min-height: 74px;
    }

    .store-calendar .fc-daygrid-day-events,
    .store-calendar .fc-daygrid-day-bottom {
        display: none;
    }

    .mobile-day-summary {
        position: absolute;
        top: 30px;
        right: 2px;
        left: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        overflow: hidden;
        color: #667085;
        font-size: 0.56rem;
        font-weight: 700;
        line-height: 1;
        pointer-events: none;
    }

    .mobile-day-dots {
        display: flex;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }

    .mobile-day-dot {
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        border: 1px solid rgba(16, 24, 40, 0.14);
        border-radius: 50%;
    }

    .mobile-day-overflow {
        color: #475467;
        font-size: 0.55rem;
        white-space: nowrap;
    }

    .mobile-day-count {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .day-plan-panel {
        width: 100vw !important;
    }

    .day-plan-header {
        padding: 18px 17px 15px;
    }

    .day-plan-body > .notification-area,
    .day-plan-section {
        margin-right: 12px;
        margin-left: 12px;
    }

    .day-plan-section {
        padding: 16px;
    }

    .employee-check-option {
        min-height: 52px;
    }

    .attendance-button {
        min-height: 44px;
        font-size: 0.7rem;
    }

    .modal-dialog {
        margin: 12px;
    }

    .modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }

    .earning-card-header,
    .earning-card-footer {
        padding-right: 15px;
        padding-left: 15px;
    }

    .earning-checklist {
        padding-right: 15px;
        padding-left: 15px;
    }

    .earning-option {
        min-height: 68px;
        gap: 10px;
    }

    .earning-option .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }

    .earning-option-amount {
        font-size: 0.8rem;
    }

    .earning-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .earning-pay-button {
        width: 100%;
    }

    .payment-detail-header {
        flex-direction: column;
    }

    .payment-detail-total {
        font-size: 1.2rem;
    }

    .payment-modal-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
