/* ==========================================================================
   Rajadiesel Design System — "Steel & Amber"
   See design-system/MASTER.md for the full rationale. This file is the one
   place project-wide design tokens and shared component styles live, on top
   of AdminLTE 3 / Bootstrap 4 (no framework replacement, no Tailwind).
   ========================================================================== */

:root {
    /* Steel neutrals — cooler/darker than Bootstrap's default gray scale */
    --steel-50:  #F7F8F9;
    --steel-100: #EEF0F2;
    --steel-200: #DEE2E6;
    --steel-300: #CED4DA;
    --steel-400: #ADB5BD;
    --steel-500: #6C757D;
    --steel-600: #495057;
    --steel-700: #343A40;
    --steel-800: #212529;
    --steel-900: #171A1D;

    /* Brand amber — identity/navigation accent only, never a button color */
    --amber-500: #FF6B00;
    --amber-600: #E05F00;

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, .12);
}

/* ---- Sidebar (existing dark/amber identity, kept, now token-driven) ---- */
.main-sidebar {
    background: var(--steel-900) !important;
}

.nav-sidebar .nav-header {
    color: var(--steel-400);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: .72rem;
}

.nav-sidebar .nav-link.active {
    background: var(--amber-500) !important;
    color: #fff !important;
}

.nav-sidebar .nav-link:hover {
    background: rgba(255, 107, 0, .15);
    color: var(--amber-500);
}

.brand-link {
    border-bottom: 1px solid #33383d;
}

[class*=sidebar-light] .brand-link,
[class*=sidebar-light] .user-panel {
    border-color: #33383d;
}

/* ---- Content area / page header ---------------------------------------- */
.content-wrapper {
    background: var(--steel-50);
}

.content-header h1 {
    font-weight: 600;
    color: var(--steel-800);
    border-left: 4px solid var(--amber-500);
    padding-left: .65rem;
}

.content-header .wo-page-subtitle {
    padding-left: calc(.65rem + 4px);
    margin-top: .25rem;
}

/* ---- Cards --------------------------------------------------------------*/
.card {
    border-color: var(--steel-200);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--steel-200);
}

.card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--steel-800);
}

/* ---- min-width-0: Bootstrap 4 has no such utility, but flex children
   default to min-width:auto, which blocks text-overflow/ellipsis truncation
   from ever kicking in — needed wherever a long customer/unit name sits
   next to a fixed-width sibling (back button, badge) in a flex row. */
.min-width-0 {
    min-width: 0;
}

/* ---- Collapsible card sections (<details class="card">) — read-only
   reference content (stage detail, history) stays one tap away instead of
   pushing the primary action below the fold. Changing summary's display
   away from "list-item" is what suppresses the native marker, no vendor
   hack needed beyond the WebKit fallback below. */
details.card > summary.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

details.card > summary.card-header::-webkit-details-marker {
    display: none;
}

details.card > summary.card-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: .8rem;
    color: var(--steel-400);
    transition: transform .15s ease;
}

details.card[open] > summary.card-header::after {
    transform: rotate(180deg);
}

/* ---- Buttons: consistent weight everywhere, colors unchanged ----------- */
.btn {
    font-weight: 600;
    letter-spacing: .01em;
}

/* ---- Status badges: consistent everywhere they're used ------------------*/
.badge {
    letter-spacing: .03em;
    font-weight: 700;
}

/* ---- Numeric / data emphasis (WO codes, PIN digits, sequence numbers) --*/
.text-data {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ---- Empty state (design-system/MASTER.md §12) --------------------------*/
.empty-state {
    text-align: center;
    color: var(--steel-500);
    padding: 2.5rem 1rem;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: .5rem;
    display: block;
    color: var(--steel-400);
}

/* ---- Compact color-coded timeline (mechanic tablet history) -------------
   Touch-friendly counterpart to AdminLTE's .timeline (used by admin WO
   detail) — same event_type -> color mapping, smaller/denser markers so it
   fits a single-column tablet layout. See design-system/MASTER.md §20. */
.timeline-compact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline-compact li {
    position: relative;
    padding: 0 0 1rem 1.25rem;
    border-left: 2px solid var(--steel-200);
}

.timeline-compact li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-compact li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--steel-400);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--steel-300);
}

