.wab-box {
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0;
    padding: 18px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    font-family: inherit;
}

.wab-head {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 15px;
}

.wab-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.wab-date-wrap {
    min-width: 180px;
}

.wab-date-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.wab-date {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-size: 15px;
    background: #fff;
}

.wab-date-text {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

.wab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.wab-person {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.wab-person:hover {
    border-color: #628bb4;
}

.wab-check {
    width: 18px;
    height: 18px;
    margin: 0;
}

.wab-name {
    flex: 1;
    font-size: 16px;
}

.wab-state {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.wab-person.is-present {
    border-color: #628bb4;
    background: #f4f8fc;
}

.wab-person.is-present .wab-state {
    color: #628bb4;
    font-weight: 700;
}

.wab-save {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 15px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wab-save:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wab-status-button {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: 1px solid #628bb4;
    border-radius: 0;
    background: #628bb4;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wab-status-button:hover {
    background: #4f769b;
    border-color: #4f769b;
}

.wab-status-panel {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #d9e4ef;
    background: #f8fbff;
}

.wab-status-title {
    margin-bottom: 5px;
    font-size: 17px;
    font-weight: 700;
}

.wab-status-summary {
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.wab-person-stats-wrap {
    width: 100%;
    overflow-x: auto;
}

.wab-person-stats {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #fff;
}

.wab-person-stats th,
.wab-person-stats td {
    padding: 10px;
    border: 1px solid #e1e8f0;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
}

.wab-person-stats th {
    background: #eef5fb;
    font-weight: 700;
    color: #222;
}

.wab-person-stats td:nth-child(2),
.wab-person-stats td:nth-child(3) {
    white-space: nowrap;
}

.wab-empty,
.wab-notice,
.wab-message {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.wab-message.is-error {
    color: #b00020;
}

.wab-message.is-success {
    color: #256029;
}

@media (max-width: 640px) {
    .wab-head {
        display: block;
    }

    .wab-date-wrap {
        margin-top: 12px;
        min-width: 0;
    }

    .wab-list {
        grid-template-columns: 1fr;
    }
}

.wab-person.is-late {
    border-color: #d8a600;
    background: #fff7cc;
}

.wab-person.is-late .wab-state {
    color: #8a6400;
    font-weight: 700;
}


.wab-export-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    margin-top: 10px;
    padding: 13px 16px;
    border: 1px solid #2f2f2f;
    background: #fff;
    color: #222;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.wab-export-link:hover {
    background: #f7f7f7;
    color: #111;
}

.wab-person-category-link {
    color: #2b5f92;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wab-person-category-link:hover {
    color: #111;
}


.wab-login-page-wrap {
    width: 100vw;
    max-width: 100vw;
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
    margin: 15px calc(50% - 50vw);
    padding: 60px 20px;
    background: #f7f8fa;
    color: #222;
    font-family: inherit;
}

.wab-login-box {
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #222;
    font-family: inherit;
}

.wab-login-title {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.wab-login-box .login-username,
.wab-login-box .login-password,
.wab-login-box .login-remember,
.wab-login-box .login-submit {
    margin: 0 0 12px;
}

.wab-login-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.wab-login-box input[type="text"],
.wab-login-box input[type="password"] {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-size: 16px;
}

.wab-login-box .login-remember label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 400;
}

.wab-login-box input[type="submit"],
.wab-login-return {
    display: block;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wab-login-box input[type="submit"]:hover,
.wab-login-return:hover {
    background: #222;
    color: #fff;
}

.wab-login-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #f1b6b6;
    background: #fff3f3;
    color: #b00020;
    font-size: 14px;
}

.wab-login-message {
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}
body.wab-standalone-login-body {
    margin: 0;
    background: #f7f8fa;
}

.wab-standalone-login-main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f7f8fa;
}

body.wab-standalone-login-body .wab-login-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 30px 20px;
}

body.wab-standalone-login-body .wab-login-box {
    max-width: 520px;
}
