/* ============================================================
   Servis MAX — Main Stylesheet
   ============================================================ */

:root {
    --primary:       #00A0E1;
    --primary-dark:  #0082b8;
    --primary-light: #e0f4fc;
    --accent:        #F29618;
    --accent-dark:   #d47e0a;
    --accent-light:  #fef3e0;
    --success:       #16a34a;
    --success-light: #dcfce7;
    --warning:       #d97706;
    --warning-light: #fef3c7;
    --danger:        #dc2626;
    --danger-light:  #fee2e2;
    --info:          #0891b2;
    --info-light:    #cffafe;
    --gray-50:       #f8fafc;
    --gray-100:      #f1f5f9;
    --gray-200:      #e2e8f0;
    --gray-300:      #cbd5e1;
    --gray-400:      #94a3b8;
    --gray-500:      #64748b;
    --gray-600:      #475569;
    --gray-700:      #334155;
    --gray-800:      #1e293b;
    --gray-900:      #0f172a;
    --sidebar-w:     240px;
    --topbar-h:      60px;
    --radius:        8px;
    --shadow-sm:     0 1px 2px rgba(0,0,0,.06);
    --shadow:        0 1px 6px rgba(0,0,0,.1);
    --shadow-lg:     0 4px 20px rgba(0,0,0,.12);
    --font:          'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================ LAYOUT */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: var(--gray-900);
    color: var(--gray-300);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.sidebar-logo .logo-accent { color: #F29618; }

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--gray-400);
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: auto;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--gray-400);
    font-size: 13.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s, color .15s;
    width: 100%;
}

.sidebar-logout:hover {
    background: rgba(220,38,38,.15);
    color: #fca5a5;
    text-decoration: none;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
}

.nav-section {
    margin-bottom: 4px;
}

.nav-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-500);
    padding: 12px 16px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--gray-400);
    font-size: 13.5px;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: white;
    text-decoration: none;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

/* MAIN */
.main-wrapper {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* TOPBAR */
.topbar {
    min-height: var(--topbar-h);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
    overflow: visible;
    flex-wrap: nowrap;
}

.topbar-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 4px;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    flex-shrink: 0;
}

/* GLOBAL SEARCH */
.global-search {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 160px;
}

.global-search-input {
    width: 100%;
    padding: 7px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    font-size: 13px;
    background: var(--gray-50);
    color: var(--gray-800);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.global-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: white;
}

.global-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
}

.global-search-results.open { display: block; }

.gs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    transition: background .1s;
}

.gs-item:last-child { border-bottom: none; }
.gs-item:hover { background: var(--gray-50); text-decoration: none; }

.gs-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.gs-icon-vehicle { background: var(--primary-light); color: var(--primary); }
.gs-icon-client  { background: var(--success-light); color: var(--success); }
.gs-icon-order   { background: var(--warning-light); color: var(--warning); }

.gs-label { font-size: 13px; font-weight: 600; line-height: 1.3; }
.gs-sub   { font-size: 11px; color: var(--gray-500); }