.timeline-compact li.event-success::before { background: #28a745; }
.timeline-compact li.event-warning::before { background: #ffc107; }
.timeline-compact li.event-danger::before  { background: #dc3545; }
.timeline-compact li.event-primary::before { background: #007bff; }
.timeline-compact li.event-info::before    { background: #17a2b8; }

/* ==========================================================================
   Work Order UI system
   Shared across admin (list / create / detail) and mechanic (My Work /
   execution) screens so all five feel like one product, not five separately
   designed pages. Class names match design-system/MASTER.md's component
   list (§11): wo-header, wo-code, wo-meta, wo-status, wo-stage,
   wo-stage-current, wo-workflow, wo-action, wo-history.
   ========================================================================== */

/* ---- wo-code: the WO identifier — strong + tabular, identical everywhere */
.wo-code {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--steel-800);
}

/* ---- wo-header: identity block at the top of every WO surface --------- */
.wo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.wo-header-code {
    font-size: 1.35rem;
}

.wo-header-sub {
    margin-top: .35rem;
    color: var(--steel-600);
    font-size: .95rem;
}

.wo-header-sub strong {
    color: var(--steel-800);
    font-weight: 600;
}

.wo-header-sub .sep {
    color: var(--steel-300);
    margin: 0 .35rem;
}

/* ---- wo-meta: label/value rows (customer, equipment, mekanik, dates) --- */
.wo-meta-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem 0;
    border-bottom: 1px dashed var(--steel-200);
    font-size: .92rem;
}

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

.wo-meta-row .wo-meta-label {
    color: var(--steel-500);
    font-weight: 600;
    flex-shrink: 0;
}

.wo-meta-row .wo-meta-value {
    color: var(--steel-800);
    font-weight: 600;
    text-align: right;
}

.wo-meta-row.wo-meta-secondary {
    font-size: .82rem;
}

.wo-meta-row.wo-meta-secondary .wo-meta-label,
.wo-meta-row.wo-meta-secondary .wo-meta-value {
    color: var(--steel-500);
    font-weight: 500;
}

/* ---- wo-stage-current: THE single most important fact on any WO view -- */
.wo-stage-current {
    background: var(--steel-50);
    border-left: 4px solid var(--amber-500);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.wo-stage-current-number {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--amber-500);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.wo-stage-current-text {
    min-width: 0;
}

.wo-stage-current-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--steel-500);
    text-transform: uppercase;
    margin-bottom: .15rem;
    display: block;
}

.wo-stage-current-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--steel-800);
    line-height: 1.2;
}

.wo-stage-current-desc {
    font-size: .82rem;
    color: var(--steel-500);
    margin-top: .1rem;
}

/* ---- wo-workflow: horizontal progress overview, vertical on mobile -----
   Full version shows icon + label + short caption. Amber marks "active",
   never a generic brand wash. */
.wo-workflow {
    display: flex;
    align-items: stretch;
    gap: 0;
}

@media (max-width: 767.98px) {
    .wo-workflow {
        flex-direction: column;
    }
}

.wo-workflow-step {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    border-radius: var(--radius);
    background: var(--steel-50);
    border: 1px solid var(--steel-200);
}

/* Connects each step to the next — chevron-right in the horizontal
   (desktop/tablet) layout, chevron-down once .wo-workflow stacks vertically
   on mobile (the icon swap itself uses Bootstrap's d-md-none utilities). */
.wo-workflow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    color: var(--steel-400);
}

@media (max-width: 767.98px) {
    .wo-workflow-connector {
        width: auto;
        padding: .15rem 0;
        align-self: center;
    }
}

.wo-workflow-step-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    background: var(--steel-300);
    color: #fff;
}

.wo-workflow-step-text {
    line-height: 1.15;
    min-width: 0;
}

.wo-workflow-step-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--steel-800);
    display: block;
}

.wo-workflow-step-caption {
    font-size: .72rem;
    color: var(--steel-500);
}

