/* KANO overrides on Adminator 2026 */
:root[data-theme=light] {
    --primary: #0077B6;
    --primary-light: #0096C7;
    --primary-dark: #023E8A;
    --primary-soft: #E8F7FC;
    --primary-ring: rgba(0, 119, 182, 0.28);
    --info: #00B4D8;
    --bg-body: #F0FBFF;
}

:root[data-theme=dark] {
    --primary: #48CAE4;
    --primary-light: #90E0EF;
    --primary-dark: #0096C7;
    --primary-soft: rgba(0, 180, 216, 0.16);
}

:root {
    --font-sans: 'Manrope', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

html, body, .shell, .d-sidebar, .d-topbar, .content, .d-footer, .dd-menu,
.btn, .input, .select, .textarea, select.input, textarea.input,
.nav-link, .nav-badge, .table, .tag, .crumbs, .check, .flash,
.dt-container, .dt-search input, .dt-length select, .pagination {
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6,
.brand-name, .hero-title, .card-title, .modal-title, .section-h,
.auth-brand .name, .auth-aside h1, .auth-card h2,
.error-code, .error-title, .kpi-value {
    font-family: var(--font-display);
}

/* Keep Laravel flash/forms readable inside Adminator cards */
.flash {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.flash--ok {
    background: color-mix(in srgb, var(--success, #16a34a) 12%, white);
    color: #166534;
    border: 1px solid color-mix(in srgb, var(--success, #16a34a) 25%, white);
}
.flash--err {
    background: color-mix(in srgb, var(--danger, #dc2626) 10%, white);
    color: #991b1b;
    border: 1px solid color-mix(in srgb, var(--danger, #dc2626) 22%, white);
}

.kano-table-wrap {
    overflow-x: auto;
}

.kano-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-form .input-error {
    color: #dc2626;
    font-size: 12.5px;
    margin-top: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; }
}
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section {
    margin-bottom: 28px;
}
.form-section h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}
.form-section select.input,
select.input {
    appearance: none;
    background-color: var(--bg-card);
}
.form-section textarea.input {
    min-height: 88px;
    resize: vertical;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination > * {
    display: inline-flex;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--t-base);
    font-size: 13px;
    text-decoration: none;
}
.pagination .active span,
.pagination [aria-current="page"] span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .disabled span {
    opacity: 0.45;
    pointer-events: none;
}
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
@media (max-width: 980px) {
    .col-4, .col-8, .col-6 { grid-column: span 12; }
}

/* Employee detail - flat panels, no KPI-card clutter */
.emp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 980px) {
    .emp-split { grid-template-columns: 1fr; }
}
.emp-split > .card,
.emp-split__col {
    min-width: 0;
}
.emp-split__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.emp-panel-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.emp-panel-sub {
    color: var(--t-muted);
    font-size: 13px;
    margin: 0 0 18px;
    line-height: 1.45;
}
.emp-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}
.emp-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--primary-light, #0096C7), var(--primary-dark, #023E8A));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}
.emp-profile-head__text {
    min-width: 0;
}
.emp-profile-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 2px;
    color: var(--t-base);
    line-height: 1.2;
}
.emp-profile-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--t-muted);
}
.emp-profile-meta span {
    margin: 0 4px;
    color: var(--t-light);
}
.emp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.emp-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary-dark, var(--primary));
}
.emp-chip--soft {
    background: var(--bg-muted, #f1f5f9);
    color: var(--t-muted);
}
.emp-group {
    margin-bottom: 20px;
}
.emp-group:last-child { margin-bottom: 0; }
.emp-group-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-light);
    margin: 0 0 10px;
}
.emp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.emp-field {
    background: var(--bg-muted, #f8fafc);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 0;
}
.emp-field--wide {
    grid-column: 1 / -1;
}
.emp-field__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--t-light);
    margin-bottom: 4px;
}
.emp-field__value {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-base);
    word-break: break-word;
    line-height: 1.35;
}
@media (max-width: 640px) {
    .emp-fields { grid-template-columns: 1fr; }
}
.emp-dl {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 8px 16px;
    margin: 0;
    font-size: 13.5px;
}
.emp-dl dt {
    margin: 0;
    color: var(--t-muted);
}
.emp-dl dd {
    margin: 0;
    color: var(--t-base);
    word-break: break-word;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--t-muted);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover {
    background: var(--bg-muted, #f1f5f9);
    color: var(--primary);
    border-color: var(--border-soft);
}
.icon-btn--danger:hover {
    color: var(--danger, #ef4444);
    background: color-mix(in srgb, var(--danger, #ef4444) 8%, transparent);
}
.emp-salary-table .kano-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}
.emp-salary-table .kano-actions form {
    display: inline-flex;
}
.bearer-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 9px 0 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.bearer-chip svg {
    flex-shrink: 0;
}
.bearer-chip--employee {
    background: color-mix(in srgb, #0ea5e9 14%, transparent);
    color: #0369a1;
}
.bearer-chip--company {
    background: color-mix(in srgb, #8b5cf6 14%, transparent);
    color: #6d28d9;
}
:root[data-theme=dark] .bearer-chip--employee {
    background: color-mix(in srgb, #38bdf8 18%, transparent);
    color: #7dd3fc;
}
:root[data-theme=dark] .bearer-chip--company {
    background: color-mix(in srgb, #a78bfa 18%, transparent);
    color: #c4b5fd;
}
.emp-salary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.emp-salary-table thead th {
    padding: 6px 0 8px;
    font-size: 10.5px;
}
.emp-salary-table tbody td {
    padding: 6px 0;
    font-size: 12.5px;
    vertical-align: middle;
}
.emp-salary-table .kind-row td {
    padding-top: 10px;
    padding-bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-light);
    background: transparent;
    border-bottom: none;
}
.emp-salary-table .kind-row:first-child td {
    padding-top: 2px;
}
.emp-salary-table .cell-name {
    font-size: 12.5px;
}
.emp-salary-table .bearer-chip {
    height: 22px;
    padding: 0 7px 0 5px;
    font-size: 11px;
    gap: 4px;
}
.emp-salary-table .icon-btn {
    width: 28px;
    height: 28px;
}
.emp-salary-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    padding: 0;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-muted, #f8fafc);
}
.emp-salary-summary__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-right: 1px solid var(--border-soft);
    min-width: 0;
}
.emp-salary-summary__item:last-child {
    border-right: none;
}
.emp-salary-summary__item--accent {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.emp-salary-summary__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--t-light);
}
.emp-salary-summary__value {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--t-base);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.emp-salary-summary__value--muted {
    font-weight: 600;
    color: var(--t-muted);
}
.emp-salary-summary__value--accent {
    color: var(--primary-dark, var(--primary));
}
.slip-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.slip-summary .emp-salary-summary__item {
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.slip-summary .emp-salary-summary__item:nth-child(2n) {
    border-right: none;
}
.slip-summary .emp-salary-summary__item:nth-last-child(-n+2) {
    border-bottom: none;
}
@media (max-width: 900px) {
    .emp-salary-summary,
    .slip-summary {
        grid-template-columns: 1fr;
    }
    .emp-salary-summary__item,
    .slip-summary .emp-salary-summary__item,
    .slip-summary .emp-salary-summary__item:nth-last-child(-n+2) {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }
    .emp-salary-summary__item:last-child,
    .slip-summary .emp-salary-summary__item:last-child {
        border-bottom: none;
    }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}
.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--t-muted);
}
.lang-switch__btn:hover {
    color: var(--primary);
}
.lang-switch__btn.is-active {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary-dark, var(--primary));
}
.auth-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(420px, 100%);
    margin-bottom: 8px;
}
.kano-modal[hidden] { display: none !important; }
.kano-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.kano-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.kano-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(90vh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.kano-combo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.kano-combo__picked {
    margin: 0;
    font-size: 12px;
    color: var(--t-muted);
}
.kano-combo__picked strong {
    color: var(--t-base);
    font-weight: 650;
}
.kano-combo__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 220px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-body);
}
.kano-combo__option {
    appearance: none;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--t-base);
    font: inherit;
    font-size: 12.5px;
    line-height: 1.35;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.kano-combo__option:hover,
