/* =========================================
   OSNOVNO
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}


/* =========================================
   HEADER
========================================= */

.app-header {
    background: #1f2937;
    border-bottom: 3px solid #2563eb;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    padding: 16px 0;
}

.logged-user {
    color: #d1d5db;
    font-size: 13px;
}

.logged-user strong {
    color: #ffffff;
}

.logged-user span {
    color: #9ca3af;
}


/* =========================================
   NAVIGACIJA
========================================= */

.app-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 15px;
    
}

.app-nav a {
    display: block;
    flex-shrink: 0;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    padding: 14px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}



.app-nav a:hover {
    background: #374151;
    color: #ffffff;
}

.menu-warning {
    color: #fbbf24 !important;
}

.logout-link {
    margin-left: auto;
}


/* =========================================
   DROP-DOWN MENI - UREĐAJI
========================================= */

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: #374151;
    padding: 11px 15px;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #111827;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 5px 0;
}


/* =========================================
   GLAVNI SADRŽAJ
========================================= */

.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}


/* =========================================
   POČETNA STRANICA
========================================= */

.welcome-card {
    max-width: 700px;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-card h1 {
    margin-top: 0;
    font-size: 26px;
}

.welcome-card p {
    line-height: 1.6;
}

.user-info {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.user-info span {
    color: #6b7280;
}


/* =========================================
   UREĐAJI - LISTA
========================================= */

.table-section {
    margin-top: 25px;
}

.table-section h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #243447;
}

.table-responsive {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.table-section table th {
    padding: 13px 14px;
    text-align: left;
    font-size: 15px;
    background: #eef1f5;
    color: #243447;
    border-bottom: 2px solid #cfd6df;
    white-space: nowrap;
}

.table-section table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e1e5ea;
    vertical-align: middle;
}

.table-section table tbody tr:last-child td {
    border-bottom: none;
}

.table-section table tbody tr:hover {
    background: #f6f8fa;
}

.actions {
    white-space: nowrap;
}

.actions a {
    margin-right: 8px;
}

.empty-message {
    padding: 18px;
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    font-size: 16px;
    color: #666;
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard {
    padding-top: 30px;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-welcome h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.dashboard-welcome p {
    margin: 0;
    color: #666;
}

.dashboard-date {
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    background: #f5f6f8;
    border-radius: 8px;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 30px;
}

.dashboard-card {
    flex: 1;
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 30px;
}

.card-number {
    font-size: 28px;
    font-weight: bold;
}

.card-label {
    margin-top: 3px;
    color: #666;
    font-size: 14px;
}

.card-success {
    border-left: 4px solid #3ba55c;
}

.card-danger {
    border-left: 4px solid #dc3545;
}

.card-warning {
    border-left: 4px solid #e0a800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.dashboard-panel {
    padding: 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* Kartica se prikazuje neposredno ispod liste kašnjenja. */
.dashboard-regular-panel {
    grid-column: 2;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.panel-header h2 {
    margin: 0;
    font-size: 19px;
}

.panel-header a {
    text-decoration: none;
    font-size: 14px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 10px;
    text-align: left;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #ddd;
}

.dashboard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.log-time {
    font-weight: bold;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.quick-action:hover {
    background: #f5f6f8;
}

.quick-action span {
    margin-bottom: 8px;
    font-size: 26px;
}

.dashboard-empty {
    padding: 30px;
    text-align: center;
    color: #777;
}


/* =========================================
   IZVJEŠTAJI - EXPORT DUGMAD
========================================= */

.report-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0 20px;
}

.btn-export {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
}

.btn-pdf {
    background: #c0392b;
}

.btn-excel {
    background: #217346;
}

.btn-export:hover {
    opacity: 0.9;
}


/* =========================================
   MOBILNI PRIKAZ
========================================= */

@media (max-width: 800px) {

    .header-top {
        padding: 0 15px;
    }

    .container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-regular-panel {
        grid-column: auto;
    }

}

/* =========================================
   FORME - KOMPAKTNI PRIKAZ
========================================= */

.form-card {
    max-width: 940px;
    margin: 15px auto;
    padding: 22px 36px;
}

.form-card h1 {
    font-size: 28px;
    margin: 0 0 4px;
}

.form-card .form-description {
    margin: 0 0 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 15px;
}

.form-divider {
    margin: 15px 0;
}

.form-actions {
    margin-top: 15px;
    padding-top: 15px;
}

.form-actions button,
.form-actions .btn {
    padding: 9px 18px;
}

/* =========================================
   FORMA - DUGMAD I AKCIJE
========================================= */

/* Red sa akcijama */
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d1d5db;
}

/* Osnovni izgled svih dugmadi */
.form-actions button,
.btn,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

/* Sačuvaj */
.form-actions button,
.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.form-actions button:hover,
.btn-primary:hover {
    background: #1d4ed8;
}

/* Odustani */
.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Nazad */
.btn-back {
    gap: 7px;
    color: #24466f;
    border: 1px solid #bdd1ea;
    background: linear-gradient(180deg, #ffffff, #eef5fd);
    box-shadow: 0 2px 5px rgba(37, 99, 235, .10);
}

.btn-back:hover {
    color: #174b85;
    border-color: #7fa9d8;
    background: #e2effc;
}

/* Raspored smjena po danima */

.schedule-days-table {
    max-width: 700px;
}

.schedule-days-table table {
    font-size: 15px;
}

.schedule-days-table th,
.schedule-days-table td {
    padding: 12px 16px;
}

.schedule-days-table th:first-child,
.schedule-days-table td:first-child {
    width: 45%;
}

.schedule-days-table select {
    min-width: 240px;
    padding: 8px 10px;
    font-size: 14px;
}

/* Evidencija radnog vremena */
.attendance-page {
    max-width: 100%;
}

.attendance-filter {
    background: #f7f8fa;
    border: 1px solid #d9dee5;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selection-group {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.selection-group strong {
    margin-right: 5px;
}

.filter-group select,
.filter-group input {
    padding: 7px;
}

#multiple_filter select {
    min-width: 220px;
    min-height: 120px;
}

.filter-submit {
    display: flex;
    align-items: flex-end;
}

.compact-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: -46px;
    margin-bottom: 16px;
}

.attendance-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 13px;
}

.attendance-table th,
.attendance-table td {
    border: 1px solid #cbd2da;
    padding: 8px 9px;
}

.attendance-table th {
    background: #eef1f5;
    text-align: center;
    font-size: 12px;
}

.attendance-table td:nth-child(1),
.attendance-table td:nth-child(4),
.attendance-table td:nth-child(5),
.attendance-table td:nth-child(6),
.attendance-table td:nth-child(7),
.attendance-table td:nth-child(8),
.attendance-table td:nth-child(9),
.attendance-table td:nth-child(10),
.attendance-table td:nth-child(11),
.attendance-table td:nth-child(12) {
    text-align: center;
}

.attendance-table td:nth-child(2) {
    white-space: normal;
    min-width: 150px;
}

.attendance-logs {
    line-height: 1.5;
    min-width: 150px;
}

.attendance-logs div {
    display: inline-block;
    margin-right: 7px;
}

.attendance-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f7f8fa;
    border-left: 3px solid #bfc7d1;
    font-size: 13px;
}

.empty-message {
    padding: 15px;
    background: #f7f8fa;
    border: 1px solid #d9dee5;
}

@media (max-width: 768px) {
    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input[type="date"] {
        width: 100%;
    }

    #multiple_filter select {
        min-width: 0;
    }

    .filter-submit {
        width: 100%;
    }

    .filter-submit button {
        width: 100%;
    }

    .compact-actions {
        margin: -5px 0 12px;
        justify-content: flex-start;
    }
}


