
:root {
    --eko-bg: #f4f6f8;
    --eko-card: #ffffff;
    --eko-text: #17212b;
    --eko-muted: #697586;
    --eko-border: #dce2e8;
    --eko-primary: #17324d;
    --eko-primary-hover: #0f2538;
    --eko-success: #16784a;
    --eko-warning: #a46700;
    --eko-danger: #b42318;
    --eko-radius: 14px;
    --eko-shadow: 0 10px 30px rgba(23, 33, 43, .07);
}

body {
    background: var(--eko-bg);
}

.eko-app {
    max-width: 1500px;
    margin: 28px auto;
    padding: 0 20px 50px;
    color: var(--eko-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eko-app *,
.eko-app *::before,
.eko-app *::after {
    box-sizing: border-box;
}

.eko-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: var(--eko-primary);
    color: #fff;
    border-radius: var(--eko-radius) var(--eko-radius) 0 0;
}

.eko-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .08em;
}

.eko-subtitle {
    margin-top: 3px;
    font-size: 13px;
    opacity: .78;
}

.eko-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.eko-user a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eko-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--eko-border);
    border-top: 0;
    border-radius: 0 0 var(--eko-radius) var(--eko-radius);
    box-shadow: var(--eko-shadow);
}

.eko-nav a {
    padding: 10px 14px;
    color: var(--eko-text);
    text-decoration: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 650;
}

.eko-nav a:hover,
.eko-nav a.is-active {
    background: #e9eef3;
    color: var(--eko-primary);
}

.eko-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 18px;
}

.eko-page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.eko-page-head p {
    margin: 0;
    color: var(--eko-muted);
}

.eko-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.eko-card {
    display: block;
    min-height: 140px;
    padding: 22px;
    background: var(--eko-card);
    color: var(--eko-text);
    text-decoration: none;
    border: 1px solid var(--eko-border);
    border-radius: var(--eko-radius);
    box-shadow: var(--eko-shadow);
}

a.eko-card:hover {
    transform: translateY(-2px);
}

.eko-card span {
    display: block;
    color: var(--eko-muted);
    font-size: 14px;
}

.eko-card strong {
    display: block;
    margin-top: 14px;
    font-size: 30px;
    line-height: 1.1;
}

.eko-card small {
    display: block;
    margin-top: 10px;
    color: var(--eko-muted);
}

.eko-panel {
    background: var(--eko-card);
    border: 1px solid var(--eko-border);
    border-radius: var(--eko-radius);
    box-shadow: var(--eko-shadow);
    overflow: hidden;
}

.eko-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--eko-border);
}

.eko-panel-head h2 {
    margin: 0;
    font-size: 19px;
}

.eko-panel-head a {
    color: var(--eko-primary);
    font-weight: 650;
}

.eko-toolbar {
    margin-bottom: 14px;
}

.eko-search,
.eko-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.eko-search input,
.eko-filters input,
.eko-filters select {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--eko-border);
    border-radius: 9px;
    background: #fff;
}

.eko-search input {
    min-width: 320px;
}

.eko-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.eko-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.eko-table th,
.eko-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--eko-border);
}

.eko-table th {
    background: #f8fafb;
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.eko-table tbody tr:hover {
    background: #fafcfd;
}

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

.eko-row-note {
    max-width: 340px;
    margin-top: 4px;
    color: var(--eko-muted);
    font-size: 12px;
}

.eko-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.eko-actions form {
    margin: 0;
}

.eko-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: .15s ease;
}

.eko-btn:hover {
    transform: translateY(-1px);
}

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

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

.eko-btn-success {
    color: #fff;
    background: var(--eko-success);
}

.eko-btn-warning {
    color: #fff;
    background: var(--eko-warning);
}

.eko-btn-danger {
    color: #fff;
    background: var(--eko-danger);
}

.eko-btn-ghost {
    color: var(--eko-primary);
    background: #fff;
    border-color: var(--eko-border);
}

.eko-btn-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.eko-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1f4;
    color: #475467;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.eko-badge-success {
    color: #11613c;
    background: #e5f5ed;
}

