/* Přihlášení. Pořadí sekcí zachovává přepisování pravidel starších agend. */

.zedis-login-body {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f8;
}

.zedis-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 42%) 1fr;
}

.zedis-login-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: 48px 55px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 25% 20%, rgba(24, 166, 106, 0.18), transparent 38%), #171c20;
    color: #fff;
}

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

.zedis-login-logo {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--zedis-green);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.zedis-login-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.zedis-login-brand-subtitle {
    margin-top: 2px;
    color: #79858b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.zedis-login-brand-content {
    margin: auto 0;
    max-width: 470px;
}

.zedis-login-brand-content h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -0.045em;
}

.zedis-login-brand-content p {
    max-width: 410px;
    margin: 0;
    color: #9ca8ae;
    font-size: 15px;
    line-height: 1.7;
}

.zedis-login-brand-footer {
    color: #657178;
    font-size: 11px;
}

.zedis-login-form-panel {
    display: grid;
    place-items: center;
    padding: 40px;
    background: #f5f7f8;
}

.zedis-login-form-wrap {
    width: 100%;
    max-width: 410px;
}

.zedis-login-mobile-brand {
    display: none;
}

.zedis-login-header {
    margin-bottom: 30px;
}

.zedis-login-header h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.zedis-login-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.zedis-login-field {
    margin-bottom: 18px;
}

.zedis-login-field label {
    display: block;
    margin-bottom: 7px;
    color: #58636a;
    font-size: 12px;
    font-weight: 650;
}

.zedis-login-input-wrap {
    position: relative;
}

.zedis-login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9aa4aa;
    font-size: 14px;
}

.zedis-login-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 45px 0 42px;
    border: 1px solid #dfe4e7;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: 0;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.zedis-login-input-wrap input:focus {
    border-color: var(--zedis-green);
    box-shadow: 0 0 0 3px rgba(24, 166, 106, 0.1);
}

.zedis-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #929ca2;
    cursor: pointer;
}

.zedis-password-toggle:hover {
    background: #f3f5f5;
}

.zedis-login-submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 10px;
    background: var(--zedis-green);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.zedis-login-submit:hover {
    background: var(--zedis-green-dark);
}

.zedis-login-submit:active {
    transform: translateY(1px);
}

.zedis-login-error {
    margin-bottom: 20px;
    padding: 13px 14px;
    display: flex;
    gap: 10px;
    border: 1px solid #efcccc;
    border-radius: 10px;
    background: #fff0f0;
    color: #b64646;
    font-size: 12px;
    line-height: 1.5;
}

.zedis-login-footer {
    margin-top: 27px;
    color: #a0a9ae;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 850px) {
    .zedis-login-page {
        display: block;
    }

    .zedis-login-brand-panel {
        display: none;
    }

    .zedis-login-form-panel {
        min-height: 100vh;
        padding: 30px 20px;
    }

    .zedis-login-mobile-brand {
        margin-bottom: 45px;
        display: flex;
        align-items: center;
        gap: 11px;
    }

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

    .zedis-login-mobile-brand strong {
        font-size: 17px;
    }

    .zedis-login-mobile-brand span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.07em;
    }
}

/* REVIZE - FORM */

.revision-preview-box {
    min-height: 70px;
    margin-top: 4px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 11px;
    background: #f6f8f7;
}

.revision-preview-box span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.revision-preview-box strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
}