.wo-workflow-step.is-completed .wo-workflow-step-icon { background: #28a745; }
.wo-workflow-step.is-completed { border-color: #bfe4c8; background: #f2faf4; }

.wo-workflow-step.is-active .wo-workflow-step-icon { background: var(--amber-500); }
.wo-workflow-step.is-active { border-color: #ffd9b3; background: #fff8f2; }

.wo-workflow-step.is-cancelled .wo-workflow-step-icon { background: #dc3545; }

/* ---- wo-stage: one stage row inside a flat detail list — never nested
   inside a second card (design-system/MASTER.md §7 anti-pattern) -------- */
.wo-stage-list {
    border: 1px solid var(--steel-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.wo-stage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--steel-200);
    flex-wrap: wrap;
}

.wo-stage:last-child {
    border-bottom: 0;
}

.wo-stage-name {
    font-weight: 600;
    color: var(--steel-800);
    min-width: 140px;
}

.wo-stage-info {
    font-size: .82rem;
    color: var(--steel-500);
    flex: 1 1 260px;
}

/* ---- wo-action: consistent primary-action zone, never a lone button --- */
.wo-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--steel-200);
}

/* ---- wo-history: consistent audit-trail container ----------------------*/
.wo-history {
    max-height: 480px;
    overflow-y: auto;
}

/* Mechanic My Work column: narrow spine on a phone so an empty queue never
   floats apart from Riwayat, widening from tablet up so the active-ticket
   grid can fan out into 2-3 columns instead of staying single-column. */
.wo-my-work {
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .wo-my-work {
        max-width: 1100px;
    }
}

.wo-idle-banner {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #fff;
    border: 1px solid var(--steel-200);
    border-left: 4px solid #28a745;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(23, 26, 29, .06);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.wo-idle-banner-empty {
    border-left-color: var(--steel-400);
}

.wo-idle-banner-icon {
    font-size: 1.35rem;
    color: #28a745;
    margin-top: .15rem;
    flex-shrink: 0;
}

.wo-idle-banner-empty .wo-idle-banner-icon {
    color: var(--steel-400);
}

.wo-idle-banner-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--steel-800);
    line-height: 1.3;
}

.wo-idle-banner-text {
    color: var(--steel-500);
    font-size: .92rem;
    line-height: 1.45;
}

/* ---- wo-grid / wo-card: compact operational work cards (My Work) ------
   Responsive by available width, not device sniffing: 1 column on a phone,
   2 on an 8" tablet (~600-991px), then auto-fits as many ~300px cards as
   fit on a wider/dynamic desktop viewport. */
.wo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .wo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .wo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.wo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    background: #fff;
    border: 1px solid var(--steel-200);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(23, 26, 29, .06);
    padding: 1rem 1.1rem;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.wo-card:hover,
.wo-card:focus-within {
    box-shadow: 0 6px 20px rgba(23, 26, 29, .1);
    border-color: var(--steel-300);
}

.wo-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
}

.wo-card-code {
    font-size: 1.1rem;
    line-height: 1.2;
}

.wo-card-badge {
    font-size: .68rem;
    padding: .3rem .5rem;
    flex-shrink: 0;
}

/* Customer + unit on one dense line instead of two icon blocks. */
.wo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .85rem;
    font-size: .82rem;
    color: var(--steel-600);
}

.wo-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wo-card-meta-item i {
    color: var(--steel-400);
    font-size: .8rem;
    flex-shrink: 0;
}

/* Single focus-stage callout — replaces the separate big-number block and
   the duplicated task card the list used to show. */
.wo-card-stage {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: var(--steel-50);
    border-left: 3px solid var(--amber-500);
    border-radius: var(--radius);
    padding: .55rem .7rem;
}

.wo-card-stage-step {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--amber-500);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.wo-card-stage-text {
    min-width: 0;
}

.wo-card-stage-label {
    display: block;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-bottom: .1rem;
}

.wo-card-stage-name {
    display: block;
    font-size: .98rem;
    font-weight: 700;
    color: var(--steel-800);
    line-height: 1.25;
}

.wo-card-stage-desc {
    display: block;
    font-size: .76rem;
    font-weight: 500;
    color: var(--steel-500);
    margin-top: .1rem;
}

