:root {
    color-scheme: light;
    --user-bg: #edf2f7;
    --user-panel: rgba(249, 251, 253, 0.92);
    --user-panel-soft: rgba(29, 59, 97, 0.04);
    --user-line: rgba(24, 44, 73, 0.1);
    --user-text: #1c2738;
    --user-muted: rgba(28, 39, 56, 0.62);
    --user-accent: #2e7df4;
    --user-accent-soft: rgba(46, 125, 244, 0.14);
    --user-success: #2ea36d;
    --user-warning: #d49d38;
    --user-danger: #d95e55;
    --user-radius-lg: 24px;
    --user-radius-md: 16px;
    --user-radius-sm: 12px;
    --user-shadow: 0 20px 42px rgba(21, 42, 69, 0.09);
}

html.user-theme-dark {
    color-scheme: dark;
    --user-bg: #151b24;
    --user-panel: rgba(16, 22, 31, 0.92);
    --user-panel-soft: rgba(255, 255, 255, 0.05);
    --user-line: rgba(255, 255, 255, 0.08);
    --user-text: #eef3fa;
    --user-muted: rgba(238, 243, 250, 0.64);
    --user-accent-soft: rgba(77, 162, 255, 0.18);
    --user-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.html,
body.user-app-body {
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(46, 125, 244, 0.12), transparent 34%),
        radial-gradient(circle at bottom, rgba(212, 157, 56, 0.08), transparent 32%),
        linear-gradient(180deg, #f4f7fb 0%, var(--user-bg) 100%);
    color: var(--user-text);
    font-family: "Barlow", system-ui, sans-serif;
    overflow-x: hidden;
}

body.html,
body.user-app-body {
    width: 100%;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}

.nav-wrapper.container,
.container {
    width: min(100%, 540px);
}

.navigation,
.navigation nav,
nav.fix_topscroll.topbar {
    background: rgba(246, 249, 252, 0.92) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(24, 44, 73, 0.08);
    box-shadow: none;
}

nav .brand-logo {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

nav .navicon,
nav .navicon i {
    color: var(--user-text) !important;
}

nav .navicon.right.nav-site-mode,
nav .navicon.right.sidenav-trigger.pulse {
    display: none !important;
}

.preloader-background {
    background: rgba(235, 241, 247, 0.76) !important;
    backdrop-filter: blur(10px);
}

.preloader-wrapper {
    width: min(92vw, 320px);
    padding: 22px 18px;
    border-radius: 22px;
    background: rgba(250, 252, 255, 0.96);
    border: 1px solid rgba(24, 44, 73, 0.08);
    box-shadow: var(--user-shadow);
}

#preloader-message {
    margin-top: 12px;
    color: var(--user-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.page-footer {
    display: none;
}

.backtotop,
.refreshtop,
.sidesettings {
    display: none !important;
}

.user-app-body {
    margin: 0;
    overflow-x: hidden;
}

.user-app-body.is-modal-open {
    overflow: hidden;
}

.user-app-shell {
    width: 100%;
    min-height: 100vh;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.user-app-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(calc(100% - 24px), 540px);
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
    backdrop-filter: blur(18px);
}

.user-app-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--user-text);
}

.user-app-brand__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(46, 125, 244, 0.16), rgba(46, 125, 244, 0.05));
    border: 1px solid rgba(24, 44, 73, 0.08);
}

.user-app-brand__mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.user-app-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-app-topbar__actions form {
    margin: 0;
}

.user-app-topbar__button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--user-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
    font-size: 1.08rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.user-app-topbar__button i {
    color: currentColor;
    font-size: 1.2rem;
}

.user-pwa-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--user-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--user-text);
    box-shadow: 0 10px 24px rgba(21, 42, 69, 0.08);
}

.user-pwa-pill__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-pwa-pill__icon .mdi {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}

.user-pwa-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(46, 125, 244, 0.08);
}

.user-pwa-pill__label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 700;
}

.user-pwa-pill[data-state="online"] {
    border-color: rgba(46, 163, 109, 0.24);
    background: rgba(46, 163, 109, 0.09);
    color: #237b52;
}

.user-pwa-pill[data-state="offline"] {
    border-color: rgba(217, 94, 85, 0.24);
    background: rgba(217, 94, 85, 0.09);
    color: #b44840;
}

.user-pwa-pill[data-state="syncing"],
.user-pwa-pill[data-install-ready="true"] {
    border-color: rgba(46, 125, 244, 0.24);
    background: rgba(46, 125, 244, 0.1);
    color: #265fb9;
}