.revision-preview-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.revision-form-status {
    padding: 14px;
    border-radius: 10px;
    background: #f5f6f7;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.revision-form-status.ok {
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.revision-form-status.error {
    background: #fdeaea;
    color: #bd4343;
}

/* REVIZE */

.revision-card {
    height: 100%;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.revision-card.ok {
    border-top: 3px solid var(--zedis-green);
}

.revision-card.warning {
    border-top: 3px solid #e6a23c;
}

.revision-card.expired {
    border-top: 3px solid #d9534f;
}

.revision-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.revision-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 18px;
}

.revision-icon.ok {
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.revision-icon.warning {
    background: #fff4df;
    color: #d98a17;
}

.revision-icon.expired {
    background: #fdeaea;
    color: #c84949;
}

.revision-status {
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.revision-status.ok {
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.revision-status.warning {
    background: #fff4df;
    color: #c67e14;
}

.revision-status.expired {
    background: #fdeaea;
    color: #bd4343;
}

.revision-title {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 18px;
    font-weight: 750;
}

.revision-info {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.revision-info-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
}

.revision-info-row + .revision-info-row {
    border-top: 1px solid var(--border);
}

.revision-info-row span {
    color: var(--muted);
}

.revision-info-row strong {
    color: var(--text);
}

.revision-days {
    margin-top: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
}

.revision-days span {
    font-size: 11px;
    font-weight: 600;
}

.revision-days strong {
    font-size: 16px;
}

.revision-days.ok {
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.revision-days.warning {
    background: #fff4df;
    color: #c67e14;
}

.revision-days.expired {
    background: #fdeaea;
    color: #bd4343;
}

.revision-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

/* SERVIS - FORM */

.service-km-input {
    position: relative;
}

.service-km-input .zedis-form-control {
    padding-right: 50px;
}

.service-km-input span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.service-repairs-textarea {
    min-height: 180px;
}

.service-vehicle-box {
    text-align: center;
}

.service-vehicle-box .vehicle-icon {
    margin: 0 auto 16px;
}

.service-vehicle-name {
    color: var(--text);
    font-size: 17px;
    font-weight: 750;
}

.service-vehicle-rz {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.service-vehicle-meta {
    margin-top: 20px;
    padding-top: 18px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border);
}

.service-vehicle-meta div {
    display: flex;
    flex-direction: column;
}

.service-vehicle-meta span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-vehicle-meta strong {
    color: var(--text);
    font-size: 11px;
}

/* SERVIS - HISTORIE */

.service-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.service-history-icon {
    background: #fff2e4;
    color: #e58a24;
}

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

.service-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.service-table th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: #fafbfb;
    color: #89949b;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border);
    color: #394249;
    font-size: 12px;
    vertical-align: middle;
}

.service-table tbody tr:last-child td {
    border-bottom: 0;
}

.service-table tbody tr:hover {
    background: #fafcfb;
}

.service-km-cell {
    width: 210px;
}

.service-km {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text);
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
}

.service-km span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.service-description {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .service-header-actions {
        width: 100%;
    }

    .service-header-actions .zedis-btn {
        flex: 1;
    }

    .service-km-cell {
        width: 140px;
    }
}

.vehicle-icon.service {
    background: #fff2e4;
    color: #e58a24;
}

/* Kompatibilita se staršími Blade šablonami */

/* ZAKAZKOVY LIST - FORM */

.zedis-form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.zedis-form-textarea {
    min-height: 110px;
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    resize: vertical;
}

.zedis-file-control {
    height: auto;
    min-height: 44px;
    padding: 9px 12px;
}

.zedis-current-file {
    margin-top: 8px;
    color: var(--zedis-green-dark);
    font-size: 11px;
}

.zedis-current-file i {
    margin-right: 5px;
}

.zl-items-header,
.zl-item-row {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        minmax(130px, 0.8fr)
        minmax(110px, 0.6fr)
        minmax(120px, 0.7fr);
    gap: 12px;
    align-items: center;
}

.zl-items-header {
    padding: 0 4px 9px;
    color: #8b959b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zl-item-row {
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.zl-item-row:first-of-type {
    border-top: 0;
}

.zl-input-suffix {
    position: relative;
}

.zl-input-suffix .zedis-form-control {
    padding-right: 42px;
}

.zl-input-suffix span {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #9aa3a8;
    font-size: 10px;
}

.zl-row-total {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.zl-total-box {
    margin-top: 18px;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--border);
}

.zl-total-box span {
    color: var(--muted);
    font-size: 12px;
}

.zl-total-box strong {
    min-width: 150px;
    color: var(--zedis-green-dark);
    font-size: 22px;
    text-align: right;
}

@media (max-width: 850px) {
    .zl-items-header {
        display: none;
    }

    .zl-item-row {
        grid-template-columns: 1fr 1fr;
        padding: 16px 0;
    }

    .zl-item-name {
        grid-column: span 2;
    }

    .zl-row-total {
        grid-column: span 2;
        padding-top: 4px;
    }
}

@media (max-width: 600px) {
    .zedis-form-row-2 {
        grid-template-columns: 1fr;
    }

    .zl-item-row {
        grid-template-columns: 1fr;
    }

    .zl-item-name,
    .zl-row-total {
        grid-column: auto;
    }

    .zl-total-box {
        justify-content: space-between;
    }
}

/* ZAKAZKOVE LISTY */

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

.zl-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #fff;
}

.zl-table th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: #fafbfb;
    color: #89949b;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.zl-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: #394249;
    font-size: 12px;
    vertical-align: middle;
}

.zl-table tbody tr:last-child td {
    border-bottom: 0;
}

.zl-table tbody tr:hover {
    background: #fafcfb;
}

.zl-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.zl-id {
    margin-top: 3px;
    color: #9aa4aa;
    font-size: 10px;
}

.zl-customer {
    color: var(--text);
    font-weight: 600;
}

.zl-muted {
    color: var(--muted);
}

.zl-price {
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.zl-price span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
}

.zl-documents {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.zl-document {
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    color: #626d73;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.zl-document:hover {
    border-color: #d7dedb;
    background: #f8faf9;
    color: var(--zedis-green-dark);
}

.zl-document.signed {
    border-color: #cfe8dc;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.zl-document-empty {
    padding: 5px 8px;
    border-radius: 7px;
    background: #f5f6f7;
    color: #9ba4a9;
    font-size: 10px;
    white-space: nowrap;
}

.zl-actions {
    width: 55px;
    text-align: right;
}

/* Detail knihy jízd */

/* Formuláře */

.zedis-form-group {
    margin-bottom: 20px;
}

.zedis-form-group:last-child {
    margin-bottom: 0;
}

.zedis-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #606b72;
    font-size: 12px;
    font-weight: 650;
}

.zedis-form-control {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.zedis-form-control:focus {
    border-color: var(--zedis-green);
    box-shadow: 0 0 0 3px rgba(24, 166, 106, 0.1);
}

select.zedis-form-control {
    cursor: pointer;
}

.zedis-form-row {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    align-items: end;
    gap: 10px;
}

.zedis-form-arrow {
    height: 44px;
    display: grid;
    place-items: center;
    color: #a3adb3;
}

.drive-distance-preview {
    min-height: 52px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    background: #f6f8f7;
}

.drive-distance-preview span {
    color: var(--muted);
    font-size: 12px;
}

.drive-distance-preview strong {
    color: var(--zedis-green-dark);
    font-size: 16px;
}

.zedis-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2px;
    padding-bottom: 20px;
}

.zedis-alert-error {
    padding: 15px 18px;
    border: 1px solid #f0c7c7;
    border-radius: 10px;
    background: #fff1f1;
    color: #a94242;
    font-size: 12px;
}

.zedis-alert-error ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

@media (max-width: 600px) {
    .zedis-form-row {
        grid-template-columns: 1fr;
    }

    .zedis-form-arrow {
        display: none;
    }

    .zedis-form-footer {
        flex-direction: column-reverse;
    }

    .zedis-form-footer .zedis-btn {
        width: 100%;
    }
}

.drive-stat-card {
    height: 100%;
    min-height: 105px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.drive-stat-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
    font-size: 18px;
}

.drive-stat-icon.blue {
    background: #eaf2ff;
    color: #3c76cf;
}

.drive-stat-icon.orange {
    background: #fff2e4;
    color: #e58a24;
}

.drive-stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.drive-stat-value {
    margin-top: 3px;
    color: var(--text);
    font-size: 22px;
    font-weight: 750;
}

.drive-stat-value small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

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

.drive-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    background: #fff;
}

.drive-table th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: #fafbfb;
    color: #89949b;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.drive-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: #394249;
    font-size: 12px;
    vertical-align: middle;
}