.wo-card-progress {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.wo-card-progress-track {
    flex: 1 1 auto;
    height: .4rem;
    border-radius: 999px;
    background: var(--steel-100);
    overflow: hidden;
}

.wo-card-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--amber-500);
}

.wo-card-progress-fill.is-complete {
    background: #28a745;
}

.wo-card-progress-label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--steel-600);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Mini stage overview — segments, not boxes, so all stages stay visible
   at a glance without repeating every name/caption inside the card. */
.wo-card-steps {
    display: flex;
    gap: .3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wo-card-step {
    flex: 1 1 0;
    height: 4px;
    border-radius: 999px;
    background: var(--steel-200);
}

.wo-card-step.is-completed { background: #28a745; }
.wo-card-step.is-active { background: var(--amber-500); }
.wo-card-step.is-cancelled { background: #dc3545; }

.wo-card-action {
    margin-top: auto;
    padding-top: 0;
    border-top: 0;
}

/* ---- wo-stage-pill: compact current-stage indicator for table rows ---- */
.wo-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: var(--steel-700);
}

.wo-stage-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--steel-400);
    flex-shrink: 0;
}

.wo-stage-pill.is-active .wo-stage-pill-dot { background: var(--amber-500); }
.wo-stage-pill.is-completed .wo-stage-pill-dot { background: #28a745; }

/* ---- wo-toolbar / wo-form-section: admin list filters & create-form
   grouping — light structure, not decoration. ---------------------------*/
.wo-toolbar {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--steel-200);
}

.wo-form-section + .wo-form-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--steel-200);
}

.wo-form-section-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-bottom: .75rem;
}

/* Caps the mechanic content area on very wide (desktop-browser) viewports
   so work tickets and history stay readable — real tablet viewports never
   reach this width. */
.mekanik-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   Mechanic Work Order execution page (mekanik-app/work-order.blade.php)
   ========================================================================== */

/* Navbar: full-width kiosk chrome. AdminLTE offsets .main-header by the
   sidebar (250px) unless body.layout-top-nav is set — keep an explicit
   reset here so the bar cannot sit in a leftover sidebar gap. */
.mekanik-navbar.main-header {
    margin-left: 0 !important;
    width: 100% !important;
    left: 0;
    right: 0;
    min-height: 68px;
    background: var(--steel-900);
    border-bottom: 0;
}

body.layout-top-nav .content-wrapper {
    margin-left: 0 !important;
    background: transparent;
}

.mekanik-navbar .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: .01em;
}

.mekanik-navbar-mark {
    color: var(--amber-500);
    margin-right: .35rem;
}

.mekanik-navbar .navbar-user-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mekanik-navbar .btn-tablet {
    min-height: 44px;
    padding: .4rem .9rem;
    font-size: 1rem;
}

.wo-page-header {
    margin-bottom: 1.5rem;
}

/* Purely visual breadcrumb + page title/subtitle above the WO summary. */
.wo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--steel-400);
}

.wo-breadcrumb .breadcrumb-item a {
    color: var(--steel-500);
}

.wo-breadcrumb .breadcrumb-item.active {
    color: var(--steel-700);
    font-weight: 600;
}

.wo-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--steel-800);
}

.wo-page-subtitle {
    color: var(--steel-500);
    font-size: .9rem;
}

/* Small uppercase label above the WO code in the summary card. */
.wo-eyebrow {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--steel-500);
    margin-bottom: .15rem;
}

/* Icon + label/value info blocks (Customer, Unit, Teknisi). */
.wo-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
}

.wo-info-block {
    flex: 1 1 180px;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.wo-info-icon {
    color: var(--steel-400);
    font-size: 1.1rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

.wo-info-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--steel-500);
}

.wo-info-value {
    display: block;
    font-weight: 700;
    color: var(--steel-800);
    font-size: 1rem;
}

/* Thicker, more legible progress bar for the current-stage progress. */
.wo-progress {
    height: 1.35rem;
    border-radius: var(--radius);
    background: var(--steel-100);
}