.gs-no-results {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* STATUS DROPDOWN */
.status-dropdown {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 20px;
    padding: 5px 24px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='currentColor' opacity='.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    outline: none;
    width: auto;
    display: inline-block;
}

.status-dropdown:focus { box-shadow: 0 0 0 3px rgba(0,160,225,.2); }

.status-dropdown.badge-open          { background-color: #dbeafe; color: #1e40af; } /* plava — otvoren */
.status-dropdown.badge-preparation   { background-color: #bfdbfe; color: #1d4ed8; } /* tamnija plava — priprema */
.status-dropdown.badge-in-progress   { background-color: #818cf8; color: #1e1b4b; } /* indigo — u radu */
.status-dropdown.badge-waiting       { background-color: #e0e7ff; color: #3730a3; } /* svetlo indigo — čeka delove */
.status-dropdown.badge-partial       { background-color: #fef9c3; color: #854d0e; } /* žuto-narandžasta — delimično */
.status-dropdown.badge-completed     { background-color: #fef08a; color: #713f12; } /* žuta — završeno */
.status-dropdown.badge-delivered     { background-color: #bbf7d0; color: #14532d; } /* zelena — isporučeno */
.status-dropdown.badge-cancelled     { background-color: #fee2e2; color: #991b1b; } /* crvena — otkazano */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 13px;
}

.role-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--gray-100);
    border-radius: 4px;
    color: var(--gray-500);
}

/* MAIN CONTENT */
.main-content {
    padding: 24px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.app-footer {
    text-align: center;
    padding: 12px 24px;
    font-size: 12px;
    color: var(--gray-400);
    border-top: 1px solid var(--gray-200);
}

/* ============================================================ PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.pag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.pag-btn:hover { background: var(--gray-100); border-color: var(--gray-300); text-decoration: none; }
.pag-active { background: var(--primary) !important; border-color: var(--primary) !important; color: white !important; }
.pag-disabled { color: var(--gray-300); border-color: var(--gray-100); cursor: default; pointer-events: none; }
.pag-ellipsis { color: var(--gray-400); padding: 0 4px; line-height: 36px; }

@media (max-width: 480px) {
    .pag-btn { min-width: 40px; height: 40px; font-size: 14px; }
}

/* ============================================================ CARDS */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body { padding: 20px; }

/* STAT CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-icon.blue   { background: var(--primary-light); color: var(--primary); }
.stat-icon.green  { background: var(--success-light); color: var(--success); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red    { background: var(--danger-light); color: var(--danger); }
.stat-icon.cyan   { background: var(--info-light); color: var(--info); }

.stat-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
}
.stat-card-link:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.stat-card-link:active {
    transform: translateY(0);
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ============================================================ BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary   { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); text-decoration: none; color: white; }

.btn-success   { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(.93); text-decoration: none; color: white; }

.btn-danger    { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(.93); text-decoration: none; color: white; }

.btn-warning   { background: var(--warning); color: white; }
.btn-warning:hover { filter: brightness(.93); text-decoration: none; color: white; }

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover { background: var(--gray-100); text-decoration: none; }

.btn-sm  { padding: 5px 10px; font-size: 12.5px; }
.btn-lg  { padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ============================================================ FORMS */
.form-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group.col-2 { grid-column: span 2; }

/* ============================================================ DATE INPUT */
.date-input-group {
    display: flex;
    gap: 4px;
}
.date-input-group select {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
}
.date-input-day   { max-width: 72px; }
.date-input-month { max-width: 80px; }
.date-input-year  { max-width: 88px; }

label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gray-600);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--gray-800);
    background: white;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,160,225,.12);
}


textarea { resize: vertical; min-height: 80px; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ============================================================ TABLE */
.table-wrapper {
    overflow-x: auto;
    /* Fade indikator desno kada ima scroll */
    background:
        linear-gradient(to right, white 0%, transparent 16px) left center / 16px 100% no-repeat,
        linear-gradient(to left,  white 0%, transparent 16px) right center / 16px 100% no-repeat,
        linear-gradient(to right, rgba(0,0,0,.06) 0%, transparent 100%) left center / 20px 100% no-repeat,
        linear-gradient(to left,  rgba(0,0,0,.06) 0%, transparent 100%) right center / 20px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--gray-50);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13.5px;
    color: var(--gray-700);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

.table-actions { display: flex; gap: 6px; }

th.text-right, td.text-right { text-align: right; }
th.text-center, td.text-center { text-align: center; }

/* Inline table (for invoice/material rows) */
.table-inline td { padding: 6px 8px; }
.table-inline td input, .table-inline td select {
    padding: 5px 8px;
    font-size: 13px;
}

/* ============================================================ INV-ROW (invoice item rows) — mobile-first */

/* Naslov sekcije unutar stavki (Usluge / Materijali) */
.inv-section-header {
    padding: 6px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

/* MOBILE: kartica po stavci, label levo + input desno */
.inv-row {
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
}
.inv-row:last-child { border-bottom: none; }

/* Zaglavlje kartice: opis + X dugme */
.inv-row-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 0;
}
.inv-row-desc input {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}
.inv-row-desc .btn-icon { flex-shrink: 0; }

/* Polja: label levo, input desno — iOS Settings stil */
.inv-row-fields {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 0;
    gap: 0;
}
.inv-row-fields label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    gap: 12px;
}
.inv-row-fields label:last-child { border-bottom: none; }
.inv-row-fields label input {
    text-align: right;
    width: 130px;
    flex-shrink: 0;
}

/* Ukupno — podnožje kartice */
.inv-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    margin-top: 8px;
}
.inv-row-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}
.inv-row-bottom .btn-icon { display: none; } /* X je već u zaglavlju */

/* DESKTOP (≥769px): horizontalni red, kompaktno */
@media (min-width: 769px) {
    .inv-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 16px;
        border-bottom: 1px solid var(--gray-100);
    }
    .inv-row-desc { padding: 0; flex: 1 1 0; min-width: 0; }
    .inv-row-desc input { font-size: 13px; font-weight: 400; }
    .inv-row-desc .btn-icon { display: none; }
    .inv-row-fields {
        flex-direction: row;
        padding: 0;
        gap: 8px;
        flex-shrink: 0;
    }
    .inv-row-fields label {
        padding: 0;
        border-bottom: none;
        font-size: 12px;
        color: var(--gray-400);
        gap: 4px;
        justify-content: flex-start;
    }
    .inv-row-fields label input { text-align: left; width: auto; }
    .inv-row-fields label input[data-qty] { width: 80px; }
    .inv-row-fields label input[name="item_unit[]"] { width: 55px; }
    .inv-row-fields label input[data-price] { width: 110px; }
    .inv-row-bottom {
        padding: 0;
        background: none;
        border-top: none;
        margin-top: 0;
        gap: 8px;
        flex-shrink: 0;
    }
    .inv-row-total { font-size: 13px; font-weight: 600; color: var(--gray-700); min-width: 110px; text-align: right; }
    .inv-row-bottom .btn-icon { display: inline-flex; }
}