.user-pwa-pill[data-state="update"] {
    border-color: rgba(212, 157, 56, 0.28);
    background: rgba(212, 157, 56, 0.11);
    color: #a37118;
}

.user-pwa-pill[data-state="syncing"] .user-pwa-pill__dot,
.user-pwa-pill[data-state="update"] .user-pwa-pill__dot,
.user-pwa-pill[data-install-ready="true"] .user-pwa-pill__dot {
    animation: user-pwa-pulse 1.1s ease-in-out infinite;
}

@keyframes user-pwa-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.user-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    transform: translateX(-50%);
    width: min(calc(100vw - 18px), 540px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 10px;
    border-radius: 28px;
    border: 1px solid rgba(24, 44, 73, 0.08);
    background: rgba(248, 250, 253, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: var(--user-shadow);
}

.user-bottom-nav__item {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-height: 60px;
    padding: 8px 4px;
    border-radius: 18px;
    color: var(--user-muted);
    transition: background 0.18s ease, color 0.18s ease;
}

.user-bottom-nav__item i {
    font-size: 1.34rem;
    color: currentColor;
}

.user-bottom-nav__item span {
    font-size: 0.64rem;
    line-height: 1;
    font-weight: 700;
}

.user-bottom-nav__item.is-active {
    background: var(--user-accent-soft);
    color: var(--user-text);
}

.user-toast-stack {
    position: fixed;
    left: 50%;
    top: calc(18px + env(safe-area-inset-top, 0px));
    z-index: 110;
    transform: translateX(-50%);
    width: min(calc(100vw - 28px), 420px);
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.user-toast {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--user-line);
    background: rgba(252, 253, 255, 0.96);
    color: var(--user-text);
    box-shadow: var(--user-shadow);
    pointer-events: auto;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-toast strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.84rem;
    font-weight: 700;
}

.user-toast span {
    display: block;
    color: var(--user-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.user-toast button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.05rem;
    line-height: 1;
}

.user-toast--success {
    border-color: rgba(87, 197, 143, 0.26);
}

.user-toast--error {
    border-color: rgba(255, 131, 121, 0.24);
}

.user-toast.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
}

.user-app-loader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(234, 240, 247, 0.72);
    backdrop-filter: blur(10px);
}

.user-app-loader.is-hidden {
    display: none;
}

.user-app-loader__panel {
    width: min(100%, 320px);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 24px 20px;
    border-radius: 24px;
    border: 1px solid var(--user-line);
    background: rgba(252, 253, 255, 0.96);
    box-shadow: var(--user-shadow);
    text-align: center;
}

.user-app-loader__panel strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.user-app-loader__panel span {
    color: var(--user-muted);
    font-size: 0.84rem;
}

.user-app-loader__spinner {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 3px solid rgba(24, 44, 73, 0.12);
    border-top-color: var(--user-accent);
    animation: user-spin 0.8s linear infinite;
}

@keyframes user-spin {
    to {
        transform: rotate(360deg);
    }
}

.sidemenu {
    background: rgba(252, 253, 255, 0.96);
    color: var(--user-text);
}

.sidemenu .user-view {
    margin: 0;
    padding: 26px 22px 18px;
    background: linear-gradient(180deg, rgba(77, 162, 255, 0.16), rgba(77, 162, 255, 0.04));
}

.sidemenu .name,
.sidemenu .email,
.sidemenu .subheader,
.sidemenu a,
.sidemenu i {
    color: var(--user-text) !important;
}

.sidemenu .subheader {
    color: var(--user-muted) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidemenu .lvl1 a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 700;
}

.sidemenu .divider {
    border-color: rgba(24, 44, 73, 0.08);
}

.user-shell {
    display: grid;
    gap: 16px;
    width: min(calc(100% - 24px), 540px);
    margin: 0 auto;
    padding: 12px 0 14px;
}