/* =========================================
   MODERNI APLIKACIJSKI IZGLED
========================================= */

:root {
    --navy-950: #0b1220;
    --navy-900: #111c31;
    --navy-800: #172743;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --slate-900: #172033;
    --slate-700: #40506a;
    --slate-500: #71809a;
    --slate-300: #dbe2ec;
    --surface: #ffffff;
    --surface-muted: #f7f9fc;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 5px rgba(15, 23, 42, .04);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
}

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--slate-900);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .10), transparent 27rem),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Rezerviše mjesto za vertikalni skrol da se centrirani header ne pomjera između stranica. */
html {
    scrollbar-gutter: stable;
}

/* Zaglavlje */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border: 0;
    background: linear-gradient(115deg, var(--navy-950), var(--navy-800));
    box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}

.header-top {
    max-width: 1480px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 28px;
    border-color: rgba(255, 255, 255, .10);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 12px;
    font-size: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}

.header-title {
    padding: 0;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.header-subtitle {
    margin-top: 2px;
    color: #96b4df;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.logged-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px 6px 6px;
    color: #e5edf9;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.header-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logout-link {
    padding: 9px 12px;
    border: 1px solid rgba(254, 202, 202, .20);
    border-radius: 9px;
    color: #fecaca;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(244, 63, 94, .08);
    transition: background .18s ease, color .18s ease;
}

.header-logout-link:hover {
    color: #ffffff;
    background: rgba(244, 63, 94, .25);
}

.user-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logged-user strong {
    font-size: 12px;
}

.logged-user .user-details span {
    margin-top: 2px;
    color: #aac0e3;
    font-size: 10px;
    text-transform: capitalize;
}

.app-nav {
    max-width: 1480px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 18px;
    gap: 2px;
    flex-wrap: nowrap;
    overflow: visible;
}

.app-nav > .dropdown {
    flex: 0 0 auto;
}

.app-nav a {
    margin: 7px 1px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #c6d2e5;
    font-size: 13px;
    font-weight: 550;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.app-nav a:hover,
.app-nav a:focus-visible {
    color: #ffffff;
    outline: none;
    background: rgba(96, 165, 250, .17);
}

.app-nav a.is-active {
    color: #ffffff;
    background: rgba(59, 130, 246, .28);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .18);
}

.menu-warning {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, .08);
}