/* ============================================================ BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-open        { background: #dbeafe; color: #1e40af; }  /* plava */
.badge-preparation { background: #bfdbfe; color: #1d4ed8; }  /* tamnija plava */
.badge-in-progress { background: #818cf8; color: #1e1b4b; }  /* indigo */
.badge-waiting     { background: #e0e7ff; color: #3730a3; }  /* svetlo indigo */
.badge-partial     { background: #fef9c3; color: #854d0e; }  /* žuto-narandžasta */
.badge-completed   { background: #fef08a; color: #713f12; }  /* žuta */
.badge-delivered   { background: #bbf7d0; color: #14532d; }  /* zelena */
.badge-cancelled   { background: #fee2e2; color: #991b1b; }  /* crvena */

.badge-draft     { background: var(--gray-100); color: var(--gray-600); }
.badge-issued    { background: var(--primary-light); color: var(--primary); }
.badge-paid      { background: var(--success-light); color: var(--success); }

/* ============================================================ ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.alert-success { background: var(--success-light); color: #14532d; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--danger-light);  color: #7f1d1d; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #78350f; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-light);    color: #164e63; border: 1px solid #a5f3fc; }

.alert-close {
    position: absolute;
    right: 12px; top: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    opacity: .6;
    line-height: 1;
}
.alert-dismissible { padding-right: 36px; }

/* ============================================================ PAGE HEADER */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
}

.page-header p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ============================================================ FILTER BAR */
.filter-bar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar .form-group { flex: 1; min-width: 160px; }
.filter-bar label { margin-bottom: 0; }

/* ============================================================ PROGRESS BAR */
.progress {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width .4s;
}

.progress-bar.green { background: var(--success); }
.progress-bar.yellow { background: var(--warning); }

/* ============================================================ CHECKLIST */
.checklist { list-style: none; margin: 0; padding: 0; }

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.checklist li:last-child { border-bottom: none; }

.checklist input[type="checkbox"] {
    width: 22px;
    height: 22px;
    min-width: 22px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 1px;
}

.checklist .task-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.checklist .task-name { font-size: 15px; line-height: 1.4; }
.checklist .task-name.done { text-decoration: line-through; color: var(--gray-400); }

.checklist .task-done-by {
    font-size: 12px;
    color: var(--gray-400);
}

/* ============================================================ WO VIEW GRID */
.wo-view-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

.wo-view-grid > div {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .wo-view-grid { grid-template-columns: 1fr; }
}

/* ============================================================ TABS */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 20px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover { color: var(--gray-800); }

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; min-width: 0; max-width: 100%; }

/* ============================================================ MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.hidden { display: none; }

.modal {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg { max-width: 900px; }
.modal-xl { max-width: 1100px; }

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
    padding: 2px;
}

.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================ EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state svg { width: 48px; height: 48px; margin: 0 auto 12px; display: block; opacity: .5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 16px; }

/* ============================================================ LOGIN */
.login-page { background: var(--gray-100); min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.login-wrapper { width: 100%; max-width: 400px; padding: 20px; }

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo svg { margin: 0 auto 12px; display: block; }
.login-logo h1 { font-size: 22px; font-weight: 700; color: var(--gray-800); }
.login-logo p  { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.login-form .form-group { margin-bottom: 16px; }

.login-hint {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 16px;
}

/* ============================================================ INVOICE VIEW GRID */
.inv-view-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
}

.inv-totals-wrap {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .inv-view-grid { grid-template-columns: 1fr; }
    .inv-totals-wrap { justify-content: stretch; }
    .inv-totals-wrap .inv-totals-table { width: 100% !important; }
}

/* ============================================================ CALENDAR */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
}

.cal-dow {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.cal-cell {
    min-height: 72px;
    padding: 6px 8px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
    position: relative;
}

.cal-cell.cal-empty { background: var(--gray-50); }

a.cal-cell:hover { background: var(--primary-light); text-decoration: none; }

.cal-cell.cal-today { background: #e8f7fd; }
.cal-cell.cal-today .cal-day-num {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cal-cell.cal-has-overdue { border-top: 2px solid var(--danger); }
.cal-cell.cal-has-orders  { border-top: 2px solid var(--primary); }

.cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 2px;
}

.cal-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cal-dot-overdue { background: var(--danger-light);  color: var(--danger); }
.cal-dot-active  { background: var(--primary-light); color: var(--primary); }
.cal-dot-done    { background: var(--success-light); color: var(--success); }

.cal-legend {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.mb-3 { margin-bottom: 24px; }

@media (max-width: 768px) {
    .cal-cell { min-height: 52px; padding: 4px 4px; gap: 2px; }
    .cal-day-num { font-size: 12px; width: 20px; height: 20px; }
    .cal-dot { min-width: 16px; height: 16px; font-size: 10px; padding: 0 3px; }
    .cal-dow { font-size: 10px; padding: 6px 2px; }
}

@media (max-width: 400px) {
    .cal-cell { min-height: 40px; padding: 3px 2px; }
    .cal-day-num { font-size: 11px; width: 18px; height: 18px; }
    .cal-dots { gap: 2px; }
    .cal-dot { min-width: 14px; height: 14px; font-size: 9px; padding: 0 2px; }
}

/* ============================================================ DASHBOARD ACTIONS */
.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dashboard-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-width: 140px;
}

/* ============================================================ PRINT */
@media print {
    .sidebar, .topbar, .app-footer, .btn, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0 !important; }
    .main-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 768px) {
    /* Sidebar — slide in/out */
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }

    /* Topbar — fix overflow */
    .topbar {
        padding: 0 10px;
        gap: 8px;
        overflow: hidden;
    }
    /* Menu button — veći tap target */
    .topbar-menu-btn {
        display: flex;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 -4px;
    }
    /* LE badge — sakrij na veoma malim ekranima da ne gura search */
    .topbar-le-badge { display: none; }

    .global-search {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    .global-search-input {
        width: 100%;
        font-size: 14px;
        padding: 8px 12px;
    }
    /* Search results — max visina da ne ide van ekrana */
    .global-search-results {
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Layout */
    .main-wrapper {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }
    .main-content { padding: 12px; }

    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .page-header > div:last-child {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .page-header h1 { font-size: 18px; }
    .page-header > .btn { flex: 1; justify-content: center; min-width: 140px; }

    /* Stats grid — 2 kolone kompaktne */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px; gap: 10px; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 11px; }
    .stat-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
    .stat-icon svg { width: 16px; height: 16px; }

    /* Forms */
    .form-grid { grid-template-columns: 1fr; }
    .form-group.col-2 { grid-column: span 1; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }

    /* Inputs — larger tap targets, no iOS zoom */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px;
        padding: 10px 12px;
    }

    /* Tables — scroll sa fade indikatorom */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    td, th { padding: 9px 10px; font-size: 12.5px; }

    /* Cards */
    .card-header { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
    .card-body { padding: 14px; }

    /* Tabs — scrollable */
    .tab-btn { padding: 10px 14px; font-size: 12.5px; white-space: nowrap; }

    /* Filter bar — dugme za submit pored poništi, ne cele širine */
    .filter-bar { flex-direction: column; gap: 10px; }
    .filter-bar .form-group { min-width: 100%; }
    .filter-bar form > .btn { flex: 1; justify-content: center; min-height: 44px; }

    /* Two/three col grids */
    .two-col, .three-col { grid-template-columns: 1fr !important; }

    /* Request row price field */
    .request-row { flex-wrap: wrap; }
    .request-row input[name="request_prices[]"] { width: 100px !important; }

    /* Sidebar overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 99;
    }
    .sidebar-overlay.active { display: block; }

    /* desktop-only: vidljivo samo na desktopu */
    .desktop-only { display: none !important; }

    /* Inline tables — hide on mobile (replaced by inv-row divs) */
    .table-inline thead { display: none; }

    /* Btn-icon — veći tap target na mobile */
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch active stanja */
    .nav-item:active { background: rgba(255,255,255,.14); }
    .mcard:active { background: var(--gray-50); }
    .btn:active { filter: brightness(.9); }
    .pag-btn:active { background: var(--gray-200); }

    /* Status dropdown — cela širina na mobile card listi */
    .mcard .status-dropdown {
        width: 100%;
        text-align: center;
        padding-right: 28px;
    }

    /* Dashboard actions — dugmad iste visine */
    .dashboard-actions .btn { min-height: 44px; }

    /* Empty state — manje padding na mobile */
    .empty-state { padding: 36px 16px; }

    /* Modal — bottom sheet na mobile */
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }
    .modal {
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 92vh;
    }
    .modal-lg, .modal-xl { max-width: 100%; }

}

@media (max-width: 480px) {
    .main-content { padding: 10px; }

    /* Stats — 2 kolone i na malim ekranima, kompaktnije */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .stat-card { padding: 10px; gap: 8px; }
    .stat-value { font-size: 16px; }
    .stat-label { font-size: 10px; }
    .stat-icon { width: 30px; height: 30px; }
    .stat-icon svg { width: 14px; height: 14px; }

    /* Page header buttons full width */
    .page-header > div:last-child .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        font-size: 12px;
        padding: 8px 10px;
    }

    .card-header { gap: 6px; }
    .login-box { padding: 28px 20px; }
    .hide-mobile { display: none !important; }
}

/* ============================================================ WORK ORDER VIEW ACTIONS */
.wo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .wo-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    .wo-actions .btn {
        justify-content: center;
        font-size: 13px;
        padding: 10px 6px;
        gap: 5px;
        min-width: 0;
        width: 100%;
    }
}

/* ============================================================ MOBILE CARD LIST */
/* Na mobilnom tabela se sakriva, prikazuje se card lista */
.mobile-list { display: none; }

@media (max-width: 768px) {
    .mobile-list { display: block; }
    .desktop-table { display: none; }

    .mcard {
        background: white;
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        text-decoration: none;
        color: inherit;
        transition: background .1s;
    }
    .mcard:active { background: var(--gray-50); }

    .mcard-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mcard-title {
        font-weight: 700;
        font-size: 14px;
        color: var(--gray-800);
    }

    .mcard-sub {
        font-size: 12.5px;
        color: var(--gray-500);
    }

    .mcard-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .mcard-meta {
        font-size: 12px;
        color: var(--gray-500);
    }

    .mcard-amount {
        font-size: 15px;
        font-weight: 700;
        color: var(--gray-800);
    }

    .mcard-actions {
        display: flex;
        gap: 6px;
        margin-top: 4px;
    }
    .mcard-actions .btn { flex: 1; justify-content: center; font-size: 12.5px; }

    /* Material cards (materials.php mobile) */
    .mat-card {
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .mat-card:last-child { border-bottom: none; }
    .mat-card-top {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .mat-card-top select { flex: 1; }
    .mat-card > input[type="text"] { width: 100%; }
    .mat-card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .mat-card-field {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .mat-card-field label {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-500);
        text-transform: uppercase;
        letter-spacing: .03em;
    }
    .mat-card-field input { width: 100%; }
    .mat-card-total {
        font-size: 13px;
        color: var(--gray-600);
        text-align: right;
    }
    .mat-card-total strong { color: var(--gray-800); font-size: 15px; }
}

/* ============================================================ UTILITIES */
.text-muted   { color: var(--gray-500); }
.text-sm      { font-size: 12px; }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.gap-grid { display: grid; gap: 20px; }
.two-col { grid-template-columns: 1fr 1fr; }
.three-col { grid-template-columns: 1fr 1fr 1fr; }

/* Autocomplete dropdown */
.autocomplete-wrapper { position: relative; }

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-list.open { display: block; }

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13.5px;
    border-bottom: 1px solid var(--gray-100);
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--primary-light); color: var(--primary); }
.autocomplete-item.selected { background: var(--primary); color: white; }

/* ============================================================
   Invoice items table — mobilni layout
   ============================================================ */
@media (max-width: 768px) {
    .inv-items thead { display: none; }

    .inv-items tr {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        padding: 12px 14px;
        border-bottom: 1px solid var(--gray-200);
        background: white;
    }
    .inv-items tr:last-child { border-bottom: none; }

    .inv-items .inv-td-desc { flex: 0 0 100%; }
    .inv-items .inv-td-desc input { width: 100% !important; font-size: 14px; }

    .inv-items td:nth-child(2) { flex: 1 1 70px; }
    .inv-items td:nth-child(3) { flex: 0 0 55px; }
    .inv-items td:nth-child(4) { flex: 1 1 100px; }

    .inv-items .inv-td-total {
        flex: 1 1 auto;
        text-align: right;
        font-weight: 700;
        font-size: 15px;
        color: var(--gray-800);
    }
    .inv-items .inv-td-del { flex: 0 0 auto; }
    .inv-items td input { width: 100% !important; }
}

/* ============================================================
   Legal Entity Switcher (Birač pravnog lica)
   ============================================================ */
.sidebar-le-switcher {
    padding: 10px 12px 6px;
    border-top: 1px solid rgba(255,255,255,.08);
    position: relative;
}

.sidebar-le-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    margin-bottom: 6px;
    padding: 0 2px;
}

.sidebar-le-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,.06);
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    min-width: 0;
}

.sidebar-le-current:hover { background: rgba(255,255,255,.12); }

.sidebar-le-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
    background: white;
}