.eko-badge-warning {
    color: #875400;
    background: #fff1d6;
}

.eko-badge-danger {
    color: #922018;
    background: #fee9e7;
}

.eko-inline-form select {
    min-width: 160px;
    padding: 8px 9px;
    border: 1px solid var(--eko-border);
    border-radius: 8px;
    background: #fff;
}

.eko-notice {
    margin: 14px 0;
    padding: 13px 16px;
    color: #11613c;
    background: #e5f5ed;
    border: 1px solid #b9e5cf;
    border-radius: 10px;
    font-weight: 650;
}

.eko-notice-error {
    color: #922018;
    background: #fee9e7;
    border-color: #f7c8c4;
}

.eko-empty {
    padding: 42px 22px;
    color: var(--eko-muted);
    text-align: center;
}

.eko-login-box {
    max-width: 540px;
    margin: 80px auto;
    padding: 34px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--eko-border);
    border-radius: var(--eko-radius);
    box-shadow: var(--eko-shadow);
}

.eko-login-box h2 {
    margin-top: 0;
}

.eko-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 27, 39, .62);
    overflow-y: auto;
}

.eko-modal.is-open {
    display: flex;
}

.eko-modal-card {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    padding: 26px;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
}

.eko-modal-card h3 {
    margin: 0 42px 4px 0;
    font-size: 24px;
}

.eko-modal-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef2f5;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.eko-muted {
    margin-top: 4px;
    color: var(--eko-muted);
}

.eko-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.eko-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.eko-form-grid input,
.eko-form-grid select,
.eko-form-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--eko-text);
    background: #fff;
    border: 1px solid #cfd7df;
    border-radius: 9px;
    font: inherit;
    font-weight: 400;
}

.eko-form-grid textarea {
    resize: vertical;
}

.eko-form-grid input:focus,
.eko-form-grid select:focus,
.eko-form-grid textarea:focus {
    outline: 2px solid rgba(23, 50, 77, .18);
    border-color: var(--eko-primary);
}

.eko-span-2 {
    grid-column: 1 / -1;
}

.eko-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.eko-checkbox-label {
    flex-direction: row !important;
    align-items: center;
    align-self: end;
    min-height: 44px;
}

.eko-checkbox-label input {
    width: 18px;
    min-height: 18px;
    height: 18px;
}

body.eko-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .eko-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .eko-app {
        margin-top: 12px;
        padding-inline: 10px;
    }

    .eko-app-header,
    .eko-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .eko-user {
        width: 100%;
        justify-content: space-between;
    }

    .eko-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .eko-cards,
    .eko-form-grid {
        grid-template-columns: 1fr;
    }

    .eko-span-2 {
        grid-column: auto;
    }

    .eko-search,
    .eko-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .eko-search input {
        min-width: 0;
        width: 100%;
    }

    .eko-btn {
        width: 100%;
    }

    .eko-actions .eko-btn {
        width: auto;
    }

    .eko-form-actions {
        flex-direction: column-reverse;
    }

    .eko-modal {
        padding: 8px;
    }

    .eko-modal-card {
        max-height: calc(100vh - 16px);
        padding: 22px 16px;
        border-radius: 12px;
    }
}


.eko-field-help {
    color: var(--eko-muted);
    font-size: 12px;
    font-weight: 500;
}