.logout-link {
    color: #fecaca !important;
}

.dropdown-menu {
    top: calc(100% + 3px);
    min-width: 235px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}

.dropdown-menu a {
    margin: 0;
    padding: 10px 11px;
    border-radius: 8px;
    color: var(--slate-700);
    font-weight: 600;
}

.dropdown-menu a:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

/* Sadržaj, kartice i tabele */
.container {
    max-width: 1480px;
    margin: 34px auto 48px;
    padding: 0 28px;
}

h1, h2, h3 {
    letter-spacing: -.025em;
    color: var(--slate-900);
}

.welcome-card,
.form-card,
.dashboard-panel,
.table-responsive,
.attendance-filter,
.empty-message {
    border: 1px solid rgba(203, 213, 225, .85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.welcome-card,
.form-card {
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-md);
}

.form-card {
    padding: 30px 36px;
}

.form-card h1 {
    font-size: 30px;
}

.form-card .form-description,
.dashboard-welcome p {
    color: var(--slate-500);
}

input, select, textarea {
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: var(--slate-900);
    background: #ffffff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

button,
.btn,
.btn-back,
.filter-submit button {
    border-radius: 9px;
    box-shadow: 0 2px 5px rgba(37, 99, 235, .16);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover,
.btn:hover,
.btn-back:hover,
.filter-submit button:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(37, 99, 235, .18);
}

.dashboard {
    padding-top: 10px;
}

.dashboard-welcome {
    margin-bottom: 26px;
}

.dashboard-welcome h1 {
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 780;
}

.dashboard-date {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1e40af;
    background: #eff6ff;
}

.dashboard-cards {
    gap: 16px;
    margin-bottom: 26px;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(203, 213, 225, .80);
    border-left: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-card::after {
    position: absolute;
    right: -17px;
    bottom: -28px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .06);
    content: "";
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    font-size: 23px;
    background: #eff6ff;
}

.card-number {
    font-size: 30px;
    letter-spacing: -.04em;
}

.card-label {
    color: var(--slate-500);
    font-weight: 600;
}

.card-success { border-left: 4px solid #10b981; }
.card-danger { border-left: 4px solid #ef4444; }
.card-warning { border-left: 4px solid #f59e0b; }

.dashboard-grid {
    gap: 20px;
}

.dashboard-panel {
    padding: 22px;
    border-color: rgba(203, 213, 225, .85);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow-sm);
}

.panel-header {
    border-color: #e8edf4;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 750;
}

.panel-header a {
    padding: 7px 10px;
    border-radius: 8px;
    color: #2563eb;
    font-weight: 700;
    background: #eff6ff;
}

.dashboard-table th {
    color: var(--slate-500);
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-table td {
    border-color: #edf1f6;
}

.quick-action {
    min-height: 108px;
    border-color: #dbe5f2;
    border-radius: 13px;
    color: var(--slate-700);
    font-weight: 650;
    background: linear-gradient(145deg, #ffffff, #f7faff);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.quick-action:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.table-responsive {
    border-color: #dbe3ee;
    box-shadow: var(--shadow-md);
}

.table-section table th,
.attendance-table th {
    color: #31415b;
    background: #f1f5f9;
}

.table-section table td,
.attendance-table td {
    border-color: #e5ebf2;
}

.table-section table tbody tr:hover,
.attendance-table tbody tr:hover {
    background: #f8fbff;
}

.attendance-filter {
    padding: 19px;
    border-color: #dbe3ee;
    background: rgba(255, 255, 255, .85);
}

.attendance-note {
    border-left-color: var(--blue-500);
    border-radius: 0 10px 10px 0;
    color: var(--slate-700);
    background: #eff6ff;
}

@media (max-width: 800px) {
    .header-top,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-top {
        min-height: 62px;
    }

    .header-subtitle,
    .user-details span {
        display: none;
    }

    .header-logout-link {
        padding: 8px 9px;
        font-size: 11px;
    }

    .app-nav {
        padding: 0 10px;
        overflow: visible;
    }

    .app-nav a {
        font-size: 12px;
    }

    .form-card {
        padding: 24px 20px;
    }

    .dashboard-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-card {
        min-width: 0;
        padding: 16px;
    }
}

/* Dashboard: kontrolni centar */
.dashboard {
    max-width: 1320px;
}

.dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 168px;
    margin: 8px 0 20px;
    padding: 30px 34px;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 77% 10%, rgba(56, 189, 248, .22), transparent 20rem),
        linear-gradient(115deg, #0d1c35 0%, #122b4c 58%, #263b83 100%);
    box-shadow: 0 18px 35px rgba(27, 53, 108, .20);
}

.dashboard-hero::before,
.dashboard-hero::after {
    position: absolute;
    border: 1px solid rgba(147, 197, 253, .12);
    border-radius: 50%;
    content: "";
}

.dashboard-hero::before {
    width: 260px;
    height: 260px;
    right: 130px;
    top: -155px;
}

.dashboard-hero::after {
    width: 410px;
    height: 410px;
    right: -70px;
    top: -260px;
}

.dashboard-hero-copy,
.dashboard-hero-actions {
    position: relative;
    z-index: 1;
}

.dashboard-eyebrow {
    margin-bottom: 14px;
    color: #67e8f9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(29px, 3.1vw, 40px);
    font-weight: 780;
    letter-spacing: -.045em;
}

.dashboard-hero h1 span {
    color: #61c8ff;
}

.dashboard-hero p {
    max-width: 650px;
    color: #d3e1f6;
    font-size: 13px;
}

.dashboard-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-hero .dashboard-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 116px;
    padding: 11px 14px;
    border: 1px solid rgba(147, 197, 253, .22);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, .10);
}

.dashboard-hero .dashboard-date span {
    color: #a8c4e8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-hero .dashboard-date strong {
    font-size: 12px;
}

.dashboard-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    background: linear-gradient(135deg, #1677e7, #1b9bef);
    box-shadow: 0 8px 18px rgba(2, 132, 199, .30);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-hero-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 132, 199, .42);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 20px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 138px;
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-bottom: 3px solid #2e6bff;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 20px rgba(38, 57, 89, .06);
}

.dashboard-card::after {
    display: none;
}

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

.dashboard-card .card-icon {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    color: #4f2a98;
    font-size: 17px;
    font-weight: 800;
    background: #f1edff;
}

.card-chip {
    padding: 4px 7px;
    border-radius: 999px;
    color: #8292aa;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #f4f7fb;
}

.card-content {
    margin-top: 16px;
}

.dashboard-card .card-number {
    font-size: 29px;
    font-weight: 780;
}

.dashboard-card .card-label {
    color: #657692;
    font-size: 11px;
}

.dashboard-card.card-success { border-bottom-color: #22c78a; }
.dashboard-card.card-success .card-icon { color: #00a66a; background: #eafbf4; }
.dashboard-card.card-danger { border-bottom-color: #ff5364; }
.dashboard-card.card-danger .card-icon { color: #f43f5e; background: #fff0f2; }
.dashboard-card.card-warning { border-bottom-color: #f5b800; }
.dashboard-card.card-warning .card-icon { color: #d78b00; background: #fff8df; }
.dashboard-card.card-device { border-bottom-color: #8c57ff; }
.dashboard-card.card-device .card-icon { color: #7136ed; background: #f3efff; }

.dashboard-grid {
    grid-template-columns: minmax(0, 2.15fr) minmax(330px, 1fr);
    gap: 16px;
}

.dashboard-panel {
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(38, 57, 89, .05);
}

.panel-header {
    margin: 0 -18px 10px;
    padding: 0 18px 14px;
}

.panel-header h2 {
    font-size: 15px;
}

.panel-header a {
    padding: 0;
    color: #2563eb;
    font-size: 11px;
    background: transparent;
}

.dashboard-table td {
    padding: 12px 8px;
    color: #35445d;
    font-size: 12px;
}

.dashboard-table th {
    padding: 9px 8px;
    font-size: 9px;
}

@media (max-width: 1100px) {
    .dashboard-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        padding: 26px 22px;
    }

    .dashboard-hero-actions {
        flex-wrap: wrap;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Prijava */
.login-page {
    min-height: 100vh;
    background: #0b1730;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
    min-height: 100vh;
}

.login-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 42px clamp(40px, 7vw, 120px);
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(5, 16, 37, .94) 0%, rgba(7, 25, 56, .78) 48%, rgba(11, 39, 79, .40) 100%),
        radial-gradient(circle at 22% 12%, rgba(37, 99, 235, .28), transparent 23rem),
        url("assets/login-analyst.png") center right / cover no-repeat;
}

.login-intro::before,
.login-intro::after {
    position: absolute;
    border: 1px solid rgba(125, 211, 252, .14);
    border-radius: 50%;
    content: "";
}

.login-intro::before {
    width: 480px;
    height: 480px;
    right: -170px;
    top: -200px;
}

.login-intro::after {
    width: 720px;
    height: 720px;
    left: -460px;
    bottom: -440px;
}

.login-brand,
.login-intro-content,
.login-intro-footer {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 14px;
    font-size: 22px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 10px 25px rgba(37, 99, 235, .40);
}

.login-brand strong,
.login-brand span {
    display: block;
}

.login-brand strong {
    font-size: 20px;
    letter-spacing: -.03em;
}

.login-brand span {
    margin-top: 1px;
    color: #94b8e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-intro-content {
    max-width: 560px;
    margin: auto 0;
}

.login-intro-content h1 {
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.04;
    letter-spacing: -.06em;
}

.login-intro-content h1 span {
    color: #60caff;
}

.login-intro-content p {
    max-width: 470px;
    color: #c4d7f1;
    font-size: 16px;
    line-height: 1.7;
}

.login-intro-footer {
    color: #8eadd5;
    font-size: 12px;
}

.login-card-wrap {
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f5f8fd;
}

.login-card {
    width: min(100%, 405px);
    padding: 36px;
    border: 1px solid #e0e8f3;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(30, 53, 92, .13);
}

.login-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.login-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #2563eb;
    font-size: 20px;
    font-weight: 800;
    background: #eaf2ff;
}

.login-card h2 {
    margin: 0 0 4px;
    font-size: 23px;
}

.login-card-heading p,
.login-help {
    margin: 0;
    color: #7a8aa4;
    font-size: 12px;
}

.login-field {
    margin-bottom: 17px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
    color: #34425b;
    font-size: 13px;
    font-weight: 750;
}

.login-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border-radius: 10px;
    font: inherit;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 7px;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #1499e8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .27);
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 25px rgba(37, 99, 235, .35);
}

.login-help {
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -8px 0 18px;
    padding: 10px 11px;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #be123c;
    font-size: 12px;
    background: #fff1f2;
}

.login-error span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    background: #f43f5e;
}

/* Kadrovski profil radnika */
.profile-section {
    margin: 28px 0 0;
    padding: 22px;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    background: #f8fbff;
}

.profile-section h2 {
    margin: 0 0 18px;
    color: #1f3b63;
    font-size: 17px;
}

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

.profile-grid-wide {
    grid-column: 1 / -1;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #71809a;
    font-size: 11px;
    line-height: 1.35;
}

.employment-history-section {
    margin-top: 32px;
}

.employment-history-table {
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

.employment-history-table th:nth-child(1) { width: 15%; }
.employment-history-table th:nth-child(2) { width: 25%; }
.employment-history-table th:nth-child(3) { width: 19%; }
.employment-history-table th:nth-child(4) { width: 17%; }
.employment-history-table th:nth-child(5) { width: 24%; }

.employment-history-table th,
.employment-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5ebf3;
    text-align: left;
    vertical-align: top;
}

.employment-history-table th {
    color: #64748b;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #f1f5f9;
}

.employment-history-table tbody tr:first-child {
    background: #f7fbff;
}

.employment-history-table tbody tr:hover {
    background: #edf6ff;
}

.employment-history-table strong {
    color: #1e3a63;
}

.employment-history-table td span {
    color: #71809a;
    font-size: 12px;
}

.history-date-to {
    white-space: nowrap;
}

.profile-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.return-to-profile {
    min-height: 45px;
    padding-inline: 16px;
    font-weight: 750;
}

.employee-documents-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 7px 15px 7px 9px;
    border: 1px solid #8bb8ff;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(135deg, #1d5fc1, #228ce1);
    box-shadow: 0 7px 16px rgba(30, 99, 195, .25);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.employee-documents-button:hover {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 99, 195, .34);
}

.employee-trainings-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 7px 15px 7px 10px;
    border: 1px solid #bb9eff;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(135deg, #7047cf, #915bed);
    box-shadow: 0 7px 16px rgba(112, 71, 207, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.employee-trainings-button:hover { color: #ffffff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(112, 71, 207, .32); }
.employee-trainings-button > span:first-child { display: grid; width: 29px; height: 31px; place-items: center; border-radius: 8px; color: #6730bf; font-size: 20px; background: #f6f0ff; }
.employee-trainings-button small { display: block; margin-bottom: 3px; color: #ecddff; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.training-status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px !important; font-weight: 800; white-space: nowrap; }
.training-valid { color: #047857 !important; background: #d1fae5; }
.training-expiring { color: #b45309 !important; background: #fef3c7; }
.training-expired { color: #be123c !important; background: #ffe4e6; }

.contracts-page-header { margin-bottom: 22px; }
.contracts-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.contract-summary-card { display: block; min-height: 132px; padding: 19px; border: 1px solid #dce8f5; border-radius: 14px; color: #24466f; text-decoration: none; background: #fff; box-shadow: 0 8px 22px rgba(32, 75, 130, .06); transition: transform .16s ease, box-shadow .16s ease; }
.contract-summary-card:hover, .contract-summary-card.selected { color: #174b85; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(32, 75, 130, .13); }
.contract-summary-card span { display: block; color: #6982a1; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.contract-summary-card strong { display: block; margin: 9px 0 4px; color: #17385f; font-size: 31px; }
.contract-summary-card small { color: #7286a0; font-size: 12px; }
.contract-summary-card.expiring { border-bottom: 3px solid #f59e0b; }.contract-summary-card.expired { border-bottom: 3px solid #f43f5e; }.contract-summary-card.missing { border-bottom: 3px solid #8b5cf6; }
.contracts-table-card { padding: 0; overflow: hidden; }.contracts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid #e5ebf3; }.contracts-toolbar h2 { margin: 0; color: #183b63; font-size: 18px; }.contract-period-filter { display: flex; align-items: center; gap: 5px; color: #6b7f99; font-size: 12px; }.contract-period-filter a { padding: 6px 8px; border-radius: 7px; color: #46719f; text-decoration: none; }.contract-period-filter a.active { color: #fff; background: #2563eb; }
.contracts-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }.contracts-table th, .contracts-table td { padding: 12px 14px; border-bottom: 1px solid #e8eef5; text-align: left; vertical-align: middle; }.contracts-table th { color: #6a819d; font-size: 10px; letter-spacing: .07em; background: #f7faff; }.contracts-table td span { color: #7387a0; font-size: 12px; }.contracts-table tbody tr:hover { background: #f5f9ff; }
.contract-status { display: inline-block; padding: 6px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }.contract-active, .contract-indefinite { color: #047857; background: #d1fae5; }.contract-expiring { color: #b45309; background: #fef3c7; }.contract-expired { color: #be123c; background: #ffe4e6; }.contract-missing { color: #6d28d9; background: #ede9fe; }

.planner-page { max-width: 1580px; }.planner-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 27px 30px; border: 1px solid #2d70bd; border-radius: 17px; color: #fff; background: radial-gradient(circle at 86% 10%, rgba(77, 190, 255, .55), transparent 25%), radial-gradient(circle at 68% 100%, rgba(107, 85, 219, .32), transparent 34%), linear-gradient(120deg, #143866, #1b5da8); box-shadow: 0 13px 30px rgba(21, 58, 108, .17); }.planner-kicker { color: #a7e5ff; font-size: 10px; font-weight: 800; letter-spacing: .13em; }.planner-hero h1 { margin: 7px 0 6px; color: #ffffff; font-size: 31px; text-shadow: 0 2px 8px rgba(5, 30, 68, .2); }.planner-hero p { margin: 0; color: #e7f3ff; }.planner-add-button { text-decoration: none; white-space: nowrap; box-shadow: 0 8px 18px rgba(4, 32, 81, .28); }

.planner-hero-actions { display: flex; align-items: center; gap: 10px; }.planner-view-switch { padding: 10px 13px; border: 1px solid rgba(204, 229, 255, .45); border-radius: 9px; color: #e6f3ff; text-decoration: none; font-size: 12px; font-weight: 750; background: rgba(7, 35, 78, .28); }.planner-view-switch:hover { color: #fff; background: rgba(7, 35, 78, .47); }
.planner-controls { display: flex; align-items: end; gap: 13px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #dbe7f4; border-radius: 13px; background: #fff; }.planner-navigation { display: flex; align-items: center; gap: 11px; min-width: 220px; }.planner-navigation div { min-width: 142px; text-align: center; }.planner-navigation strong { display: block; color: #1b416c; font-size: 14px; }.planner-navigation span { color: #7890aa; font-size: 11px; }.planner-nav-button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #c7d9ee; border-radius: 8px; color: #1c5da3; font-size: 24px; text-decoration: none; background: #f5f9ff; }.planner-filter label { display: block; margin-bottom: 5px; color: #6d829d; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.planner-filter input, .planner-filter select { height: 38px; min-width: 150px; padding: 6px 9px; font-size: 13px; }.planner-controls button { height: 38px; padding: 0 17px; }
.planner-grid-card { overflow: hidden; border: 1px solid #d7e4f2; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(35, 75, 119, .07); }.planner-legend { display: flex; align-items: center; gap: 19px; padding: 12px 18px; border-bottom: 1px solid #e5edf6; color: #637c98; font-size: 12px; }.planner-legend span { display: inline-flex; align-items: center; gap: 6px; }.planner-legend i { width: 11px; height: 11px; border-radius: 3px; }.legend-shift { background: #4f86e6; }.legend-leave { background: #45b983; }.legend-empty { border: 1px dashed #9bb0c7; background: #f7faff; }.planner-table-wrap { overflow-x: auto; }.schedule-planner-table { width: 100%; min-width: 1130px; border-collapse: separate; border-spacing: 0; }.schedule-planner-table th { padding: 11px 8px; border-bottom: 1px solid #dce8f4; color: #6d829d; font-size: 10px; letter-spacing: .06em; background: #f7faff; }.schedule-planner-table th span, .schedule-planner-table th strong { display: block; }.schedule-planner-table th strong { margin-top: 4px; color: #274b76; font-size: 12px; }.planner-employee-col { min-width: 222px; text-align: left; padding-left: 18px !important; }.schedule-planner-table td { height: 72px; padding: 5px; border-bottom: 1px solid #e8eff6; border-right: 1px solid #edf2f7; }.schedule-planner-table tr:last-child td { border-bottom: 0; }.schedule-planner-table .weekend { background: #fbfcfe; }.planner-employee { min-width: 222px; padding: 9px 14px 9px 18px !important; border-right: 1px solid #dce8f4 !important; background: #fff; }.planner-employee strong { display: block; color: #1a3d67; font-size: 13px; }.planner-employee span { display: block; margin-top: 4px; color: #788ea8; font-size: 11px; }.planner-cell { display: flex; min-height: 58px; align-items: center; justify-content: center; flex-direction: column; padding: 5px; border-radius: 8px; color: #fff; text-align: center; text-decoration: none; }.planner-cell b { max-width: 125px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.planner-cell span { margin-top: 3px; opacity: .83; font-size: 9px; }.planner-cell:hover { filter: brightness(.96); transform: translateY(-1px); }.shift-color-1 { background: #3d79d5; }.shift-color-2 { background: #7255c8; }.shift-color-3 { background: #0b8586; }.shift-color-4 { background: #a15dba; }.shift-color-5 { background: #bd6c3d; }.planner-leave { color: #0f6749; background: #d8f6e7; }.planner-leave span { color: #368367; }.planner-empty { border: 1px dashed #bfcedd; color: #8ba0b7; background: #fbfdff; }.planner-empty:hover { color: #2b69af; border-color: #78a8dd; background: #f1f7ff; }.planner-summary { display: grid; grid-template-columns: 1fr 1fr 1fr 2.4fr; gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid #dce8f4; border-radius: 12px; background: #dce8f4; }.planner-summary > div { min-height: 83px; padding: 16px; background: #fff; }.planner-summary span { display: block; color: #7590ad; font-size: 9px; font-weight: 800; letter-spacing: .07em; }.planner-summary strong { display: block; margin-top: 7px; color: #183b63; font-size: 22px; }.planner-summary-shifts strong { font-size: 13px; line-height: 1.6; }

.monthly-tip { margin-left: auto; color: #8a9caf; font-size: 11px; }.monthly-planner-table { width: 100%; min-width: 2100px; border-collapse: separate; border-spacing: 0; }.monthly-planner-table th { height: 48px; min-width: 48px; padding: 7px 3px; border-bottom: 1px solid #dce8f4; color: #7188a3; font-size: 9px; background: #f7faff; }.monthly-planner-table th span, .monthly-planner-table th strong { display: block; }.monthly-planner-table th strong { margin-top: 3px; color: #284d78; font-size: 11px; }.monthly-planner-table td { width: 48px; height: 51px; padding: 3px; border-right: 1px solid #edf2f7; border-bottom: 1px solid #e8eff6; }.monthly-planner-table tr:last-child td { border-bottom: 0; }.monthly-planner-table .weekend { background: #fbfcfe; }.monthly-day { text-align: center; }.monthly-cell { display: grid; width: 100%; height: 40px; place-items: center; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 800; text-decoration: none; }.monthly-cell:hover { filter: brightness(.95); transform: translateY(-1px); }.monthly-leave { color: #126044; background: #d8f6e7; }.monthly-empty { border: 1px dashed #bfcedd; color: #9aacbf; background: #fbfdff; }.monthly-empty:hover { color: #2b69af; border-color: #78a8dd; background: #f1f7ff; }.monthly-summary { grid-template-columns: repeat(4, 1fr); }

/* Kontrole planera i odsustva */
.planner-view-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #d2e1f0; border-radius: 9px; background: #f5f9fd; }
.planner-view-tabs a, .planner-view-tabs span { padding: 8px 10px; border-radius: 6px; color: #607b98; text-decoration: none; font-size: 12px; font-weight: 750; white-space: nowrap; }
.planner-view-tabs .planner-view-active { color: #fff; background: #2467be; box-shadow: 0 2px 5px rgba(30, 92, 172, .22); }
.planner-controls .planner-add-button { display: inline-flex; align-items: center; justify-content: center; height: 38px; margin-left: auto; padding: 0 15px; color: #fff; }
.legend-leave { background: #f59e0b; }
.planner-leave { color: #884400; background: #fff0c8; }
.planner-leave span { color: #a15d08; }
.monthly-leave { color: #8a4500; background: #ffe8ab; }
.planner-nonworking { color: #536b86; background: repeating-linear-gradient(135deg, #e8eef5 0 7px, #dfe8f2 7px 14px); }
.planner-nonworking span { color: #637d98; }
.monthly-nonworking { color: #637d98; background: repeating-linear-gradient(135deg, #e8eef5 0 6px, #dfe8f2 6px 12px); }
.legend-holiday { background: #e54868; }.legend-annual { background: #20a66c; }.legend-sick { background: #8060d4; }
.planner-holiday { color: #ffffff; background: linear-gradient(135deg, #dd3f61, #f06b80); }.planner-holiday span { color: #ffe8ed; }
.planner-annual-leave { color: #ffffff; background: #1f9b67; }.planner-annual-leave span { color: #daf8e9; }
.planner-sick-leave { color: #ffffff; background: #7354c8; }.planner-sick-leave span { color: #ece5ff; }
.planner-other-leave { color: #8a4500; background: #fff0c8; }.planner-other-leave span { color: #a15d08; }
.monthly-holiday { color: #ffffff; background: #e14c6c; }.monthly-annual-leave { color: #ffffff; background: #1f9b67; }.monthly-sick-leave { color: #ffffff; background: #7354c8; }.monthly-other-leave { color: #8a4500; background: #ffe8ab; }

/* Kompaktan mjesečni planer za široke ekrane: 31 dan staje u jedan prikaz. */
@media (min-width: 1200px) {
    .monthly-planner-table {
        min-width: 1320px;
    }

    .monthly-planner-table .planner-employee-col,
    .monthly-planner-table .planner-employee {
        min-width: 190px;
    }

    .monthly-planner-table th,
    .monthly-planner-table td {
        width: 36px;
        min-width: 36px;
    }

    .monthly-planner-table th {
        height: 42px;
        padding: 5px 2px;
    }

    .monthly-planner-table td {
        height: 43px;
        padding: 2px;
    }

    .monthly-planner-table .planner-employee {
        padding: 7px 10px 7px 14px !important;
    }

    .monthly-planner-table .planner-employee strong {
        font-size: 12px;
    }

    .monthly-planner-table .planner-employee span {
        font-size: 10px;
    }

    .monthly-cell {
        height: 32px;
        border-radius: 6px;
        font-size: 9px;
    }
}

.employee-documents-button small {
    display: block;
    margin-bottom: 3px;
    color: #cfe6ff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}

.document-button-icon {
    display: grid;
    width: 29px;
    height: 31px;
    place-items: center;
    border-radius: 5px 9px 5px 5px;
    color: #1555af;
    font-size: 22px;
    line-height: 1;
    background: repeating-linear-gradient(to bottom, #ffffff 0 5px, #d9ebff 6px 7px);
    box-shadow: 1px 1px 0 rgba(13, 55, 125, .25);
}

.employee-documents-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 13px;
}

.employee-documents-table th,
.employee-documents-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5ebf3;
    text-align: left;
    vertical-align: top;
}

.employee-documents-table th {
    color: #64748b;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: #f1f5f9;
}

.employee-documents-table tbody tr:hover {
    background: #edf6ff;
}

.employee-documents-table strong {
    color: #1e3a63;
}

.employee-documents-table td span {
    color: #71809a;
    font-size: 12px;
}

.document-actions {
    display: flex;
    gap: 7px;
    white-space: nowrap;
}

.document-actions form {
    margin: 0;
}

.btn-small {
    padding: 7px 10px;
    font-size: 12px;
}

.btn-danger {
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: #b91c1c;
    font-weight: 700;
    cursor: pointer;
    background: #fff1f2;
}

.btn-danger:hover {
    background: #ffe4e6;
}

.document-expired {
    color: #be123c !important;
    font-weight: 700;
}

.schedule-edit-card {
    max-width: 850px;
}

.schedule-assignment-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f6faff, #eef6ff);
}

.schedule-assignment-summary div {
    padding: 4px 8px;
}

.schedule-assignment-summary span {
    display: block;
    margin-bottom: 7px;
    color: #6b85a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
}

.schedule-assignment-summary strong {
    color: #17385f;
    font-size: 15px;
}

@media (max-width: 650px) {
    .profile-section {
        padding: 18px;
    }

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

    .profile-grid-wide {
        grid-column: auto;
    }

    .schedule-assignment-summary {
        grid-template-columns: 1fr;
    }

    .contracts-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contracts-toolbar { align-items: flex-start; flex-direction: column; }
    .planner-hero { align-items: flex-start; flex-direction: column; }.planner-controls { align-items: stretch; flex-wrap: wrap; }.planner-summary { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-intro {
        min-height: 290px;
        padding: 28px;
    }

    .login-intro-content {
        margin: 45px 0 0;
    }

    .login-intro-content h1 {
        font-size: 36px;
    }

    .login-intro-footer {
        display: none;
    }

    .login-card-wrap {
        padding: 24px 16px 40px;
    }

    .login-card {
        padding: 28px 22px;
    }
}