.kano-combo__option.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark, var(--primary));
}
.kano-combo__option[hidden] { display: none; }
.kano-combo__empty {
    margin: 0;
    padding: 10px 8px;
    font-size: 12px;
    color: var(--t-muted);
}
.kano-modal__panel > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(90vh, 760px);
}
.kano-modal__panel .modal-body {
    overflow-y: auto;
}
.kano-modal__panel .modal-body .field { margin-bottom: 14px; }
.kano-modal__panel .modal-body .field:last-child { margin-bottom: 0; }
.kano-modal__panel .modal-head .kano-actions {
    flex-shrink: 0;
}
.kano-modal__hint {
    font-size: 12.5px;
    color: var(--t-muted);
    margin: 0 0 14px;
    line-height: 1.45;
}

/* Employee attendance calendar */
.att-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.att-pill--ok {
    background: color-mix(in srgb, var(--success, #16a34a) 14%, white);
    color: #166534;
    border: 1px solid color-mix(in srgb, var(--success, #16a34a) 28%, white);
}
.att-today-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 900px) {
    .att-today-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.att-today-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}
.att-today-card__label {
    display: block;
    font-size: 12px;
    color: var(--t-muted);
    margin-bottom: 4px;
}
.att-today-card__value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--t-base);
}
.att-calendar-card .card-head { margin-bottom: 12px; }
.att-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: var(--t-muted);
}
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.att-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.att-dot--present { background: #10b981; }
.att-dot--late { background: #f59e0b; }
.att-dot--leave { background: #0ea5e9; }
.att-dot--absent { background: #ef4444; }
.att-dot--holiday { background: #8b5cf6; }
.att-cal__weekdays,
.att-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}
.att-cal__weekdays { margin-bottom: 8px; }
.att-cal__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--t-muted);
    padding: 4px 0;
}
.att-cal__weekday.is-weekend { color: #ef4444; }
.att-day {
    min-height: 92px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 10px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.att-day.is-outside {
    opacity: 0.38;
    background: var(--bg-muted, #f8fafc);
}
.att-day.is-weekend:not(.is-outside) {
    background: color-mix(in srgb, #ef4444 4%, white);
}
.att-day.is-today {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}
.att-day.is-present { border-left: 3px solid #10b981; }
.att-day.is-late { border-left: 3px solid #f59e0b; }
.att-day.is-leave { border-left: 3px solid #0ea5e9; }
.att-day.is-absent { border-left: 3px solid #ef4444; }
.att-day.is-holiday,
.att-day.is-half_day { border-left: 3px solid #8b5cf6; }
.att-day__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.att-day__num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--t-base);
}
.att-day__badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--t-muted);
    white-space: nowrap;
}
.att-day__times {
    font-size: 11.5px;
    color: var(--t-muted);
    line-height: 1.35;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.att-day__empty {
    font-size: 11px;
    color: var(--t-light);
}
.att-month-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
@media (max-width: 700px) {
    .att-cal__weekdays,
    .att-cal__grid { gap: 4px; }
    .att-day { min-height: 72px; padding: 8px; }
    .att-day__badge { display: none; }
    .att-month-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.att-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-muted, #f8fafc);
    font-size: 12.5px;
    color: var(--t-muted);
}
.att-stat strong {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--t-base);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
}
@media (max-width: 800px) {
    .profile-form-grid { grid-template-columns: 1fr; }
}
.profile-form-grid .span-2 { grid-column: 1 / -1; }
.profile-readonly {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: var(--bg-muted, #f8fafc);
    color: var(--t-muted);
    font-size: 14px;
}
.kano-modal .profile-readonly {
    margin: 0;
    padding: 7px 10px;
    font-size: 12.5px;
    border-radius: 7px;
}
.kano-modal .input:disabled,
.kano-modal select.input:disabled {
    background: var(--bg-muted, #f8fafc);
    color: var(--t-muted);
    cursor: default;
}

.tag.t-success {
    background: color-mix(in srgb, var(--success, #16a34a) 14%, white);
    color: #166534;
}
.tag.t-danger {
    background: color-mix(in srgb, var(--danger, #dc2626) 12%, white);
    color: #991b1b;
}
.tag.t-muted {
    background: var(--bg-muted, #f1f5f9);
    color: var(--t-muted);
}
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
}
.settings-tile {
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
}
.settings-tile:hover { border-color: var(--primary); }
.settings-tile strong { display: block; font-size: 15px; margin-bottom: 4px; }
.settings-tile span { color: var(--t-muted); font-size: 13px; }
.kpi-card a { color: inherit; text-decoration: none; }

.kano-dt-wrap .dt-container { font-size: 13.5px; }
.kano-dt-wrap .dt-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}
.kano-dt-wrap .dt-search input,
.kano-dt-wrap .dt-length select {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--t-base);
    padding: 8px 10px;
    font-size: 13px;
}
.kano-dt-wrap .dt-info { color: var(--t-muted); font-size: 12.5px; }
.kano-dt-wrap .dt-paging .dt-paging-button {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--t-base);
    margin: 0 2px;
}
.kano-dt-wrap .dt-paging .dt-paging-button.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.kano-dt-wrap table.dataTable thead th { border-bottom: 1px solid var(--border-soft); }
.kano-dt-wrap table.dataTable tbody td { border-bottom: 1px solid var(--border-soft); }
.kano-dt-wrap table.dataTable.no-footer { border-bottom: 0; }
.kano-table-wrap.kano-dt-wrap { overflow-x: auto; }

/* Compact density - xs scale across the shell */
body { font-size: 13px; line-height: 1.45; }
.shell { grid-template-columns: 240px 1fr; }
.content { padding: 16px 18px 18px; }
.d-sidebar { padding: 20px 16px 18px; gap: 18px; }
.brand { padding: 6px 10px 18px; gap: 10px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-logo svg { width: 16px; height: 16px; }
.brand-name { font-size: 14.5px; }
.nav-label { padding: 0 10px 8px; }
.nav-section { gap: 4px; }
.nav-link { font-size: 12.5px; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.nav-link > svg { width: 16px; height: 16px; }
.nav-submenu { margin-left: 16px; padding-left: 12px; }
.nav-submenu a { font-size: 12px; padding: 5px 8px; }
.nav-item-group.is-open .nav-submenu { max-height: 480px; }
.sidebar-footer { padding-top: 16px; }
.crumbs { font-size: 12px; }
.crumbs a {
    color: inherit;
    text-decoration: none;
}
.crumbs a:hover {
    color: var(--primary);
}
@media (max-width: 720px) {
    .crumbs > a {
        display: none;
    }
}
.avatar { width: 28px; height: 28px; font-size: 11px; }

.hero { gap: 16px; margin-bottom: 16px; }
.hero-text .eyebrow { margin-bottom: 6px; }
.hero-title { font-size: clamp(18px, 1.8vw, 22px); margin: 0 0 4px; letter-spacing: -0.02em; }
.hero-sub { font-size: 12.5px; line-height: 1.45; }
.hero-actions { gap: 6px; }

.btn { font-size: 12px; gap: 6px; padding: 5px 10px; border-radius: 7px; }
.btn svg { width: 13px; height: 13px; }
.btn--sm { font-size: 11px; padding: 4px 8px; }
.btn--lg, .auth-submit.btn { font-size: 13px; padding: 8px 12px; }
.btn--icon { padding: 5px; }

.card { padding: 14px; border-radius: 10px; }
.card-head { gap: 10px; margin-bottom: 12px; padding: 0 0 10px; }
.card-title { font-size: 14px; }
.kpi-grid { gap: 10px; margin-bottom: 14px; }
.kpi-card { gap: 8px; padding: 12px 14px; border-radius: 10px; }
.kpi-label { font-size: 11.5px; }
.kpi-value { font-size: 24px; }
.kpi-value sup { font-size: 12px; }
.kpi-icon { width: 26px; height: 26px; border-radius: 7px; }
.kpi-compare { font-size: 11px; padding-top: 8px; }

.table thead th { font-size: 9.5px; padding: 6px 8px 8px 0; }
.table tbody td { font-size: 12.5px; padding: 7px 8px 7px 0; }
.tag { font-size: 10px; padding: 2px 7px; }

.field, .field-label { gap: 4px; }
.field-label { font-size: 11.5px; }
.input, .select, .textarea, select.input {
    font-size: 12.5px;
    padding: 6px 9px;
    border-radius: 7px;
}
.form-grid, .profile-form-grid { gap: 10px; }
.form-section { margin-bottom: 16px; }
.form-section h3 { font-size: 13px; margin: 0 0 10px; padding-bottom: 8px; }
.form-section textarea.input { min-height: 72px; }
.flash { padding: 8px 12px; font-size: 12.5px; margin-bottom: 12px; border-radius: 8px; }
.kano-actions { gap: 6px; }

.pagination a, .pagination span {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 6px;
}

.settings-grid { gap: 10px; }
.settings-tile { padding: 12px; border-radius: 10px; }
.settings-tile strong { font-size: 13.5px; }
.settings-tile span { font-size: 12px; }

.kano-dt-wrap .dt-container { font-size: 12.5px; }
.kano-dt-wrap .dt-layout-row { gap: 8px; margin: 6px 0; }
.kano-dt-wrap .dt-search input,
.kano-dt-wrap .dt-length select { padding: 5px 8px; font-size: 12px; border-radius: 7px; }
.kano-dt-wrap .dt-info { font-size: 12px; }
.kano-dt-wrap .dt-paging .dt-paging-button { min-width: 28px; height: 28px; border-radius: 6px; }
.kano-dt-wrap table.dataTable thead th { padding: 6px 8px 8px 0; font-size: 9.5px; }
.kano-dt-wrap table.dataTable tbody td { padding: 7px 8px 7px 0; font-size: 12.5px; }

.att-today-strip { gap: 8px; margin-bottom: 12px; }
.att-today-card { padding: 10px 12px; border-radius: 10px; }
.att-today-card__label { font-size: 11px; }
.att-today-card__value { font-size: 16px; }
.att-day { min-height: 68px; padding: 7px; border-radius: 8px; }
.att-day__num { font-size: 12.5px; }
.att-cal__weekdays, .att-cal__grid { gap: 5px; }
.att-stat { padding: 7px 10px; font-size: 12px; }
.att-stat strong { font-size: 14px; }
.att-pill { padding: 4px 10px; font-size: 12px; }

.emp-split { gap: 12px; }
.emp-split__col { gap: 12px; }
.emp-panel-title { font-size: 13.5px; }
.emp-profile-name { font-size: 16px; }
.emp-avatar { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }
.emp-field { padding: 8px 10px; border-radius: 8px; }
.emp-field__value { font-size: 12.5px; }

.profile-readonly { padding: 7px 10px; font-size: 12.5px; }
.kano-modal { padding: 16px; }
.kano-modal__panel { border-radius: 10px; }

.d-topbar .cmd[data-palette-open] { display: none !important; }
.dd-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kano-menu-badge {
    margin-left: auto;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger, #ef4444);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.d-topbar .dd-item {
    align-items: flex-start;
    gap: 10px;
}
.d-topbar .dd-item.is-unread {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.d-topbar .dd-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}
.d-topbar .dd-dot.is-on {
    background: var(--danger, #ef4444);
}
.d-topbar .dd-preview {
    color: var(--t-muted);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
}
.d-topbar .dd-empty {
    padding: 18px 16px;
    color: var(--t-muted);
    font-size: 12.5px;
    text-align: center;
}

.statute-table .input {
    width: 100%;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}
.ter-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 1100px) {
    .ter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}
.ter-table .input {
    min-width: 0;
}
.pph21-flag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--t-muted);
    background: var(--bg-muted, #f3f4f6);
    vertical-align: middle;
}

.emp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.emp-form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}
.emp-form-card {
    margin: 0;
    padding: 14px 16px;
}
.emp-form-card h3 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--t-muted);
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-soft);
}
.emp-form .field-label {
    display: block;
    margin: 0 0 3px;
}
.emp-form .input,
.emp-form select.input,
.emp-form textarea.input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.emp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
}
.emp-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.emp-form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.emp-form-grid .span-all {
    grid-column: 1 / -1;
}
.emp-form-check {
    display: flex;
    align-items: flex-end;
    min-height: 52px;
    padding-bottom: 4px;
}
.emp-form-hint {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--t-muted);
    line-height: 1.35;
}
.emp-form textarea.input {
    min-height: 52px;
}
.emp-form-docs {
    display: grid;
    gap: 10px;
}
.emp-form-doc {
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-muted, #f8fafc);
}
.emp-form-doc__title {
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 8px;
}
@media (max-width: 1100px) {
    .emp-form-grid--3,
    .emp-form-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .emp-form-split,
    .emp-form-grid,
    .emp-form-grid--3,
    .emp-form-grid--4 {
        grid-template-columns: 1fr;
    }
}

.index-filters,
.hero-actions form,
.card-head .kano-actions,
.card-head > form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    width: auto;
    flex: 0 1 auto;
}
.index-filters .input,
.hero-actions .input,
.card-head .input,
.kano-actions .input {
    width: auto;
    min-width: 10.5rem;
    max-width: 16rem;
    flex: 0 1 auto;
}
.card-head input[type="month"].input,
.index-filters input[type="month"].input {
    width: 11.75rem;
    min-width: 11.75rem;
    max-width: 11.75rem;
}
.card-head select.input {
    min-width: 8.5rem;
    max-width: 12rem;
}
.kano-actions--icons {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
}
.btn--icon {
    min-width: 32px;
    justify-content: center;
}
.dt-check {
    width: 36px;
    text-align: center;
}
.dt-check .check,
th.dt-check {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
#payroll-check-all,
.js-payroll-check {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}