.sidebar-le-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-le-avatar-sm {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.sidebar-le-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--gray-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sidebar-le-dropdown {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 12px;
    right: 12px;
    background: var(--gray-800);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}

.sidebar-le-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--gray-200);
    text-decoration: none;
    transition: background .12s;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-le-option:last-child { border-bottom: none; }
.sidebar-le-option:hover { background: rgba(255,255,255,.1); text-decoration: none; color: white; }
.sidebar-le-option.active { background: rgba(0,160,225,.25); color: #7dd8f5; }
.sidebar-le-clear { justify-content: center; padding: 7px; }

/* Active LE badge in topbar */
.topbar-le-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}

.topbar-le-badge img {
    height: 18px;
    width: 18px;
    object-fit: contain;
    border-radius: 2px;
}

/* ============================================================
   Legal Entity Picker Modal
   ============================================================ */
.le-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.le-picker-modal {
    background: #0f172a;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 440px;
    padding: 32px;
    animation: lePickerIn 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

@keyframes lePickerIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.le-picker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #ffffff;
}

.le-picker-header svg {
    color: #00A0E1;
}

.le-picker-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.le-picker-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.le-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.le-picker-item:hover {
    border-color: #00A0E1;
    background: rgba(0, 160, 225, 0.15);
    box-shadow: 0 2px 12px rgba(0, 160, 225, 0.2);
}

.le-picker-item:hover svg {
    color: #00A0E1;
}

.le-picker-item svg {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.le-picker-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    padding: 2px;
    flex-shrink: 0;
}

.le-picker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.le-picker-info {
    flex: 1;
    min-width: 0;
}

.le-picker-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.le-picker-info span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .le-picker-modal {
        padding: 24px 20px;
    }
}