.wo-progress .progress-bar {
    font-size: .75rem;
    font-weight: 700;
}

/* Highlights the one stage that is actually actionable right now inside
   the read-only "Detail Tahap Pekerjaan" list. */
.wo-stage.wo-stage-focus {
    background: #fff8f2;
    border-left: 3px solid var(--amber-500);
    padding-left: calc(1rem - 3px);
}

/* ==========================================================================
   Mechanic kiosk login (mekanik-auth/login.blade.php)
   Workshop time-clock: steel shop floor, amber identity, large nameplates.
   ========================================================================== */

body.mekanik-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--steel-900);
}

.mekanik-login-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 107, 0, .22), transparent 58%),
        radial-gradient(ellipse 45% 35% at 0% 100%, rgba(73, 80, 87, .35), transparent 70%),
        linear-gradient(165deg, #1a1f24 0%, #12161a 48%, #0e1114 100%);
}

.mekanik-login-bg::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: .045;
    background-image:
        repeating-linear-gradient(-45deg, #fff 0, #fff 1px, transparent 1px, transparent 14px);
}

.mekanik-login .login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 1.25rem;
}

.mekanik-login-brand {
    text-align: center;
    margin-bottom: 1.35rem;
}

.mekanik-login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: .65rem;
    border-radius: 12px;
    background: var(--amber-500);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(255, 107, 0, .28);
}

.mekanik-login-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    line-height: 1.15;
}

.mekanik-login-subtitle {
    margin-top: .2rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.mekanik-login-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.mekanik-login-card .card-body {
    padding: 1.4rem 1.35rem 1.5rem;
}

.mekanik-login-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--amber-600);
}

.mekanik-login-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--steel-800);
    margin: 0 0 .2rem;
}

.mekanik-login-hint {
    color: var(--steel-500);
    font-size: .92rem;
    margin-bottom: 1.15rem;
}

.mekanik-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 112px;
    padding: .85rem .6rem;
    background: var(--steel-50);
    border: 1px solid var(--steel-200);
    border-radius: 10px;
    color: var(--steel-800);
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    box-shadow: 0 1px 2px rgba(23, 26, 29, .04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.mekanik-tile:hover,
.mekanik-tile:focus {
    background: #fff;
    border-color: var(--amber-500);
    color: var(--steel-900);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.mekanik-tile.active {
    background: #fff8f2;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .22);
}

.mekanik-tile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: .55rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ffd9b3;
    color: var(--amber-600);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.mekanik-tile-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.mekanik-login-back {
    font-weight: 600;
    color: var(--steel-600);
}

.mekanik-login-back:hover {
    color: var(--amber-600);
    text-decoration: none;
}

.mekanik-pin-identity {
    text-align: center;
    margin-bottom: .35rem;
}

.mekanik-pin-identity .mekanik-tile-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.15rem;
    margin-bottom: .65rem;
    background: var(--steel-50);
}

.mekanik-login .pin-display {
    text-align: center;
}

.mekanik-login .pin-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--steel-300);
    margin: 0 5px;
    background: transparent;
    transition: background-color .15s ease, border-color .15s ease;
}

.mekanik-login .pin-dot.filled {
    background-color: var(--amber-500);
    border-color: var(--amber-500);
}

.mekanik-login .keypad .btn {
    min-height: 58px;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 10px;
}

.mekanik-login .pin-digit {
    background: var(--steel-50);
    border: 1px solid var(--steel-200);
    color: var(--steel-800);
}

.mekanik-login .pin-digit:hover,
.mekanik-login .pin-digit:focus {
    background: #fff;
    border-color: var(--steel-400);
    color: var(--steel-900);
}

.mekanik-login .pin-key-muted {
    background: #fff;
    border: 1px solid var(--steel-200);
    color: var(--steel-600);
}

.mekanik-login-submit {
    min-height: 52px;
    font-size: 1.1rem;
    border-radius: 10px;
}

@media (max-width: 575.98px) {
    .mekanik-login .login-wrap {
        padding: .85rem;
    }

    .mekanik-tile {
        min-height: 100px;
    }

    .mekanik-login .keypad .btn {
        min-height: 54px;
    }
}