.user-shell--auth {
    min-height: 100vh;
    align-content: center;
    padding-top: calc(28px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.user-legal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(calc(100% - 24px), 540px);
    margin: 8px auto 0;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px));
    color: var(--user-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.user-legal-footer a {
    color: var(--user-muted);
    text-decoration: none;
}

.user-legal-footer a:hover,
.user-legal-footer a:focus-visible {
    color: var(--user-text);
    text-decoration: underline;
}

.user-auth-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.user-hero {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: var(--user-radius-lg);
    border: 1px solid var(--user-line);
    background:
        radial-gradient(circle at top right, rgba(46, 125, 244, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 250, 253, 0.82)),
        var(--user-panel);
    box-shadow: var(--user-shadow);
}

.user-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(46, 125, 244, 0.08);
    color: var(--user-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-hero__title {
    margin: 14px 0 6px;
    font-size: clamp(1.28rem, 6vw, 1.72rem);
    line-height: 1;
    font-weight: 700;
}

.user-hero__text {
    margin: 0;
    color: var(--user-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.user-chip-row,
.user-stats,
.user-actions-grid,
.user-grid {
    display: grid;
    gap: 10px;
}

.user-chip-row {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    margin-top: 16px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--user-line);
    background: var(--user-panel-soft);
    color: var(--user-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.user-chip.is-active {
    background: var(--user-accent-soft);
    border-color: rgba(77, 162, 255, 0.42);
}

.user-chip--ghost {
    color: var(--user-muted);
}

.user-chip--success {
    color: #237b52;
    background: rgba(87, 197, 143, 0.16);
    border-color: rgba(87, 197, 143, 0.34);
}

.user-chip--warning {
    color: #a37118;
    background: rgba(255, 202, 107, 0.16);
    border-color: rgba(255, 202, 107, 0.32);
}

.user-chip--danger {
    color: #b44840;
    background: rgba(255, 131, 121, 0.14);
    border-color: rgba(255, 131, 121, 0.32);
}

.user-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.user-stat {
    padding: 14px 14px 12px;
    border-radius: var(--user-radius-md);
    border: 1px solid var(--user-line);
    background: rgba(255, 255, 255, 0.56);
}

.user-stat strong {
    display: block;
    font-size: 1.22rem;
    line-height: 1;
    font-weight: 700;
}

.user-stat span {
    display: block;
    margin-top: 6px;
    color: var(--user-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

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

.user-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-section__title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
}

.user-section__meta {
    color: var(--user-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.user-card {
    border-radius: var(--user-radius-lg);
    border: 1px solid var(--user-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 250, 253, 0.86)),
        var(--user-panel);
    box-shadow: var(--user-shadow);
}

.user-card__body {
    padding: 15px 15px 13px;
}

.user-card__actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 14px;
    justify-content: flex-end;
}

.user-card__actions .user-button,
.user-card__actions .user-button--ghost {
    flex: 0 0 auto;
}

.user-button,
.user-button.btn-large,
.user-button.btn,
.user-button--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.user-button,
.user-button.btn-large,
.user-button.btn {
    background: linear-gradient(135deg, #2a8fff, #66b2ff) !important;
}

.user-button--success {
    background: linear-gradient(135deg, #2ea36d, #5fd397) !important;
}

.user-button--danger {
    background: linear-gradient(135deg, #d35b51, #ff8d7f) !important;
}

.user-button--ghost {
    border: 1px solid var(--user-line);
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
}

.user-button i,
.user-button--ghost i {
    margin: 0 !important;
    font-size: 1.15rem;
}

.transfer-read-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(247, 250, 253, 0.9)),
        var(--user-panel);
}

.transfer-read-card__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.transfer-read-card__order,
.transfer-read-card__time {
    color: var(--user-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.transfer-read-card__time {
    text-align: right;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.transfer-read-card__title {
    margin: 0 0 12px;
    font-size: 1.04rem;
    line-height: 1.12;
    font-weight: 700;
}

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

.transfer-read-card__item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-top: 1px solid rgba(24, 44, 73, 0.08);
}

.transfer-read-card__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.transfer-read-card__item i {
    margin-top: 2px;
    color: #2e7df4;
    font-size: 1rem;
}

.transfer-read-card__item > div {
    display: grid;
    gap: 2px;
}

.transfer-read-card__item span {
    color: var(--user-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.transfer-read-card__item strong {
    font-size: 1.025rem;
    line-height: 1.28;
    font-weight: 600;
}

.transfer-read-card__link {
    color: var(--user-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.transfer-read-card__link:hover,
.transfer-read-card__link:focus-visible {
    text-decoration: underline;
}

.transfer-read-card__item--pax strong {
    white-space: pre-line;
}

.transfer-read-card__item--has-sign {
    margin: 0 -8px;
    padding: 9px 8px;
    border: 0;
    border-radius: 0;
    background: rgba(46, 125, 244, 0.08);
}

.transfer-read-card__item--full {
    grid-column: 1 / -1;
}

.transfer-read-card__item--datetime {
    padding-bottom: 12px;
}

.transfer-read-card__datetime {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 12px;
    width: 100%;
}

.transfer-read-card__datetime-part {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.transfer-read-card__datetime-part--time {
    text-align: right;
}

.transfer-read-card__datetime-part strong {
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700;
}

.transfer-read-card + .user-card__actions .user-button,
.transfer-read-card + .user-card__actions .user-button--ghost,
.user-card .user-card__actions .user-button,
.user-card .user-card__actions .user-button--ghost {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.82rem;
}

.user-card .user-card__actions .user-button i,
.user-card .user-card__actions .user-button--ghost i {
    font-size: 1rem;
}

.transfer-read-card__observe {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--user-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-accent);
    cursor: pointer;
}

.transfer-read-card__observe:disabled,
.transfer-read-card__observe.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.transfer-read-card__observe[aria-disabled="true"] {
    pointer-events: none;
}

.transfer-read-card__observe i {
    font-size: 1.05rem;
}

.transfer-read-card__observe.is-filled {
    background: rgba(46, 163, 109, 0.12);
    border-color: rgba(46, 163, 109, 0.24);
    color: #237b52;
}

.transfer-read-card__observe--sign.is-filled {
    background: rgba(214, 143, 37, 0.14);
    border-color: rgba(214, 143, 37, 0.28);
    color: #9b620c;
}

.transfer-read-card__observe--file.is-filled {
    background: rgba(46, 125, 244, 0.14);
    border-color: rgba(46, 125, 244, 0.26);
    color: #1f5fbd;
}

.transfer-read-card__observe--view.is-filled {
    background: rgba(46, 163, 109, 0.12);
    border-color: rgba(46, 163, 109, 0.24);
    color: #237b52;
}

.user-empty {
    padding: 18px;
    border-radius: var(--user-radius-lg);
    border: 1px dashed rgba(24, 44, 73, 0.12);
    background: rgba(255, 255, 255, 0.52);
    color: var(--user-muted);
    text-align: center;
    font-weight: 600;
}

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

.attendance-action {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
    border-radius: var(--user-radius-lg);
    border: 1px solid var(--user-line);
    box-shadow: var(--user-shadow);
    text-align: left;
    width: 100%;
    color: var(--user-text);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.72);
}

.attendance-action i {
    font-size: 1.4rem;
}

.attendance-action strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.05;
}

.attendance-action span {
    color: var(--user-muted);
    font-size: 0.9rem;
}

.attendance-action--entry {
    background: linear-gradient(180deg, rgba(46, 163, 109, 0.18), rgba(255, 255, 255, 0.86));
    border-color: rgba(46, 163, 109, 0.22);
}

.attendance-action--exit {
    background: linear-gradient(180deg, rgba(46, 125, 244, 0.18), rgba(255, 255, 255, 0.86));
    border-color: rgba(46, 125, 244, 0.22);
}

.attendance-action--entry i,
.attendance-action--entry strong {
    color: #237b52;
}

.attendance-action--exit i,
.attendance-action--exit strong {
    color: #265fb9;
}

.history-list,
.request-list {
    display: grid;
    gap: 12px;
}

.history-item,
.request-item {
    display: grid;
    gap: 12px;
    padding: 15px;
    border-radius: var(--user-radius-lg);
    border: 1px solid var(--user-line);
    background: var(--user-panel);
}

.history-item__row,
.request-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-item__type,
.request-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.history-item__type--entry {
    background: rgba(87, 197, 143, 0.16);
    color: #237b52;
}

.history-item__type--exit {
    background: rgba(77, 162, 255, 0.16);
    color: #265fb9;
}

.request-status--pending {
    background: rgba(255, 202, 107, 0.16);
    color: #a37118;
}

.request-status--approved {
    background: rgba(87, 197, 143, 0.16);
    color: #237b52;
}

.request-status--rejected {
    background: rgba(255, 131, 121, 0.16);
    color: #b44840;
}

.history-item__time,
.request-item__dates {
    font: 700 0.98rem/1 "IBM Plex Mono", monospace;
}

.user-form-card {
    padding: 18px;
    border-radius: var(--user-radius-lg);
    border: 1px solid var(--user-line);
    background: var(--user-panel);
    box-shadow: var(--user-shadow);
}

.user-profile-mark-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.user-profile-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(77, 162, 255, 0.16), rgba(77, 162, 255, 0.06));
    border: 1px solid rgba(77, 162, 255, 0.2);
}

.user-profile-mark__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.profile-sheet__name {
    margin-bottom: 4px;
    text-align: center;
    font-size: 1.06rem;
    line-height: 1.15;
    font-weight: 700;
}

.profile-sheet__hint {
    margin-bottom: 14px;
    text-align: center;
    color: var(--user-muted);
    font-size: 0.82rem;
}

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

.profile-sheet__row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(24, 44, 73, 0.08);
}

.profile-sheet__row:nth-child(-n+2) {
    border-top: 0;
    padding-top: 0;
}

.profile-sheet__row--full {
    grid-column: 1 / -1;
}

.profile-sheet__row i {
    margin-top: 2px;
    color: #2e7df4;
    font-size: 1rem;
}

.profile-sheet__row > div {
    display: grid;
    gap: 2px;
}

.profile-sheet__row span {
    color: var(--user-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-sheet__row strong {
    font-size: 0.92rem;
    line-height: 1.28;
    font-weight: 600;
}

.profile-sheet__logout-form {
    width: 100%;
}

.profile-sheet__logout-form .user-button--ghost {
    width: 100%;
}

.user-auth-card {
    overflow: hidden;
}

.user-auth-card__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.user-pwa-pill--auth {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    align-self: flex-end;
}

.user-auth-form {
    margin-top: 16px;
}

.user-auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--user-muted);
    font-size: 0.84rem;
}

.user-auth-form__remember input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.user-auth-form__submit {
    width: 100%;
}

.user-auth-form__links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.82rem;
    text-align: center;
}

.user-auth-form__links a {
    color: var(--user-muted);
}

.user-auth-form__legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--user-muted);
    text-align: center;
}

.user-auth-form__legal a {
    color: var(--user-muted);
    text-decoration: none;
}

.user-auth-form__legal a:hover,
.user-auth-form__legal a:focus-visible {
    color: var(--user-text);
    text-decoration: underline;
}

.user-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.user-field label {
    position: static !important;
    transform: none !important;
    color: var(--user-muted) !important;
    font-size: 0.85rem;
    font-weight: 700;
}

.user-field input,
.user-field textarea {
    width: 100%;
    margin: 0 !important;
    min-height: 52px;
    padding: 0 16px !important;
    border: 1px solid var(--user-line) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    color: var(--user-text) !important;
    box-sizing: border-box;
}

.user-field textarea {
    min-height: 124px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    resize: vertical;
}

.user-field input:focus,
.user-field textarea:focus {
    border-bottom-color: rgba(77, 162, 255, 0.55) !important;
    border-color: rgba(77, 162, 255, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(77, 162, 255, 0.12) !important;
}

.user-helper {
    color: var(--user-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.user-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 14px calc(22px + env(safe-area-inset-bottom, 0px));
    background: rgba(31, 46, 67, 0.22);
    backdrop-filter: blur(8px);
}

.user-modal.is-open {
    display: flex;
}

.user-modal__dialog {
    width: min(100%, 520px);
    border-radius: 26px;
    border: 1px solid var(--user-line);
    background: rgba(252, 253, 255, 0.98);
    box-shadow: var(--user-shadow);
}

.user-modal__dialog--locked {
    width: min(100%, 560px);
}

.user-modal__dialog--compact-sheet {
    width: min(100%, 420px);
    border-radius: 22px;
}

.user-modal__dialog--sign-sheet {
    width: min(100%, 520px);
}

.user-modal__dialog--file-sheet {
    width: min(100%, 520px);
}

.user-modal__dialog--preview-sheet {
    width: min(100%, 760px);
}

.user-modal__content {
    padding: 22px 18px 10px;
}

.user-modal__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 18px 18px;
}

.user-modal__close {
    border: 0;
    background: transparent;
    color: var(--user-muted);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.user-requirements-modal {
    display: grid;
    gap: 14px;
}

.user-requirements-modal__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--user-muted);
}

.user-requirements-modal__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.user-requirements-modal__text,
.user-requirements-modal__hint {
    margin: 0;
    color: var(--user-muted);
    line-height: 1.5;
}

.transfer-sign-sheet-modal,
.transfer-sign-file-modal {
    display: grid;
    gap: 14px;
}

.transfer-sign-preview-modal {
    display: grid;
    gap: 14px;
}

.transfer-sign-preview-modal__frame {
    width: 100%;
    aspect-ratio: 297 / 210;
    max-height: min(52vh, 420px);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.transfer-sign-preview-modal__frame object,
.transfer-sign-preview-modal__frame iframe {
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    margin: -6px;
    border: 0;
    display: block;
    background: #fff;
}

.transfer-sign-file-picker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid var(--user-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
}

.transfer-sign-file-picker__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(77, 162, 255, 0.22);
    border-radius: 12px;
    background: rgba(77, 162, 255, 0.08);
    color: var(--user-accent);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.transfer-sign-file-picker__name {
    min-width: 0;
    color: var(--user-muted);
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transfer-sign-file-picker__name.is-selected {
    color: var(--user-text);
    font-weight: 600;
}

.transfer-sign-file-picker__input {
    display: none;
}

.transfer-sign-sheet-modal__link {
    color: var(--user-accent);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.transfer-sign-sheet-modal__link:hover,
.transfer-sign-sheet-modal__link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .transfer-sign-file-picker {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .transfer-sign-file-picker__trigger {
        width: 100%;
    }

    .transfer-sign-file-picker__name {
        white-space: normal;
    }
}

.user-requirements-modal__list {
    display: grid;
    gap: 10px;
}

.user-requirements-modal__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--user-line);
    background: var(--user-panel-soft);
}

.user-requirements-modal__item strong,
.user-requirements-modal__item p {
    display: block;
}

.user-requirements-modal__item strong {
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.user-requirements-modal__item p {
    margin: 0;
    color: var(--user-muted);
    line-height: 1.45;
}

.user-requirements-modal__item span {
    flex-shrink: 0;
    min-width: 82px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.user-requirements-modal__item.is-ready span {
    background: rgba(46, 163, 109, 0.16);
    color: var(--user-success);
}

.user-requirements-modal__item.is-pending span {
    background: rgba(212, 157, 56, 0.16);
    color: var(--user-warning);
}

.user-requirements-modal__footer {
    justify-content: stretch;
}

.user-requirements-modal__footer .user-button {
    flex: 1 1 0;
    width: auto;
    justify-content: center;
}

.user-requirements-modal__footer .is-hidden {
    display: none !important;
}

html.user-theme-dark body.user-app-body,
html.user-theme-dark body.html {
    background:
        radial-gradient(circle at top, rgba(77, 162, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom, rgba(212, 157, 56, 0.08), transparent 32%),
        linear-gradient(180deg, #1b222d 0%, var(--user-bg) 100%);
}

html.user-theme-dark .user-app-topbar__button,
html.user-theme-dark .user-pwa-pill,
html.user-theme-dark .user-bottom-nav,
html.user-theme-dark .user-toast,
html.user-theme-dark .user-app-loader__panel,
html.user-theme-dark .sidemenu,
html.user-theme-dark .user-stat,
html.user-theme-dark .user-button--ghost,
html.user-theme-dark .user-empty,
html.user-theme-dark .user-field input,
html.user-theme-dark .user-field textarea,
html.user-theme-dark .user-modal__dialog {
    background: rgba(20, 27, 38, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--user-text) !important;
}

html.user-theme-dark .user-card,
html.user-theme-dark .transfer-read-card,
html.user-theme-dark .history-item,
html.user-theme-dark .request-item,
html.user-theme-dark .user-form-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        var(--user-panel) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.user-theme-dark .user-app-brand__mark,
html.user-theme-dark .user-profile-mark {
    background: linear-gradient(180deg, rgba(77, 162, 255, 0.2), rgba(77, 162, 255, 0.08));
    border-color: rgba(77, 162, 255, 0.22);
}

html.user-theme-dark .user-chip,
html.user-theme-dark .user-hero__eyebrow {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--user-text);
}

html.user-theme-dark .user-requirements-modal__item {
    background: rgba(255, 255, 255, 0.04);
}

html.user-theme-dark .user-chip--ghost,
html.user-theme-dark .user-section__meta,
html.user-theme-dark .user-hero__text,
html.user-theme-dark .user-toast span,
html.user-theme-dark .transfer-read-card__order,
html.user-theme-dark .transfer-read-card__time,
html.user-theme-dark .transfer-read-card__item span,
html.user-theme-dark .attendance-action span,
html.user-theme-dark .user-helper,
html.user-theme-dark .user-field label,
html.user-theme-dark .user-empty {
    color: rgba(238, 243, 250, 0.7) !important;
}

html.user-theme-dark .user-pwa-pill[data-state="online"] {
    background: rgba(46, 163, 109, 0.16) !important;
    border-color: rgba(46, 163, 109, 0.32) !important;
    color: #7ee0aa !important;
}

html.user-theme-dark .user-pwa-pill[data-state="offline"] {
    background: rgba(217, 94, 85, 0.16) !important;
    border-color: rgba(217, 94, 85, 0.3) !important;
    color: #ff9f98 !important;
}

html.user-theme-dark .user-pwa-pill[data-state="syncing"],
html.user-theme-dark .user-pwa-pill[data-install-ready="true"] {
    background: rgba(77, 162, 255, 0.18) !important;
    border-color: rgba(77, 162, 255, 0.3) !important;
    color: #9ec9ff !important;
}

html.user-theme-dark .user-pwa-pill[data-state="update"] {
    background: rgba(212, 157, 56, 0.16) !important;
    border-color: rgba(212, 157, 56, 0.3) !important;
    color: #ffd27c !important;
}

html.user-theme-dark .user-bottom-nav__item.is-active {
    background: rgba(77, 162, 255, 0.16);
    color: #f2f6fc;
}

html.user-theme-dark .transfer-read-card__item,
html.user-theme-dark .history-item,
html.user-theme-dark .request-item {
    border-color: rgba(255, 255, 255, 0.08);
}

html.user-theme-dark .transfer-read-card__item i {
    color: #8fc0ff;
}

html.user-theme-dark .transfer-read-card__item--has-sign {
    background: rgba(46, 125, 244, 0.16);
    border-color: rgba(77, 162, 255, 0.28);
}

html.user-theme-dark .profile-sheet__row i {
    color: #8fc0ff;
}

html.user-theme-dark .user-button--ghost {
    background: rgba(255, 255, 255, 0.06) !important;
}

html.user-theme-dark .transfer-read-card__observe {
    background: rgba(255, 255, 255, 0.06);
    color: #9ec9ff;
}

html.user-theme-dark .transfer-read-card__observe.is-filled {
    background: rgba(46, 163, 109, 0.16);
    color: #7ee0aa;
}

html.user-theme-dark .transfer-read-card__observe--view.is-filled {
    background: rgba(46, 163, 109, 0.18);
    border-color: rgba(46, 163, 109, 0.28);
}

html.user-theme-dark .transfer-sign-preview-modal__frame {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

html.user-theme-dark .attendance-action {
    background: rgba(24, 31, 43, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

html.user-theme-dark .attendance-action--entry {
    background: linear-gradient(180deg, rgba(46, 163, 109, 0.18), rgba(24, 31, 43, 0.96));
    border-color: rgba(46, 163, 109, 0.26);
}

html.user-theme-dark .attendance-action--entry i,
html.user-theme-dark .attendance-action--entry strong,
html.user-theme-dark .history-item__type--entry,
html.user-theme-dark .request-status--approved {
    color: #7ee0aa;
}

html.user-theme-dark .attendance-action--exit {
    background: linear-gradient(180deg, rgba(46, 125, 244, 0.18), rgba(24, 31, 43, 0.96));
    border-color: rgba(46, 125, 244, 0.26);
}

html.user-theme-dark .attendance-action--exit i,
html.user-theme-dark .attendance-action--exit strong,
html.user-theme-dark .history-item__type--exit {
    color: #9ec9ff;
}

html.user-theme-dark .request-status--pending {
    color: #ffd27c;
}

html.user-theme-dark .request-status--rejected,
html.user-theme-dark .user-chip--danger,
html.user-theme-dark .user-toast--error {
    color: #ff9f98;
}

html.user-theme-dark .user-chip--success,
html.user-theme-dark .user-toast--success {
    color: #7ee0aa;
}

html.user-theme-dark .user-chip--warning {
    color: #ffd27c;
}

html.user-theme-dark .user-modal {
    background: rgba(5, 10, 16, 0.7);
}

@media (max-width: 380px) {
    .attendance-actions,
    .user-stats {
        grid-template-columns: 1fr;
    }

    .transfer-read-card__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-sheet__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .profile-sheet__row:nth-child(-n+2) {
        border-top: 1px solid rgba(24, 44, 73, 0.08);
        padding-top: 10px;
    }

    .profile-sheet__row:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .user-app-topbar {
        gap: 8px;
    }

    .user-auth-topbar {
        margin-bottom: 8px;
    }

    .user-app-brand__copy span {
        display: none;
    }

    .user-pwa-pill {
        padding-inline: 10px;
    }

    .user-pwa-pill__label {
        max-width: 66px;
    }

    .user-requirements-modal__item {
        flex-direction: column;
    }

    .user-requirements-modal__item span {
        min-width: 0;
    }

    .user-bottom-nav {
        padding-inline: 8px;
    }

    .user-bottom-nav__item span {
        font-size: 0.66rem;
    }
}

/* ───────────────────────────────────────────────────
   Admin Transfers – Mobile form view
   ─────────────────────────────────────────────────── */

.at-date-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.at-date-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--user-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
    font: 700 0.82rem/1 "Barlow", system-ui, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.at-date-bar__btn i {
    font-size: 1.1rem;
    color: var(--user-accent);
}

.at-date-bar__hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.at-date-bar__nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.at-date-bar__arrow,
.at-date-bar__today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--user-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
    font: 700 0.78rem/1 "Barlow", system-ui, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.at-date-bar__arrow i {
    font-size: 1.2rem;
}

.at-date-bar__today {
    background: var(--user-accent-soft);
    border-color: rgba(46, 125, 244, 0.28);
    color: var(--user-accent);
}

.at-record-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.at-record-nav__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--user-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.at-record-nav__arrow i {
    font-size: 1.4rem;
}

.at-record-nav__counter {
    color: var(--user-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.at-record-nav__counter strong {
    color: var(--user-text);
    font-size: 0.92rem;
}

.at-form-card .user-card__body {
    padding: 14px 14px 10px;
}

.at-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.at-field {
    display: grid;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(24, 44, 73, 0.06);
}

.at-field--full {
    grid-column: 1 / -1;
}

.at-field--narrow {
    max-width: 100px;
}

.at-field label {
    color: var(--user-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.at-label--desde {
    color: var(--user-success) !important;
}

.at-label--hasta {
    color: var(--user-danger) !important;
}

.at-input,
.at-select {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--user-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--user-text);
    font: 600 0.86rem/1.3 "Barlow", system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.at-select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.at-input:focus,
.at-select:focus {
    outline: none;
    border-color: rgba(46, 125, 244, 0.5);
    box-shadow: 0 0 0 3px rgba(46, 125, 244, 0.1);
}

.at-input[readonly] {
    opacity: 0.6;
    cursor: default;
}

.at-empty {
    padding: 18px;
    border-radius: var(--user-radius-lg);
    border: 1px dashed rgba(24, 44, 73, 0.12);
    background: rgba(255, 255, 255, 0.52);
    color: var(--user-muted);
    text-align: center;
    font-weight: 600;
}

/* Bottom action bar for admin transfers */
.at-action-bar {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    transform: translateX(-50%);
    width: min(calc(100vw - 18px), 540px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border-radius: 28px;
    border: 1px solid rgba(24, 44, 73, 0.08);
    background: rgba(248, 250, 253, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: var(--user-shadow);
}

.at-action-bar__item {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-height: 56px;
    padding: 8px 4px;
    border-radius: 16px;
    border: 0;
    background: transparent;
    color: var(--user-muted);
    font: 700 0.62rem/1 "Barlow", system-ui, sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.at-action-bar__item i {
    font-size: 1.28rem;
    color: currentColor;
}

.at-action-bar__item:active {
    background: var(--user-accent-soft);
    color: var(--user-text);
}

.at-action-bar__item--danger {
    color: var(--user-danger);
}

/* Search modal additions */
.at-modal-title {
    margin: 0 0 12px;
    font-size: 0.96rem;
    font-weight: 700;
}

.at-search-results {
    display: grid;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
}

.at-search-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--user-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--user-text);
    text-align: left;
    cursor: pointer;
    font: 600 0.84rem/1.3 "Barlow", system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
}

.at-search-item strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
}

.at-search-item span {
    color: var(--user-muted);
    font-size: 0.76rem;
}

.at-search-empty {
    padding: 14px;
    text-align: center;
    color: var(--user-muted);
    font-weight: 600;
}

/* Dark theme overrides for admin transfers */
html.user-theme-dark .at-date-bar__btn,
html.user-theme-dark .at-date-bar__arrow,
html.user-theme-dark .at-record-nav__arrow,
html.user-theme-dark .at-action-bar,
html.user-theme-dark .at-search-item {
    background: rgba(20, 27, 38, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--user-text) !important;
}

html.user-theme-dark .at-date-bar__today {
    background: rgba(46, 125, 244, 0.18) !important;
    border-color: rgba(46, 125, 244, 0.3) !important;
    color: #9ec9ff !important;
}

html.user-theme-dark .at-input,
html.user-theme-dark .at-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--user-text) !important;
}

html.user-theme-dark .at-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
}

html.user-theme-dark .at-empty {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--user-muted) !important;
}

html.user-theme-dark .at-action-bar__item--danger {
    color: #ff9f98 !important;
}

@media (max-width: 380px) {
    .at-form-grid {
        grid-template-columns: 1fr;
    }

    .at-field--narrow {
        max-width: none;
    }

    .at-date-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .at-date-bar__nav {
        justify-content: center;
    }
}