.eko-pdf-link {
    color: var(--eko-primary);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.eko-pdf-link:hover {
    text-decoration: underline;
}

.eko-global-search{flex:1;max-width:460px}.eko-global-search input{width:100%;padding:10px 13px;border:0;border-radius:9px;background:rgba(255,255,255,.14);color:#fff}.eko-global-search input::placeholder{color:rgba(255,255,255,.7)}
.eko-cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.eko-dashboard-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}
.eko-chart{padding:20px}.eko-chart-row{display:grid;grid-template-columns:38px 1fr 52px;align-items:center;gap:10px;margin:9px 0}.eko-chart-track{position:relative;height:18px;background:#eef2f5;border-radius:20px;overflow:hidden}.eko-chart-track i,.eko-chart-track b{position:absolute;left:0;top:0;height:100%;display:block}.eko-chart-track i{background:#9eb1c3}.eko-chart-track b{height:7px;top:6px;background:#16784a}.eko-chart-row em{font-style:normal;text-align:right;font-size:12px}.eko-chart-legend{display:flex;gap:20px;padding:0 20px 20px;color:#697586;font-size:12px}.eko-list a{display:flex;justify-content:space-between;gap:15px;padding:14px 18px;border-bottom:1px solid var(--eko-border);text-decoration:none;color:var(--eko-text)}.eko-list a:last-child{border-bottom:0}.eko-list span{color:var(--eko-muted);font-size:12px}
.eko-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.eko-detail-card{padding:22px}.eko-detail-card h2{margin:0 0 16px}.eko-detail-card dl{display:grid;grid-template-columns:180px 1fr;gap:10px;margin:0}.eko-detail-card dt{color:var(--eko-muted)}.eko-detail-card dd{margin:0;font-weight:650}.eko-span-wide{grid-column:1/-1}.eko-docs{display:flex;flex-wrap:wrap;gap:10px}.eko-docs a{padding:10px 13px;border-radius:8px;background:#edf2f6;text-decoration:none;font-weight:700}.eko-timeline>div{display:grid;grid-template-columns:150px 1fr auto;gap:15px;padding:13px 0;border-bottom:1px solid var(--eko-border)}.eko-timeline time{color:var(--eko-muted);font-size:12px}
.eko-card-link{display:block;margin-top:5px;font-size:11px;font-weight:700}
.eko-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border:1px solid var(--eko-border);border-radius:14px;overflow:hidden;box-shadow:var(--eko-shadow)}.eko-cal-head{padding:12px;text-align:center;font-weight:800;background:#f3f6f8}.eko-cal-day{min-height:145px;padding:9px;border-top:1px solid var(--eko-border);border-right:1px solid var(--eko-border)}.eko-cal-day:nth-child(7n){border-right:0}.eko-cal-day.is-empty{background:#fafbfc}.eko-cal-day>b{display:block;margin-bottom:7px}.eko-cal-day a{display:block;margin:5px 0;padding:6px;border-radius:6px;color:#fff;text-decoration:none;font-size:11px;line-height:1.25}.eko-cal-day a small{display:block;text-transform:uppercase;opacity:.75}.eko-cal-day a.is-deadline{background:#b42318}.eko-cal-day a.is-install{background:#175cd3}
@media(max-width:1050px){.eko-cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}.eko-dashboard-grid,.eko-detail-grid{grid-template-columns:1fr}.eko-span-wide{grid-column:auto}.eko-global-search{order:3;max-width:none;width:100%}.eko-app-header{flex-wrap:wrap}.eko-calendar{overflow-x:auto;grid-template-columns:repeat(7,minmax(150px,1fr))}}
@media(max-width:700px){.eko-cards-4{grid-template-columns:1fr}.eko-detail-card dl{grid-template-columns:1fr}.eko-timeline>div{grid-template-columns:1fr}.eko-calendar{display:grid;overflow-x:auto}}

.eko-v130-header{gap:22px}.eko-welcome{display:flex;flex-direction:column;min-width:230px}.eko-welcome strong{font-size:15px;color:#fff}.eko-welcome span{font-size:12px;color:rgba(255,255,255,.72);margin-top:3px}.eko-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.eko-welcome{order:2}.eko-global-search{order:3;width:100%}}@media(max-width:700px){.eko-cards-3{grid-template-columns:1fr}.eko-welcome{min-width:0;width:100%}}

.eko-mail-attachment{padding:12px 14px;border:1px solid var(--eko-border);border-radius:9px;background:#f7f9fb}
.eko-email-status{display:flex;flex-direction:column;gap:3px;margin-top:14px;padding:12px 14px;border-radius:9px;background:#ecfdf3;border:1px solid #abefc6;color:#05603a}
.eko-email-status span{font-size:12px}