.drive-table tbody tr:last-child td {
    border-bottom: 0;
}

.drive-table tbody tr:hover {
    background: #fafcfb;
}

.drive-date {
    color: var(--text);
    font-weight: 650;
    white-space: nowrap;
}

.drive-route {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.drive-route strong {
    font-weight: 650;
}

.drive-route-arrow {
    color: #aab2b7;
    font-size: 10px;
}

.drive-time,
.drive-odometer {
    color: #667178;
    white-space: nowrap;
}

.drive-km-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.drive-actions {
    width: 50px;
    text-align: right;
}

.drive-edit {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #6d777d;
    transition: 0.15s ease;
}

.drive-edit:hover {
    color: var(--zedis-green-dark);
    border-color: #cbded4;
    background: var(--zedis-green-soft);
}

.drive-empty {
    padding: 40px !important;
    color: var(--muted) !important;
    text-align: center;
}

/* Přehled vozidel v knize jízd */

.vehicle-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.vehicle-card-link:hover {
    color: inherit;
}

.vehicle-card {
    height: 100%;
    min-height: 245px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.vehicle-card-link:hover .vehicle-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 30, 35, 0.08);
    border-color: #d6ded9;
}

.vehicle-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.vehicle-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
    font-size: 20px;
}

.vehicle-id {
    color: #a2abb0;
    font-size: 12px;
    font-weight: 600;
}

