.totk-wrap { max-width: 1100px; margin: 0 auto; }
.totk-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 18px; margin: 16px 0; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.totk-hero { border-left: 5px solid #2271b1; }
.totk-hero h2 { margin-top: 0; }
.totk-status { font-size: 18px; margin-top: 8px; }
.totk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.totk-actions form { margin: 0; }
.totk-button { display: inline-block; border: 1px solid #2271b1; background: #f6f7f7; color: #1d2327; border-radius: 5px; padding: 8px 14px; cursor: pointer; text-decoration: none; line-height: 1.2; }
.totk-button:hover { background: #f0f6fc; }
.totk-button:disabled { opacity: .5; cursor: not-allowed; border-color: #aaa; }
.totk-primary { background: #2271b1; color: #fff; border-color: #2271b1; }
.totk-primary:hover { background: #135e96; color: #fff; }
.totk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.totk-grid div { background: #f6f7f7; border-radius: 6px; padding: 12px; }
.totk-grid span { display: block; color: #646970; font-size: 13px; }
.totk-grid strong { display: block; font-size: 24px; margin-top: 3px; }
.totk-table { width: 100%; border-collapse: collapse; }
.totk-table th, .totk-table td { border-bottom: 1px solid #e5e5e5; padding: 8px; text-align: left; vertical-align: top; }
.totk-table th { background: #f6f7f7; font-weight: 700; }
.totk-warning { margin-top: 12px; padding: 12px; background: #fff8e5; border-left: 4px solid #dba617; }
.totk-alert { border-left: 5px solid #d63638; }
.totk-notification { border-top: 1px solid #eee; padding: 10px 0; }
.totk-notification:first-of-type { border-top: 0; }
.totk-notice { background: #edfaef; border-left: 4px solid #00a32a; padding: 10px 12px; margin: 12px 0; }
.totk-edit-form label, .totk-card label { display: block; margin: 8px 0; font-weight: 600; }
.totk-edit-form input, .totk-edit-form select, .totk-edit-form textarea, .totk-card textarea, .totk-card input[type="date"] { width: 100%; max-width: 360px; margin-top: 4px; }
.totk-edit-form textarea, .totk-card textarea { min-height: 70px; }
.totk-manager-card .totk-card { box-shadow: none; }
@media (max-width: 700px) {
    .totk-card { padding: 14px; }
    .totk-actions { display: grid; grid-template-columns: 1fr; }
    .totk-actions form, .totk-actions button { width: 100%; }
    .totk-table { display: block; overflow-x: auto; }
}

 .totk-report-form { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.totk-report-form label { display: inline-flex; flex-direction: column; gap: 5px; margin: 0; font-weight: 600; }
.totk-report-form select,
.totk-report-form input[type="date"] { width: 220px; max-width: 100%; min-height: 42px; box-sizing: border-box; margin-top: 0; }
.totk-report-form .totk-button { min-height: 42px; padding-left: 22px; padding-right: 22px; }
.totk-export-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.totk-export-row form { margin: 0; }


/* Technician mobile layout */
.totk-tech-page { max-width: 980px; }
.totk-tech-page .totk-hero h2 { font-size: clamp(26px, 6vw, 38px); line-height: 1.1; }
.totk-clock-card { text-align: center; }
.totk-clock-card h3 { font-size: 28px; margin-top: 0; }
.totk-clock-actions { justify-content: center; gap: 14px; }
.totk-clock-actions form { flex: 1 1 210px; max-width: 260px; }
.totk-clock-actions .totk-button,
.totk-submit-card .totk-button { width: 100%; min-height: 56px; font-size: 18px; font-weight: 700; border-radius: 10px; }
.totk-submit-card { text-align: center; }
.totk-submit-card form { max-width: 360px; margin: 0 auto; }

@media (max-width: 700px) {
    .totk-wrap { width: 100%; max-width: none; }
    .totk-tech-page { padding: 0 10px; box-sizing: border-box; }
    .totk-tech-page .totk-card { margin: 12px 0; border-radius: 12px; }
    .totk-tech-page .totk-hero { text-align: center; border-left: 0; border-top: 5px solid #2271b1; }
    .totk-tech-page .totk-status { font-size: 20px; }
    .totk-clock-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .totk-clock-actions form { max-width: none; width: 100%; }
    .totk-clock-actions .totk-button { min-height: 64px; font-size: 20px; }
    .totk-submit-card .totk-button { min-height: 64px; font-size: 19px; }
    .totk-tech-page .totk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .totk-tech-page .totk-grid div { padding: 14px 10px; }
    .totk-tech-page .totk-grid span { font-size: 13px; }
    .totk-tech-page .totk-grid strong { font-size: 28px; }
    .totk-tech-page .totk-table th,
    .totk-tech-page .totk-table td { padding: 10px 8px; white-space: nowrap; }
}

@media (max-width: 420px) {
    .totk-tech-page { padding: 0 6px; }
    .totk-tech-page .totk-card { padding: 12px; }
    .totk-tech-page .totk-grid { grid-template-columns: 1fr; }
    .totk-tech-page .totk-grid strong { font-size: 30px; }
}

/* Dedicated Timekeeper login page */
.totk-login-page { max-width: 520px; padding: 24px 12px; }
.totk-login-card { text-align: left; }
.totk-login-card h2 { margin-top: 0; text-align: center; font-size: clamp(28px, 6vw, 38px); }
.totk-login-card p { text-align: center; }
.totk-login-card #totk_loginform p { text-align: left; margin: 12px 0; }
.totk-login-card input[type="text"],
.totk-login-card input[type="password"] { width: 100%; min-height: 44px; box-sizing: border-box; font-size: 18px; }
.totk-login-card input[type="submit"] { width: 100%; min-height: 52px; font-size: 18px; font-weight: 700; border-radius: 10px; background: #2271b1; color: #fff; border: 1px solid #2271b1; cursor: pointer; }
.totk-login-card input[type="submit"]:hover { background: #135e96; }
.totk-login-card .login-remember label { display: flex; gap: 8px; align-items: center; }

@media (max-width: 700px) {
    .totk-login-page { padding: 12px 10px; }
    .totk-login-card { border-radius: 14px; }
    .totk-login-card input[type="text"],
    .totk-login-card input[type="password"] { min-height: 50px; }
    .totk-login-card input[type="submit"] { min-height: 58px; }
}

/* Keep Timekeeper pages clean and full width instead of using the site's blog/sidebar layout. */
body.totk-fullwidth-page #sidebar,
body.totk-fullwidth-page #secondary,
body.totk-fullwidth-page .sidebar,
body.totk-fullwidth-page .widget-area,
body.totk-fullwidth-page aside,
body.totk-fullwidth-page .site-sidebar {
    display: none !important;
}

body.totk-fullwidth-page #left-area,
body.totk-fullwidth-page #primary,
body.totk-fullwidth-page .content-area,
body.totk-fullwidth-page .site-main,
body.totk-fullwidth-page .entry-content,
body.totk-fullwidth-page article,
body.totk-fullwidth-page .post,
body.totk-fullwidth-page .page {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    padding-right: 0 !important;
}

body.totk-fullwidth-page #main-content .container:before,
body.totk-fullwidth-page .content-sidebar-wrap:before {
    display: none !important;
}

body.totk-fullwidth-page .site-content,
body.totk-fullwidth-page #content,
body.totk-fullwidth-page #main-content .container {
    max-width: 1200px !important;
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    body.totk-fullwidth-page .site-content,
    body.totk-fullwidth-page #content,
    body.totk-fullwidth-page #main-content .container {
        width: calc(100% - 16px) !important;
    }
}

@media (max-width: 700px) {
    .totk-report-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .totk-report-form label,
    .totk-report-form select,
    .totk-report-form input[type="date"],
    .totk-report-form .totk-button { width: 100%; }
}

.totk-admin .totk-wide-select {
    min-width: 320px;
    max-width: 520px;
    width: 100%;
}

/* v1.0.14 settings dropdown management */
.totk-dropdown-admin {
    max-width: 560px;
}
.totk-dropdown-add-row {
    margin-bottom: 10px;
}
.totk-selected-users {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 10px 12px;
    margin: 8px 0;
}
.totk-remove-user {
    display: block;
    margin: 7px 0;
}
