.ks-wrap {
    color: #1c1c1c;
}

.ks-wrap h1,
.ks-wrap h2 {
    letter-spacing: 0;
}

.ks-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 18px 0;
    padding: 22px;
    background: #fff;
    color: #111;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    border-top: 5px solid #00af66;
    border-bottom: 5px solid #00af66;
}

.ks-hero h2,
.ks-hero p {
    margin: 0;
}

.ks-hero p {
    margin-top: 6px;
    color: #555;
}

.ks-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.ks-metric {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-top: 4px solid #00af66;
    border-radius: 8px;
    padding: 16px;
}

.ks-metric span {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.ks-metric strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.ks-panel {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 18px;
    margin: 18px 0;
}

.ks-panel h2 {
    margin-top: 0;
}

.ks-warning-panel {
    border-color: #00af66;
    background: #edf9f4;
}

.ks-two-col {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 18px;
}

.ks-scanner-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 18px;
}

.ks-lcd {
    grid-column: 1 / -1;
    min-height: 136px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: 10px solid #2a2a2a;
    box-shadow: inset 0 0 20px rgba(0, 175, 102, .28);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ks-lcd-small,
.ks-lcd em {
    color: #00af66;
}

.ks-lcd strong {
    display: block;
    font-family: Consolas, Monaco, monospace;
    font-size: 30px;
    line-height: 1.2;
    margin: 8px 0;
}

#ks-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: 10px;
    border-radius: 50%;
    background: #00af66;
    color: #fff;
    font-size: 18px;
}

#ks-countdown:empty {
    display: none;
}

.ks-tag-grid,
.ks-break-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.ks-scan-tag {
    min-height: 64px;
    white-space: normal;
    text-align: left;
    border-color: #d7d7d7 !important;
}

.ks-scan-tag span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-family: Consolas, Monaco, monospace;
}

.ks-break-tag {
    background: #edf9f4 !important;
}

.ks-scan-log {
    max-height: 260px;
    overflow: auto;
    margin: 0;
    padding-left: 22px;
}

.ks-scan-log li {
    margin: 0 0 8px;
}

.ks-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef1f0;
    color: #4c5d56;
    font-size: 12px;
    font-weight: 700;
}

.ks-badge-ok,
.ks-badge-closed {
    background: #e8f6eb;
    color: #17603e;
}

.ks-badge-warning,
.ks-badge-pending_break {
    background: #e1f7ee;
    color: #00683d;
}

.ks-badge-open {
    background: #eeeeee;
    color: #111;
}

.ks-form label,
.ks-toolbar label {
    display: block;
    font-weight: 700;
    margin: 0 0 14px;
}

.ks-form input,
.ks-toolbar input,
.ks-toolbar select {
    display: block;
    width: 100%;
    max-width: 360px;
    margin-top: 6px;
}

.ks-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.ks-checkbox input {
    width: auto;
    margin: 0;
}

.ks-toolbar {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 18px 0;
}

.ks-toolbar label {
    margin: 0;
}

.ks-inline-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-inline-form input {
    width: 86px;
}

.ks-employee-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 16px 0;
    padding: 18px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #e4e4e4;
    border-left: 5px solid #00af66;
}

.ks-employee-head h2,
.ks-employee-head p {
    margin: 0;
}

.ks-employee-head p {
    margin-top: 6px;
}

.ks-status-live,
.ks-status-rest {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.ks-status-live {
    background: #111;
    color: #fff;
}

.ks-status-rest {
    background: #fff;
    color: #444;
    border: 1px solid #d7d7d7;
}

.ks-wrap .button-primary,
.ks-wrap .button.button-primary {
    background: #00af66;
    border-color: #008f53;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
}

.ks-wrap .button-primary:hover,
.ks-wrap .button.button-primary:hover {
    background: #009a5a;
    border-color: #008f53;
    color: #fff;
}

.ks-wrap .button {
    border-radius: 999px;
}

.ks-panel table {
    width: 100%;
    border-collapse: collapse;
}

.ks-panel table th,
.ks-panel table td {
    border-bottom: 1px solid #e8e8e8;
    padding: 10px;
}

.ks-panel table th {
    background: #fafafa;
    color: #222;
    text-align: left;
}

.ks-brand-header {
    margin: 0 0 22px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-top: 6px solid #00af66;
    border-bottom: 6px solid #00af66;
    border-radius: 12px;
}

.ks-brand-header img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 70px;
}

.ks-app-page footer,
.ks-app-page .site-footer,
.ks-app-page #colophon,
.ks-app-page .wp-site-blocks > .wp-block-template-part:last-child {
    display: none !important;
}

.ks-app-page .wp-block-site-title a {
    display: inline-block;
    width: 190px;
    height: 58px;
    overflow: hidden;
    text-indent: -9999px;
    white-space: nowrap;
    background: url("Busjes.png") no-repeat left center;
    background-size: contain;
    vertical-align: middle;
}

.ks-app-page .wp-block-site-title {
    min-width: 190px;
}

.ks-status-live,
.ks-status-rest {
    box-sizing: border-box;
    justify-content: center;
    max-width: 100%;
}

.ks-public-shell {
    max-width: 980px;
    margin: 0 auto;
}

.ks-public-panel {
    max-width: 680px;
}

.ks-register-form span {
    color: #00af66;
}

.ks-primary-button,
.ks-wrap .ks-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: #00af66;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.ks-primary-button:hover,
.ks-wrap .ks-primary-button:hover {
    background: #009a5a;
    color: #fff !important;
}

.ks-notice {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 18px;
    border: 1px solid #e4e4e4;
}

.ks-notice-success {
    border-color: #00af66;
    background: #edf9f4;
}

.ks-notice-error {
    border-color: #c73535;
    background: #fff0f0;
}

.ks-admin-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.ks-admin-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e4e4e4;
    border-left: 5px solid #00af66;
    border-radius: 12px;
    background: #fff;
}

.ks-admin-card h3,
.ks-admin-card p {
    margin: 0;
}

.ks-admin-card p {
    margin-top: 6px;
    color: #555;
}

.ks-admin-card-small {
    border-left-width: 3px;
}

.ks-compact-form label {
    display: block;
    font-weight: 700;
    margin: 0 0 10px;
}

.ks-compact-form input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .ks-metrics,
    .ks-two-col,
    .ks-scanner-layout {
        grid-template-columns: 1fr;
    }

    .ks-hero,
    .ks-employee-head,
    .ks-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ks-app-page .wp-block-site-title a {
        width: 150px;
        height: 46px;
    }

    .ks-app-page .wp-block-site-title {
        min-width: 150px;
    }

    .ks-dashboard-page main,
    .ks-dashboard-page .wp-site-blocks {
        overflow-x: hidden;
    }

    .ks-wrap h1,
    .ks-panel h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .ks-employee-head {
        gap: 14px;
        padding: 18px;
    }

    .ks-metric {
        padding: 18px;
    }

    .ks-history-table {
        border: 0 !important;
    }

    .ks-history-table thead {
        display: none;
    }

    .ks-history-table,
    .ks-history-table tbody,
    .ks-history-table tr,
    .ks-history-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .ks-history-table tr {
        margin: 0 0 12px;
        border: 1px solid #e4e4e4;
        border-left: 4px solid #00af66;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
    }

    .ks-history-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 44px;
        padding: 10px 12px !important;
        border-bottom: 1px solid #eeeeee !important;
        text-align: right;
    }

    .ks-history-table td::before {
        content: attr(data-label);
        color: #555;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
    }

    .ks-history-table td:last-child {
        border-bottom: 0 !important;
    }
}