.vehicle-name {
    margin-bottom: 18px;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.vehicle-meta div {
    display: flex;
    flex-direction: column;
}

.vehicle-meta span {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-meta strong {
    font-size: 12px;
    font-weight: 650;
}

.vehicle-card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--zedis-green-dark);
    font-size: 13px;
    font-weight: 650;
}

.vehicle-card-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.travel-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
}

.travel-form {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}

.travel-field {
    width: 180px;
}

.travel-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.travel-field .form-control {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: none;
}

.travel-field .form-control:focus {
    border-color: var(--zedis-green);
    box-shadow: 0 0 0 3px rgba(24, 166, 106, 0.1);
}

.travel-submit {
    padding-bottom: 1px;
}

@media (max-width: 600px) {
    .travel-field,
    .travel-submit,
    .travel-submit .zedis-btn {
        width: 100%;
    }
}

.zedis-content .content-wrapper {
    margin-left: 0 !important;
    min-height: auto !important;
    background: transparent !important;
}

.zedis-content .content-header {
    padding: 0 0 20px 0;
}

.zedis-content section.content {
    padding: 0;
}

.zedis-content .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Úvodní přehled */

.dashboard-card-link {
    display: block;
    height: 100%;
    color: inherit;
}

.dashboard-card-link:hover {
    color: inherit;
}

.dashboard-module-card {
    height: 100%;
    min-height: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.dashboard-card-link:hover .dashboard-module-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(22, 32, 38, 0.07);
    border-color: #d9dfe3;
}

.dashboard-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.dashboard-module-icon.green {
    background: #e8f8f0;
    color: #15965f;
}

.dashboard-module-icon.blue {
    background: #e9f2ff;
    color: #3578d4;
}

.dashboard-module-icon.orange {
    background: #fff3e5;
    color: #e78a22;
}

.dashboard-module-icon.purple {
    background: #f3eefe;
    color: #805ad5;
}

.dashboard-module-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-module-text {
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-module-action {
    margin-top: 21px;
    color: var(--zedis-green-dark);
    font-size: 13px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 7px;
}

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

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.dashboard-action:hover {
    color: var(--text);
    background: #f8faf9;
    border-color: #dce3df;
}

.dashboard-action-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.dashboard-action strong,
.dashboard-action span {
    display: block;
}

.dashboard-action strong {
    font-size: 13px;
    margin-bottom: 3px;
}

.dashboard-action span {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-info-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.dashboard-info-row:last-child {
    border-bottom: 0;
}

.dashboard-info-label {
    color: var(--muted);
}

.dashboard-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.dashboard-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zedis-green);
}

