@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #172235;
    --muted: #667085;
    --subtle: #f4f6f8;
    --surface: #ffffff;
    --line: #e4e8ee;
    --navy: #12263f;
    --navy-deep: #0c1b2d;
    --teal: #0f766e;
    --teal-dark: #0b5f59;
    --teal-soft: #e5f4f2;
    --danger: #c24145;
    --header-height: 68px;
    --radius: 8px;
    --shadow: 0 10px 28px rgba(22, 34, 53, 0.07);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
    background: #f6f8fa;
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }


h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    border-radius: 0 !important;
    background: var(--surface);
    color: var(--ink);
}

.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6 { margin: 0; color: inherit; }
.card-body { padding: 20px; }

.bg-primary, .bg-header-primary {
    background: var(--navy) !important;
    color: #fff !important;
}

.bg-footer-primary { background: var(--navy-deep) !important; }

.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #63bdb5;
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.btn-primary, .btn-bg-primary {
    border-color: var(--teal) !important;
    background: var(--teal) !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus,
.btn-bg-primary:hover, .btn-bg-primary:focus {
    border-color: var(--teal-dark) !important;
    background: var(--teal-dark) !important;
}

.btn-success { border-color: #21866f; background: #21866f; }
.btn-warning { border-color: #d59a2d; background: #d59a2d; color: #1f2937; }
.btn-danger { border-color: var(--danger); background: var(--danger); }
.btn-dark { border-color: #344054; background: #344054; }

.form-label {
    margin-bottom: 6px;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control, .form-select {
    min-height: 40px;
    border-color: #d5dce5;
    border-radius: 6px;
    color: var(--ink);
}

.form-control::placeholder { color: #98a2b3; }

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8fafb;
    --bs-table-hover-bg: #f0f7f6;
    margin-bottom: 0;
    color: var(--ink);
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    border-bottom-color: var(--line);
}

.table thead th {
    background: #f7f9fb;
    color: #475467;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.attendance-table {
    width: 100%;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    vertical-align: middle;
}

.attendance-table th, .attendance-table td {
    height: 48px;
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.attendance-table th:last-child, .attendance-table td:last-child { border-right: 0; }
.attendance-table tbody tr:last-child td { border-bottom: 0; }

.attendance-table th {
    height: auto;
    background: #f7f9fb;
    color: #475467;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.attendance-table .image-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.attendance-image {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

.badge {
    padding: 0.4em 0.65em;
    border-radius: 999px;
    font-weight: 700;
}

.alert {
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 6px;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.dropdown-item { padding: 9px 14px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--teal-soft); color: var(--ink); }

.object-fit-cover {
    width: 70%;
    height: auto;
    border-radius: 6px;
    background: var(--subtle);
    object-fit: contain;
}

.attendance-details-card, .attendance-image-card { min-height: 250px; }

.attendance-image-card .card-body, .view-attendance-image-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.view-attendance-image {
    width: auto;
    height: 170px;
    border-radius: 6px;
    background: var(--subtle);
    object-fit: contain;
}

.view-attendance-map {
    height: 400px;
    margin-bottom: 25px;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.animate-fade-in { animation: fadeIn 360ms ease-out both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   THHRMS UI — self-authored layout grid, utilities, and components.
   No external CSS/JS framework (no Bootstrap). Class names are kept
   compatible with existing page markup so every page renders through
   this system without a page-by-page markup rewrite.
   =================================================================== */

/* Spacing scale: 0=0, 1=.25rem, 2=.5rem, 3=1rem, 4=1.5rem, 5=3rem */
:root {
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 3rem;
}

/* Containers */
.container, .container-fluid {
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
}

.container { max-width: 1140px; }

/* Grid (flex-based 12 column system) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -12px;
}

.row > * {
    padding-inline: 12px;
    width: 100%;
}

[class^="col-"], [class*=" col-"] { flex: 0 0 auto; }

.col-1  { width: 8.3333%; }  .col-2  { width: 16.6667%; }
.col-3  { width: 25%; }      .col-4  { width: 33.3333%; }
.col-5  { width: 41.6667%; } .col-6  { width: 50%; }
.col-7  { width: 58.3333%; } .col-8  { width: 66.6667%; }
.col-9  { width: 75%; }      .col-10 { width: 83.3333%; }
.col-11 { width: 91.6667%; } .col-12 { width: 100%; }

@media (min-width: 576px) {
    .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.3333%; }
    .col-sm-6 { width: 50%; } .col-sm-8 { width: 66.6667%; }
    .col-sm-10 { width: 83.3333%; } .col-sm-12 { width: 100%; }
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; } .col-md-4 { width: 33.3333%; }
    .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; }
    .col-md-9 { width: 75%; } .col-md-12 { width: 100%; }
    .offset-md-2 { margin-inline-start: 16.6667%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.3333%; }
    .col-lg-5 { width: 41.6667%; } .col-lg-6 { width: 50%; }
    .col-lg-8 { width: 66.6667%; }
    .d-lg-flex { display: flex !important; }
}

/* Display + flex utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-inline-block { display: inline-block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }

/* Spacing utilities (margin / padding on the 0-5 scale) */
.m-0 { margin: 0 !important; }
.mx-auto { margin-inline: auto !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.me-1 { margin-inline-end: var(--space-1) !important; }
.me-2 { margin-inline-end: var(--space-2) !important; }
.me-3 { margin-inline-end: var(--space-3) !important; }
.ms-1 { margin-inline-start: var(--space-1) !important; }
.ms-2 { margin-inline-start: var(--space-2) !important; }
.ms-3 { margin-inline-start: var(--space-3) !important; }
.p-0 { padding: 0 !important; }
.p-4 { padding: var(--space-4) !important; }
.py-2 { padding-block: var(--space-2) !important; }
.py-3 { padding-block: var(--space-3) !important; }
.py-4 { padding-block: var(--space-4) !important; }
.px-3 { padding-inline: var(--space-3) !important; }

/* Text + misc utilities */
.text-center { text-align: center !important; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.text-muted { color: var(--muted) !important; }
.text-white { color: #fff !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fw-bold { font-weight: 700 !important; }
.small { font-size: 0.82rem; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100, .min-vh-200 { min-height: 100vh !important; }
.shadow { box-shadow: var(--shadow) !important; }
.rounded { border-radius: 6px !important; }
.rounded-circle { border-radius: 50% !important; }
.img-fluid { max-width: 100%; height: auto; }
.display-6 {
    font-family: 'Manrope', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ink);
}
.bg-light { background: var(--subtle) !important; }
.bg-success { background: #21866f !important; color: #fff !important; }
.bg-danger { background: var(--danger) !important; color: #fff !important; }
.bg-warning { background: #d59a2d !important; color: #1f2937 !important; }
.bg-dark { background: #344054 !important; color: #fff !important; }

/* Buttons: sizes, outline variant, close icon */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    line-height: 1.2;
    color: #fff;
    cursor: pointer;
}
.btn-sm { padding: 5px 11px; font-size: 0.78rem; border-radius: 5px; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-outline-secondary {
    background: transparent !important;
    border-color: #c7cfda !important;
    color: var(--ink) !important;
}
.btn-outline-secondary:hover { background: var(--subtle) !important; }
.btn-secondary { background: #667085; border-color: #667085; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-close {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    position: relative;
}
.btn-close::before {
    content: '\00d7';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
}
.btn-close:hover { opacity: 1; }

/* Alerts: variants + dismissible */
.alert { padding: 12px 16px; margin-bottom: var(--space-3); }
.alert-dismissible { position: relative; padding-inline-end: 42px; }
.alert-dismissible .btn-close { position: absolute; top: 10px; inset-inline-end: 12px; }
.alert-success { background: var(--teal-soft); color: var(--teal-dark); }
.alert-danger { background: #fbe9e9; color: #8a2a2d; }
.alert-info { background: #e8f1fb; color: #1c4e80; }
.alert-warning { background: #fdf3dc; color: #8a5a10; }

/* Badge colour variants */
.badge.bg-danger { background: var(--danger) !important; color: #fff !important; }
.badge.bg-primary { background: var(--navy) !important; color: #fff !important; }
.badge.bg-success { background: #21866f !important; color: #fff !important; }

/* Tables: bordered / striped / hover / responsive */
.table { width: 100%; border-collapse: collapse; }
.table-bordered { border: 1px solid var(--line); }
.table-bordered th, .table-bordered td { border: 1px solid var(--line); }
.table-striped tbody tr:nth-of-type(odd) { background: var(--bs-table-striped-bg, #f8fafb); }
.table-hover tbody tr:hover { background: var(--bs-table-hover-bg, #f0f7f6); }
.table-responsive { width: 100%; overflow-x: auto; }

/* Form checks */
.form-check { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}
.form-check-label { color: var(--ink); }

/* Dropdown extras */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    display: none;
    min-width: 12rem;
    margin-top: 6px;
    padding: 6px;
    background: var(--surface);
    list-style: none;
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { left: auto; right: 0; }
.dropdown-item {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.dropdown-item.active { background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }
.dropdown-divider { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }

/* Modals (custom vanilla implementation, see assets/app.js) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
    overflow-y: auto;
}
.modal.show { display: block; }
.modal-dialog {
    max-width: 560px;
    margin: 8vh auto;
    padding: 0 16px;
}
.modal-content {
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 25px 60px rgba(12, 27, 45, 0.28);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-header h5, .modal-header h4 { margin: 0; }
.modal-body { padding: 20px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(12, 20, 33, 0.55);
}
body.modal-open { overflow: hidden; }

/* Nav tabs */
.nav-tabs {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line);
}
.nav-tabs.card-header-tabs { margin: -4px -4px -1px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.tab-pane { display: none; }
.tab-pane.show.active { display: block; }

/* List group */
.list-group { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.list-group-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-top: 0;
}
.list-group-item:first-child { border-top: 1px solid var(--line); border-radius: 6px 6px 0 0; }
.list-group-item:last-child { border-radius: 0 0 6px 6px; }

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.15em;
    border: 0.18em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-border-sm { width: 0.85rem; height: 0.85rem; border-width: 0.15em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Breadcrumbs */
.breadcrumb-nav {
    margin: 0 0 var(--space-3);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
}
.breadcrumb-item { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb-item a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb-item a:hover { color: var(--teal-dark); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: #c7cfda; }
.breadcrumb-item.active { color: var(--ink); font-weight: 700; }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
}
.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.page-item .page-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.page-item.active .page-link {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}
.page-item.disabled .page-link {
    color: #c7cfda;
    pointer-events: none;
}


@media (max-width: 576px) {
    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }
    .object-fit-cover { display: none; }

    .table-responsive {
        border: 1px solid var(--line);
        border-radius: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* RTL (Arabic) layout support */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Noto Kufi Arabic', 'DM Sans', sans-serif;
}

[dir="rtl"] .dropdown-menu { text-align: right; }

[dir="rtl"] .attendance-table th,
[dir="rtl"] .attendance-table td {
    text-align: center;
}

/* Shared UI finishing: native controls, readable tables and viewport menus. */
.form-control, .form-select { display:block; width:100%; padding:10px 12px; border:1px solid #d5dce5; background-color:var(--surface); }
.form-label { display:inline-block; margin-bottom:7px; }
textarea.form-control { min-height:110px; resize:vertical; }
.form-control:disabled, .form-select:disabled { background:var(--subtle); color:var(--muted); cursor:not-allowed; }
.form-control[type="file"] { padding:7px; }
.form-control::file-selector-button { border:0; border-radius:4px; padding:5px 10px; margin-inline-end:10px; background:var(--teal-soft); color:var(--teal-dark); }
.table-responsive { border:1px solid var(--line); border-radius:8px; overscroll-behavior-x:contain; }
.table-responsive > .table { border:0; }
.table > :not(caption) > * > * { border:0; border-bottom:1px solid var(--line); text-align:start; vertical-align:middle; }
.table tbody tr:last-child > * { border-bottom:0; }
.table tbody td { line-height:1.6; }
.table td .btn { margin-block:2px; }
.table thead th { padding-block:14px; }
.dropdown-menu.dropdown-floating { position:fixed; right:auto; bottom:auto; margin:0; overflow-y:auto; z-index:1080; }
.dropdown-item { text-align:start; white-space:normal; }
button:focus-visible, a:focus-visible { outline:3px solid #69aaa4; outline-offset:3px; }
.hrms-auth-page { min-height:100vh; min-height:100dvh; display:grid; place-items:center; padding:32px 18px; background:radial-gradient(ellipse at top left, #345665 0%, transparent 60%),linear-gradient(135deg,#172833,#274250 55%,#182b36); }
.hrms-auth-shell { width:min(100%,440px); }
.hrms-auth-brand { display:flex; align-items:center; justify-content:center; gap:12px; color:white; font-family:Manrope,sans-serif; font-size:20px; font-weight:800; margin-bottom:24px; }
.hrms-auth-brand img { width:52px; height:52px; object-fit:contain; border-radius:12px; background:white; padding:5px; }
.hrms-auth-card { border:1px solid #dce4e9; border-radius:16px; background:#fff; overflow:hidden; box-shadow:0 24px 65px #05172055; }
.hrms-auth-heading { padding:30px 32px 24px; background:linear-gradient(135deg,#fbfcfd,#f1f6f8); border-bottom:1px solid var(--line); }
.hrms-auth-heading h1 { font-size:26px; margin:0 0 8px; }
.hrms-auth-heading p { margin:0; color:var(--muted); }
.hrms-auth-heading .hrms-auth-eyebrow { margin-bottom:12px; color:var(--teal); font-size:11px; font-weight:700; letter-spacing:.1em; }
.hrms-auth-body { padding:28px 32px; }
.hrms-auth-submit { min-height:46px; margin-top:8px; }
.hrms-auth-reset { text-align:center; margin:20px 0 0; font-size:13px; }
.hrms-auth-footer { text-align:center; color:#c1d0d8; font-size:12px; line-height:1.8; margin-top:24px; }
.hrms-password-field button { display:block; margin-inline-start:auto; margin-top:6px; padding:4px 0; border:0; background:transparent; color:var(--teal); font-size:12px; cursor:pointer; }
.hrms-password-field button[aria-pressed="true"] { text-decoration:underline; font-weight:700; }
@media (max-width:576px) {
    .hrms-auth-heading, .hrms-auth-body { padding:24px; }
    .card-header.d-flex { flex-wrap:wrap; gap:12px; }
    .form-control, .form-select { font-size:16px; }
}

/* Arabic and shared icon layout. Keep icon fonts separate from text fonts. */
[dir="rtl"] body { line-height:1.85; }
[dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea,
[dir="rtl"] .display-6 { font-family:'Noto Kufi Arabic',Tahoma,sans-serif; }
[dir="rtl"] .table thead th, [dir="rtl"] .hrms-auth-eyebrow { letter-spacing:normal; text-transform:none; }
[dir="rtl"] .fa-arrow-right, [dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-right, [dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-angle-right, [dir="rtl"] .fa-angle-left { transform:scaleX(-1); }
[dir="rtl"] .alert { border-left:0; border-right:4px solid currentColor; }
input[type="email"], input[type="tel"], input[type="url"], input[autocomplete="one-time-code"],
kbd, .bidi-ltr { direction:ltr; unicode-bidi:isolate; }
.btn > i, .dropdown-item > i { display:inline-block; width:1.25em; flex-shrink:0; text-align:center; font-size:1em; line-height:1; }
.dropdown-item > i { margin-inline-end:8px; color:var(--teal-dark); }
.dropdown-item.text-danger > i { color:inherit; }
.table td .btn-sm { min-height:34px; }
.form-select { padding-inline-end:30px; }
.hrms-auth-language { display:flex; justify-content:center; gap:16px; margin-bottom:20px; }
.hrms-auth-language a { color:#e1ecf0; text-decoration:none; padding:6px 10px; border-radius:6px; }
.hrms-auth-language a[aria-current="true"] { background:#ffffff1c; text-decoration:underline; text-underline-offset:5px; }
.otp-countdown { display:grid; gap:8px; margin-bottom:18px; color:var(--muted); font-size:.875rem; }
.otp-countdown progress { width:100%; height:8px; accent-color:var(--teal); }
@media (min-width:992px) { .d-lg-flex { display:flex !important; } }

/* Components used by legacy forms but absent from the shared stylesheet. */
.form-text { display:block; margin-top:6px; color:var(--muted); font-size:.82rem; line-height:1.7; }
.form-group { margin-bottom:16px; }
.form-control-sm, .form-select-sm { min-height:36px; padding:7px 10px; font-size:.85rem; }
.form-control-lg, .form-select-lg { min-height:48px; padding:12px 14px; font-size:1.05rem; }
.form-control-color { width:64px; min-height:42px; padding:5px; cursor:pointer; }
.input-group { display:flex; align-items:stretch; width:100%; }
.input-group > .form-control, .input-group > .form-select { flex:1 1 auto; width:1%; min-width:0; }
.input-group > :first-child { border-start-end-radius:0; border-end-end-radius:0; }
.input-group > :last-child { border-start-start-radius:0; border-end-start-radius:0; }
.input-group > :not(:first-child):not(:last-child) { border-radius:0; }
.btn-group { display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; }
.btn-outline-primary { color:var(--teal-dark); border-color:var(--teal); background:transparent; }
.btn-outline-primary:hover { color:var(--teal-dark); background:var(--teal-soft); }
.btn-info { color:#fff; background:#176b87; border-color:#176b87; }
.btn-info:hover { color:#fff; background:#12566d; }
.text-primary { color:var(--teal-dark) !important; }
.my-4 { margin-block:var(--space-4) !important; }
.p-3 { padding:var(--space-3) !important; }
.mb-1 { margin-bottom:var(--space-1) !important; }
.align-middle { vertical-align:middle !important; }
.form-switch .form-check-input { width:36px; height:20px; flex-shrink:0; appearance:none; border:1px solid #9aa9b7; border-radius:20px; background:#e4e8ee; position:relative; cursor:pointer; }
.form-switch .form-check-input::before { content:''; position:absolute; width:14px; height:14px; inset-block-start:2px; inset-inline-start:2px; background:#fff; border-radius:50%; box-shadow:0 1px 3px #17223540; }
.form-switch .form-check-input:checked { background:var(--teal); border-color:var(--teal); }
.form-switch .form-check-input:checked::before { inset-inline-start:18px; }