@media (max-width: 700px) {
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .zedis-page-header {
        flex-direction: column;
    }
}

:root {
    --zedis-green: #18a66a;
    --zedis-green-dark: #118353;
    --zedis-green-soft: #eaf8f1;

    --sidebar-bg: #171c20;
    --sidebar-hover: #22292e;
    --sidebar-text: #aeb9bf;

    --page-bg: #f4f6f8;
    --card-bg: #ffffff;

    --text: #182026;
    --muted: #77838c;
    --border: #e6eaed;

    --radius: 14px;
    --sidebar-width: 245px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--page-bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.zedis-app {
    min-height: 100vh;
}

/* Boční navigace */

.zedis-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1100;
}

.zedis-brand {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.zedis-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--zedis-green);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    margin-right: 12px;
}

.zedis-brand-title {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
}

.zedis-brand-subtitle {
    color: #758087;
    font-size: 11px;
    margin-top: 3px;
}

.zedis-nav {
    padding: 20px 12px;
    flex: 1;
}

.zedis-nav-title {
    padding: 10px 12px 7px;
    color: #647078;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.zedis-nav-link {
    height: 44px;
    padding: 0 13px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: 0.15s ease;
}

.zedis-nav-link:hover {
    color: #fff;
    background: var(--sidebar-hover);
}

.zedis-nav-link.active {
    color: #fff;
    background: var(--zedis-green);
}

.zedis-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.zedis-sidebar-user {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.zedis-user-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.zedis-user-role {
    color: #758087;
    font-size: 11px;
    margin-top: 2px;
}

/* Hlavní obsah */

.zedis-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.zedis-topbar {
    height: 78px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.zedis-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zedis-topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.zedis-topbar-date {
    color: var(--muted);
    font-size: 13px;
}

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

.zedis-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
}

.zedis-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--zedis-green-soft);
    color: var(--zedis-green-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.zedis-content {
    padding: 28px 30px 40px;
}

/* Sdílené prvky formulářů a přehledů */

.zedis-page-header {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.zedis-page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.zedis-page-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.zedis-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(19, 31, 38, 0.025);
}

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

.zedis-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.zedis-card-body {
    padding: 20px;
}

.zedis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.zedis-btn-primary {
    color: #fff;
    background: var(--zedis-green);
}

.zedis-btn-primary:hover {
    color: #fff;
    background: var(--zedis-green-dark);
}

.zedis-btn-secondary {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}

.zedis-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
}

.zedis-overlay {
    display: none;
}

/* Přizpůsobení staršího obsahu AdminLTE a Bootstrap novému layoutu */

.zedis-content .container,
.zedis-content .container-fluid {
    max-width: none;
}

.zedis-content .card {
    border-radius: var(--radius);
    border-color: var(--border);
    box-shadow: none;
}

.zedis-content .table {
    background: #fff;
}

.zedis-content .btn-primary,
.zedis-content .btn-success {
    background-color: var(--zedis-green);
    border-color: var(--zedis-green);
}

/* Mobilní menu řídí třída zedis-menu-open na body společně s překryvem. */

@media (max-width: 900px) {
    .zedis-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.zedis-menu-open .zedis-sidebar {
        transform: translateX(0);
    }

    .zedis-main {
        margin-left: 0;
    }

    .zedis-mobile-toggle {
        display: block;
    }

    body.zedis-menu-open .zedis-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1050;
    }

    .zedis-content {
        padding: 20px 16px 35px;
    }

    .zedis-topbar {
        padding: 0 16px;
    }

    .zedis-topbar-date {
        display: none;
    }

    .zedis-user-chip .zedis-user-name {
        display: none;
    }
}
