/* ==========================================================================
   pass_styles.css — shared styles extracted from inline <style> blocks.
   Loaded after Bootstrap + client.css, before dark_theme.css and mobile.css.
   ========================================================================== */

/* --- Default brand typography (override via client.css) --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

body,
.navbar,
.btn,
.form-control,
.modal,
.dropdown-menu,
input,
select,
textarea,
button {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global PASS button baseline (shared across legacy views/controllers) --- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary,
.btn-info {
    background: #181A34;
    border-color: #181A34;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background: #272a54;
    border-color: #272a54;
    color: #fff;
    box-shadow: 0 3px 10px rgba(24,26,52,0.25);
}
.btn-default {
    background: #fff;
    border-color: #d4dbe2;
    color: #243648;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background: #f4f7fb;
    border-color: #a9b5c2;
    color: #181A34;
}

/* --- input-group addon colour variants --- */
.input-group-addon.primary {
    color: rgb(255, 255, 255);
    background-color: rgb(50, 118, 177);
    border-color: rgb(40, 94, 142);
}
.input-group-addon.success {
    color: rgb(255, 255, 255);
    background-color: rgb(92, 184, 92);
    border-color: rgb(76, 174, 76);
}
.input-group-addon.info {
    color: rgb(255, 255, 255);
    background-color: rgb(57, 179, 215);
    border-color: rgb(38, 154, 188);
}
.input-group-addon.warning {
    color: rgb(255, 255, 255);
    background-color: rgb(240, 173, 78);
    border-color: rgb(238, 162, 54);
}
.input-group-addon.danger {
    color: rgb(255, 255, 255);
    background-color: rgb(217, 83, 79);
    border-color: rgb(212, 63, 58);
}

img {
    max-width: 100%;
}

/* === Modern table shared styles (shared look with userlist) === */
.modern-table { border-collapse: separate; border-spacing: 0 6px; width: 100%; }
.modern-table > thead > tr > th { background: #f7f9fc; border: 0; border-bottom: 1px solid #dde5ee; color: #425466; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; font-weight: 600; }
.modern-table > thead > tr > th a { color: #425466; text-decoration: none; }
.modern-table > thead > tr > th a:hover { color: #1f2d3d; }
.modern-table .modern-sort-header { display: inline-block; color: inherit; text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
.modern-table .modern-sort-header:hover, .modern-table .modern-sort-header:focus { color: #1f2d3d; text-decoration: none; outline: none; }
.modern-table .modern-sort-header-active { color: #1f2d3d; border-bottom-color: #3a6fb8; font-weight: 700; }
.modern-table > thead > tr > th.modern-sort-active { background: #eef3fb; color: #1f2d3d; }
.modern-table > tbody > tr > td { vertical-align: middle; padding: 12px; background: #ffffff; border-top: 1px solid #e6ebf1; border-bottom: 1px solid #e6ebf1; border-left: 0; border-right: 0; transition: background-color .18s ease, box-shadow .18s ease; color: #1f2d3d; font-size: 14px; }
.modern-table > tbody > tr > td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; border-left: 1px solid #e6ebf1; }
.modern-table > tbody > tr > td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-right: 1px solid #e6ebf1; }
.modern-table > tbody > tr:hover > td { background: #fbfdff; box-shadow: 0 1px 0 rgba(56, 84, 109, 0.08); }
.modern-table.table-striped > tbody > tr:nth-of-type(odd) > td { background: #fcfdff; }
.modern-table.table-striped > tbody > tr:hover > td { background: #f5f9ff; }
.modern-table .text-muted { color: #6b7785 !important; }
.modern-table .modern-cell-meta { color: #6b7785; font-size: 12px; margin-top: 2px; }
.modern-table .modern-cell-title { font-weight: 600; color: #1f2d3d; }
.modern-table-wrap { margin-top: 8px; }
.modern-table-wrap .dataTables_filter input,
.modern-table-wrap .form-control { border-radius: 8px; }
.modern-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; }
.modern-badge-success { background: #e3f5ea; color: #1f6d3a; }
.modern-badge-warning { background: #fff4d6; color: #8a6300; }
.modern-badge-danger  { background: #fde6e6; color: #a12d2a; }
.modern-badge-muted   { background: #eef1f5; color: #4d5f72; }
.modern-badge-info    { background: #e4efff; color: #1f4fa3; }
.modern-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.modern-toolbar .modern-toolbar-spacer { flex: 1 1 auto; }
@media (max-width: 720px) {
    .modern-table > thead { display: none; }
    .modern-table > tbody > tr { display: block; margin-bottom: 10px; border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; }
    .modern-table > tbody > tr > td { display: block; border: 0 !important; border-radius: 0 !important; }
}

/* ==========================================================================
   Login form (loginform.php)
   ========================================================================== */
.login .btn { border-radius: 999px; font-weight: 600; }
.login .btn-primary { background: #181A34; border-color: #181A34; }
.login .btn-primary:hover, .login .btn-primary:focus, .login .btn-primary:active { background: #272a54; border-color: #272a54; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }

/* ==========================================================================
   Alanavi (sub-navigation) — views/alanavi.php
   ========================================================================== */
.page-subtitle { margin: 15px 0px; font-size: 16px; }
@media (max-width : 768px) {
    .nav-sub { padding: 2px 0px; border-top: 1px solid #E7E7E7; border-bottom: 1px solid #E7E7E7; }
    .nav-sub li a { border-radius: 2px; padding: 8px; }
}

/* ==========================================================================
   Project pages — controllers/Project.php (.project-page wrapper)
   Shared pill button system for viewdetails / questions / questionmodify / settings
   ========================================================================== */
.project-page .btn { border-radius: 999px; padding: 6px 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.project-page .btn-lg { padding: 9px 22px; font-size: 15px; }
.project-page .btn-md { padding: 7px 18px; font-size: 14px; }
.project-page .btn-sm { padding: 4px 12px; font-size: 12px; }
.project-page .btn-xs { padding: 3px 10px; font-size: 11px; }
.project-page .btn-default { background: #fff; border: 1px solid #d4dbe2; color: #243648; }
.project-page .btn-default:hover, .project-page .btn-default:focus { background: #f4f7fb; border-color: #a9b5c2; color: #181A34; }
.project-page .btn-primary, .project-page .btn-info, .project-page .btn-success { background: #181A34; border: 1px solid #181A34; color: #fff; }
.project-page .btn-primary:hover, .project-page .btn-primary:focus,
.project-page .btn-info:hover, .project-page .btn-info:focus,
.project-page .btn-success:hover, .project-page .btn-success:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.project-page .btn-danger { background: #fff; border: 1px solid #e0c4c4; color: #a94442; }
.project-page .btn-danger:hover, .project-page .btn-danger:focus { background: #c9302c; border-color: #ac2925; color: #fff; }
.project-page .btn-warning { background: #fff; border: 1px solid #e6d3a3; color: #8a6d3b; }
.project-page .btn-warning:hover, .project-page .btn-warning:focus { background: #f0ad4e; border-color: #eea236; color: #fff; }
.project-page .qm-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
html[data-theme="dark"] .project-page .btn-default { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .project-page .btn-default:hover, html[data-theme="dark"] .project-page .btn-default:focus { background: #2b2f3c; border-color: #4a75c8; color: #fff; }
html[data-theme="dark"] .project-page .btn-primary, html[data-theme="dark"] .project-page .btn-info, html[data-theme="dark"] .project-page .btn-success { background: #4a75c8; border-color: #3a5fa3; color: #fff; }
html[data-theme="dark"] .project-page .btn-primary:hover, html[data-theme="dark"] .project-page .btn-info:hover, html[data-theme="dark"] .project-page .btn-success:hover { background: #5d8be0; border-color: #4a75c8; color: #fff; }

/* Project — userlist toolbar (controllers/Project.php top of view) */
.userlist-search-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.userlist-search-input-group { flex: 1 1 240px; margin-bottom: 0 !important; }
.userlist-search-create-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #181A34; border-radius: 999px; background: #181A34; color: #fff; font-weight: 600; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.userlist-search-create-btn:hover, .userlist-search-create-btn:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); text-decoration: none; }
.userlist-search-create-btn i { font-size: 13px; }
.userlist-clear-search-btn { display: inline-flex; align-items: center; justify-content: center; margin: 0 10px 10px 0; padding: 6px 14px; border-radius: 999px !important; background: #181A34 !important; border: 1px solid #181A34 !important; color: #fff !important; font-weight: 600; line-height: 1.3; }
.userlist-clear-search-btn:hover, .userlist-clear-search-btn:focus { background: #272a54 !important; border-color: #272a54 !important; color: #fff !important; text-decoration: none; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.userlist-row-btn-delete { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; border: 1px solid #e0c4c4; background: #fff; color: #a94442; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.userlist-row-btn-delete:hover, .userlist-row-btn-delete:focus { background: #c9302c; border-color: #ac2925; color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(192,57,43,0.18); }
.userlist-details-footer .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 16px; font-size: 13px; }
.userlist-details-footer .btn i { font-size: 12px; }
.userlist-details-footer .btn-primary,
.userlist-details-footer a.btn-primary { background: #181A34; border-color: #181A34; color: #fff; }
.userlist-details-footer .btn-primary:hover,
.userlist-details-footer .btn-primary:focus,
.userlist-details-footer a.btn-primary:hover,
.userlist-details-footer a.btn-primary:focus { background: #272a54; border-color: #272a54; color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.userlist-no-results-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px; margin: 16px 0; background: #f6f8fb; border: 1px solid #e2e7ee; border-radius: 12px; color: #4a5869; text-align: center; }
.userlist-no-results-panel .userlist-no-results-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid #e2e7ee; display: flex; align-items: center; justify-content: center; color: #7a8a9b; font-size: 18px; }
.userlist-no-results-panel .userlist-no-results-msg { font-size: 14px; color: #4a5869; max-width: 480px; }

/* Feedback modal buttons */
.feedback-modal-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Admin settings page (migrated from admin_settings_view.php inline style block) */
.admin-settings-page .row { margin-bottom: 10px; }
.admin-settings-page .created-meta .label { display: inline-block; margin-bottom: 4px; }
.admin-settings-page .created-meta .created-by { margin-top: 2px; line-height: 1.2; }
.admin-settings-page .table th small { font-weight: normal; }
.admin-settings-page .admin-settings-header { margin-top: 0; }
.admin-settings-page .admin-settings-header h2 { margin-top: 0; }
.admin-settings-page .col-action { width: 1%; white-space: nowrap; }
.admin-settings-page .inline-delete-form { margin: 0; }
.admin-settings-page .row.row-tight { margin-bottom: 0; }
.admin-settings-page .settings-sub .is-ok { color: #3c9a40; }
.admin-settings-page .settings-card { border: 1px solid #e2e7ee; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(20,30,50,0.04); margin-bottom: 24px; overflow: hidden; }
.admin-settings-page .settings-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eef1f6; background: #fafbfd; }
.admin-settings-page .settings-card-head .settings-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef5ff; color: #2f6fbf; font-size: 16px; flex: 0 0 auto; }
.admin-settings-page .settings-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #1f2d3d; }
.admin-settings-page .settings-card-head .settings-sub { margin-top: 2px; font-size: 12px; color: #5b6b7e; }
.admin-settings-page .settings-card-body { padding: 16px 18px; }
.admin-settings-page .settings-card .table { margin-bottom: 0; border-radius: 8px; overflow: hidden; }
.admin-settings-page .settings-card .table > thead > tr > th { background: #fafbfd; border-bottom: 1px solid #e2e7ee; color: #2f3e52; font-weight: 600; font-size: 13px; }
.admin-settings-page .settings-card .table > tbody > tr > td { vertical-align: middle; }
.admin-settings-page .settings-empty { display: flex; gap: 12px; align-items: center; padding: 14px; background: #f8fafc; border: 1px dashed #d9e0ea; border-radius: 10px; color: #5b6b7e; font-size: 13px; }
.admin-settings-page .settings-empty i { font-size: 18px; color: #7a8a9b; }
.admin-settings-page .folders-card.is-empty .settings-card-head .settings-icon { background: #f4f6fa; color: #7a8a9b; }
.admin-settings-page .folders-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px 0; padding: 0; list-style: none; }
.admin-settings-page .folders-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #f4f6fa; border: 1px solid #e2e7ee; border-radius: 999px; font-size: 12px; color: #2f3e52; }
.admin-settings-page .folders-chip i { color: #2f6fbf; font-size: 12px; }
.admin-settings-page .folders-create-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; max-width: 520px; }
.admin-settings-page .folders-create-form .form-control { flex: 1 1 220px; }
.admin-settings-page .folders-help { color: #5b6b7e; font-size: 13px; margin: 0 0 12px 0; }
.admin-settings-page .settings-card .btn { padding: 6px 16px; display: inline-flex; align-items: center; gap: 6px; }
.admin-settings-page .settings-card .btn-sm { padding: 5px 12px; font-size: 12px; }
.admin-settings-page .settings-card .btn-danger { background: #fff; border: 1px solid #e0c4c4; color: #a94442; }
.admin-settings-page .settings-card .btn-danger:hover,
.admin-settings-page .settings-card .btn-danger:focus,
.admin-settings-page .settings-card .btn-danger:active { background: #c9302c; border-color: #ac2925; color: #fff; box-shadow: 0 3px 10px rgba(169,68,66,0.25); }

/* ==========================================================================
   User.php inline style migrations
   ========================================================================== */

/* user/viewuser() editable fields */
.borderless td,
.borderless th {
    border: none;
}
.muokattava {
    background-color: #F5F5F0;
    -webkit-box-shadow: 0px 3px 15px 2px #F5F5F0;
    -moz-box-shadow: 0px 3px 15px 2px #F5F5F0;
    box-shadow: 0px 3px 15px 2px #F5F5F0;
    padding: 3px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ccc;
}

/* selfsignin flow: suppress legacy warning row shown by default bootstrap helper styles */
form[action*="user/selfsignin"] .text-warning {
    display: none;
}

/* Project — settings page polish */
.project-settings-page .selfsignin-panel { background: linear-gradient(135deg, #f4f7fb 0%, #eaeff7 100%); border: 1px solid #d4dbe2; border-left: 4px solid #181A34; border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; box-shadow: 0 1px 3px rgba(20,30,50,0.04); font-size: 14px; color: #243648; }
.project-settings-page .selfsignin-panel .ssp-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #181A34; margin-right: 8px; }
.project-settings-page .selfsignin-panel .ssp-label i { color: #181A34; }
.project-settings-page .selfsignin-panel a { color: #181A34; text-decoration: none; word-break: break-all; }
.project-settings-page .selfsignin-panel a:hover { text-decoration: underline; }
.project-settings-page .selfsignin-panel .ssp-row { margin: 4px 0; line-height: 1.6; }
.project-settings-page form .form-control { border-radius: 8px; border: 1px solid #d4dbe2; padding: 8px 12px; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s; }
.project-settings-page form .form-control:focus { border-color: #181A34; box-shadow: 0 0 0 3px rgba(24,26,52,0.12); outline: none; }
.project-settings-page form label, .project-settings-page form .control-label { font-weight: 600; color: #2f3e52; margin-bottom: 4px; }
.project-settings-page form .form-group { margin-bottom: 16px; }
.project-settings-page form .help-block, .project-settings-page form .text-muted { color: #6b7785; font-size: 12px; }
.project-settings-page .panel { border-radius: 10px; border: 1px solid #e3e3e8; box-shadow: 0 1px 3px rgba(20,30,50,0.04); }
.project-settings-page .panel-heading { background: #fafbfd; border-bottom: 1px solid #eef1f6; border-top-left-radius: 10px; border-top-right-radius: 10px; font-weight: 600; color: #2f3e52; }
html[data-theme="dark"] .project-settings-page .selfsignin-panel { background: linear-gradient(135deg, #242833 0%, #1c1f27 100%); border-color: #333845; border-left-color: #8ab4ff; color: #e6e8ec; }
html[data-theme="dark"] .project-settings-page .selfsignin-panel .ssp-label { color: #8ab4ff; }
html[data-theme="dark"] .project-settings-page .selfsignin-panel .ssp-label i { color: #8ab4ff; }
html[data-theme="dark"] .project-settings-page .selfsignin-panel a { color: #8ab4ff; }
html[data-theme="dark"] .project-settings-page form .form-control { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .project-settings-page form .form-control:focus { border-color: #4a75c8; box-shadow: 0 0 0 3px rgba(74,117,200,0.18); }
html[data-theme="dark"] .project-settings-page form label, html[data-theme="dark"] .project-settings-page form .control-label { color: #e6e8ec; }
html[data-theme="dark"] .project-settings-page .panel { background: #1c1f27; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .project-settings-page .panel-heading { background: #242833; border-bottom-color: #333845; color: #e6e8ec; }

/* ==========================================================================
   Suoritukset — controllers/Suoritukset.php
   ========================================================================== */
.suoritus-toolbar { background: #f7f7f9; border: 1px solid #e3e3e8; border-radius: 4px; padding: 12px; margin: 16px 0 12px 0; clear: both; }
#suoritusListContainer { clear: both; }
.suoritus-toolbar .toolbar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suoritus-toolbar .toolbar-row + .toolbar-row { margin-top: 10px; }
.suoritus-toolbar .toolbar-spacer { flex: 1 1 auto; }
.suoritus-toolbar .toolbar-search { flex: 1 1 280px; max-width: 360px; }
.suoritus-toolbar .toolbar-dates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.suoritus-toolbar .toolbar-dates label { margin: 0; font-weight: normal; color: #555; font-size: 12px; }
.suoritus-toolbar .toolbar-dates input[type=date] { padding: 4px 8px; border: 1px solid #ccc; border-radius: 3px; font-size: 13px; height: 30px; }
.suoritus-toolbar .quick-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.suoritus-toolbar .quick-filters .btn { padding: 3px 10px; font-size: 12px; }
.suoritus-toolbar .quick-filters .btn.active { background: #181A34; color: #fff; border-color: #272a54; }
/* Navy + pill style for the search/date "Tyhjennä" buttons inside the toolbar */
.suoritus-toolbar #suoritusSearchClear,
.suoritus-toolbar #suoritusDateClear {
    background: #181A34 !important;
    border: 1px solid #181A34 !important;
    color: #fff !important;
    border-radius: 999px !important;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 4px 12px;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.suoritus-toolbar #suoritusSearchClear:hover,
.suoritus-toolbar #suoritusSearchClear:focus,
.suoritus-toolbar #suoritusDateClear:hover,
.suoritus-toolbar #suoritusDateClear:focus {
    background: #272a54 !important;
    border-color: #272a54 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(24,26,52,0.25);
	text-decoration: none;
}
.suoritus-toolbar .input-group-btn > #suoritusSearchClear { border-top-left-radius: 999px !important; border-bottom-left-radius: 999px !important; }
.suoritus-meta { font-size: 12px; }
.suoritus-pagination .pagination { flex-wrap: wrap; }
.status-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.status-cell .status-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-cell .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.status-cell .status-pill.ok  { background: #d4ecd4; color: #2d6a2d; }
.status-cell .status-pill.bad { background: #f5cfcf; color: #a94442; }
.status-cell .status-pdf,
.status-cell .status-trash { padding: 3px 8px; font-size: 12px; line-height: 1.2; }
.status-cell .status-detail { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 8px; border-radius: 3px; line-height: 1.4; }
.status-cell .status-detail.valid   { background: #eaf6ea; color: #2d6a2d; }
.status-cell .status-detail.expired { background: #fbeaea; color: #a94442; }
@media (max-width: 600px) {
  .suoritus-toolbar .toolbar-row { flex-direction: column; align-items: stretch; }
  .suoritus-toolbar .toolbar-search { max-width: 100%; }
}
html[data-theme="dark"] .suoritus-toolbar { background: #1c1f27; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .suoritus-toolbar .toolbar-dates label { color: #a3a9b6; }
html[data-theme="dark"] .suoritus-toolbar .toolbar-dates input[type=date],
html[data-theme="dark"] .suoritus-toolbar input[type=text],
html[data-theme="dark"] .suoritus-toolbar input[type=search] { background: #242833; color: #e6e8ec; border-color: #333845; }
html[data-theme="dark"] .suoritus-toolbar .quick-filters .btn.active { background: #4a75c8; border-color: #3a5fa3; color: #fff; }
html[data-theme="dark"] .suoritus-meta,
html[data-theme="dark"] .suoritus-meta .text-muted { color: #a3a9b6 !important; }
html[data-theme="dark"] .status-cell .status-detail.valid { background: rgba(92,184,92,0.18); color: #b8e6ba; }
html[data-theme="dark"] .status-cell .status-detail.expired { background: rgba(217,83,79,0.18); color: #f5b3b0; }
.uusikutsu-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 600; background: #181A34; border: 1px solid #181A34; color: #fff; line-height: 1.4; }
.uusikutsu-btn:hover, .uusikutsu-btn:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); text-decoration: none; }
html[data-theme="dark"] .uusikutsu-btn { background: #4a75c8; border-color: #3a5fa3; }
html[data-theme="dark"] .uusikutsu-btn:hover, html[data-theme="dark"] .uusikutsu-btn:focus { background: #5d8be0; border-color: #4a75c8; }

/* Suoritukset — userlist (within suoritukset listing) */
.users-toolbar { clear: both; background: #f7f7f9; border: 1px solid #e3e3e8; border-radius: 4px; padding: 12px; margin: 16px 0 12px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.users-toolbar .toolbar-spacer { flex: 1 1 auto; }
.users-toolbar .users-search { flex: 1 1 280px; max-width: 360px; }
.users-meta { font-size: 12px; color: #777; margin: 0 0 8px 0; }
#userListContainer { clear: both; }
.user-card-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.user-card-table > tbody > tr > td,
.user-card-table > thead > tr > th { padding: 12px 14px; vertical-align: top; border-top: 1px solid #eceef1; }
.user-card-table > thead > tr > th { background: #f7f7f9; font-weight: 600; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid #e3e3e8; border-bottom: 1px solid #e3e3e8; }
.user-card-table > tbody > tr:hover { background: #fafbfc; }
.user-card-table > tbody > tr.row-invalid { background: #fdf3f3; }
.user-card-table > tbody > tr.row-invalid:hover { background: #fbeaea; }
.user-avatar { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: #181A34; color: #fff; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; margin-right: 10px; flex: 0 0 36px; }
.user-cell { display: flex; align-items: flex-start; }
.user-cell .user-info { min-width: 0; }
.user-cell .user-name { font-weight: 600; color: #222; font-size: 14px; line-height: 1.2; }
.user-cell .user-name a { color: inherit; }
.user-cell .user-company { color: #777; font-size: 12px; margin-top: 2px; }
.user-cell .user-contact { color: #999; font-size: 11px; margin-top: 2px; word-break: break-word; }
.user-cell .user-actions { margin-top: 8px; }
.exec-list { list-style: none; padding: 0; margin: 0; }
.exec-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 3px; margin-bottom: 4px; font-size: 12px; line-height: 1.3; }
.exec-list li.exec-valid   { background: #eaf6ea; color: #2d6a2d; }
.exec-list li.exec-expired { background: #fdf6e3; color: #8a6d3b; }
.exec-list li.exec-failed  { background: #fbeaea; color: #a94442; }
.exec-list li.exec-pending { background: #e1f0f8; color: #31708f; }
.exec-list li .exec-date { white-space: nowrap; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.exec-list li .exec-state { flex: 1 1 auto; }
.exec-list li .exec-actions { flex: 0 0 auto; }
.exec-list li .exec-actions .btn { padding: 1px 6px; font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-pill.ok   { background: #d4ecd4; color: #2d6a2d; }
.status-pill.bad  { background: #f5cfcf; color: #a94442; }
.status-detail { font-size: 11px; color: #777; margin-top: 4px; display: block; }
@media (max-width: 600px) {
  .users-toolbar { flex-direction: column; align-items: stretch; }
  .users-toolbar .users-search { max-width: 100%; }
  .user-card-table > tbody > tr > td { padding: 10px; }
}

/* Suoritukset — odotettavat (pending approvals) */
.odotettavat-page { margin-top: 8px; }
.odotettavat-page .table-responsive { background: #fff; border: 1px solid #e3e3e8; border-radius: 12px; box-shadow: 0 1px 3px rgba(20,30,50,0.05); overflow: hidden; }
.odotettavat-page table.table { margin: 0; }
.odotettavat-page table.table > thead > tr > th { background: #fafbfd; border-bottom: 1px solid #e2e7ee; color: #2f3e52; font-weight: 600; font-size: 13px; padding: 12px 16px; }
.odotettavat-page table.table > tbody > tr > td { vertical-align: middle; padding: 14px 16px; border-top: 1px solid #eef1f6; }
.odotettavat-page table.table > tbody > tr:hover > td { background: #fafbfd; }
.odotettavat-page .person-name { font-size: 14px; font-weight: 600; color: #1f2d3d; }
.odotettavat-page .person-name a { color: #1f2d3d; text-decoration: none; }
.odotettavat-page .person-name a:hover { color: #181A34; text-decoration: underline; }
.odotettavat-page .person-meta { font-size: 12px; color: #5b6b7e; margin-top: 2px; line-height: 1.5; }
.odotettavat-page .person-meta i { width: 14px; opacity: 0.7; margin-right: 2px; }
.odotettavat-page .btn { border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; min-width: 130px; justify-content: center; }
.odotettavat-page .btn-success { background: #181A34; border: 1px solid #181A34; color: #fff; }
.odotettavat-page .btn-success:hover, .odotettavat-page .btn-success:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.odotettavat-page .btn-danger { background: #fff; border: 1px solid #e0c4c4; color: #a94442; }
.odotettavat-page .btn-danger:hover, .odotettavat-page .btn-danger:focus { background: #c9302c; border-color: #ac2925; color: #fff; }
html[data-theme="dark"] .odotettavat-page .table-responsive { background: #1c1f27; border-color: #333845; }
html[data-theme="dark"] .odotettavat-page table.table > thead > tr > th { background: #242833; color: #e6e8ec; border-bottom-color: #333845; }
html[data-theme="dark"] .odotettavat-page table.table > tbody > tr > td { background: #1c1f27; color: #e6e8ec; border-top-color: #333845; }
html[data-theme="dark"] .odotettavat-page table.table > tbody > tr:hover > td { background: #20242e; }
html[data-theme="dark"] .odotettavat-page .person-name, html[data-theme="dark"] .odotettavat-page .person-name a { color: #e6e8ec; }
html[data-theme="dark"] .odotettavat-page .person-meta { color: #a3a9b6; }
html[data-theme="dark"] .odotettavat-page .btn-success { background: #4a75c8; border-color: #3a5fa3; }
html[data-theme="dark"] .odotettavat-page .btn-success:hover, html[data-theme="dark"] .odotettavat-page .btn-success:focus { background: #5d8be0; border-color: #4a75c8; }

/* ==========================================================================
   Tilastot — controllers/Tilastot.php (tulokset / suorituslistaus section)
   ========================================================================== */
.tilastot-section-header { display: inline-flex; align-items: center; gap: 10px; margin: 56px 0 16px; padding: 8px 16px; font-size: 18px; font-weight: 600; color: #1f2d3d; background: #f4f7fb; border: 1px solid #e3e3e8; border-left: 4px solid #181A34; border-radius: 8px; }
.tilastot-section-header .fa { color: #181A34; font-size: 18px; }
.tilastot-content-panels { margin-top: 56px; clear: both; }
.tilastot-section-header + .tilastot-content-panels { margin-top: 16px; }
.tilastot-content-panel { background: #fff; border: 1px solid #e3e3e8; border-radius: 12px; box-shadow: 0 1px 3px rgba(20,30,50,0.05); margin: 0 0 22px; overflow: hidden; }
.tilastot-content-panel .tcp-head { padding: 16px 20px; border-bottom: 1px solid #eef1f6; background: linear-gradient(135deg, #fafbfd 0%, #f1f6fc 100%); }
.tilastot-content-panel .tcp-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #1f2d3d; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.tilastot-content-panel .tcp-title .fa { color: #181A34; font-size: 20px; }
.tilastot-content-panel .tcp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tilastot-content-panel .tcp-actions .btn { border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #d4dbe2; color: #243648; }
.tilastot-content-panel .tcp-actions .btn:hover, .tilastot-content-panel .tcp-actions .btn:focus { background: #f4f7fb; border-color: #a9b5c2; color: #181A34; }
.tilastot-content-panel .tcp-actions .btn.is-toggle { background: #181A34; border-color: #181A34; color: #fff; }
.tilastot-content-panel .tcp-actions .btn.is-toggle:hover, .tilastot-content-panel .tcp-actions .btn.is-toggle:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.tilastot-content-panel .tcp-stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #4a5869; }
.tilastot-content-panel .tcp-stats b { color: #1f2d3d; }
.tilastot-content-panel .tcp-body { padding: 14px 18px 18px; }
.tilastot-content-panel.is-empty { background: #f8fafc; }
.tilastot-content-panel.is-empty .tcp-head { background: transparent; border-bottom: none; }
.tilastot-content-panel .table-responsive { border: 1px solid #eef1f6; border-radius: 8px; overflow: hidden; }
.tilastot-content-panel table.table { margin: 0; }
.tilastot-content-panel table.table > thead > tr > th,
.tilastot-content-panel table.table > tbody > tr > th,
.tilastot-content-panel table.table > tr:first-child > th { background: #fafbfd; border-bottom: 1px solid #e2e7ee; color: #2f3e52; font-weight: 600; font-size: 13px; padding: 10px 14px; }
.tilastot-content-panel table.table > tbody > tr > td,
.tilastot-content-panel table.table > tr > td { vertical-align: middle; padding: 12px 14px; border-top: 1px solid #eef1f6; }
.tilastot-content-panel table.table > tbody > tr.odd > td,
.tilastot-content-panel table.table > tr.odd > td { background: #fbfcfe; }
.tilastot-content-panel .status-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tilastot-content-panel .status-cell .status-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tilastot-content-panel .status-cell .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tilastot-content-panel .status-cell .status-pill.ok { background: #d4ecd4; color: #2d6a2d; }
.tilastot-content-panel .status-cell .status-pill.bad { background: #f5cfcf; color: #a94442; }
.tilastot-content-panel .status-cell .status-detail { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 2px 8px; border-radius: 4px; line-height: 1.4; }
.tilastot-content-panel .status-cell .status-detail.valid { background: #eaf6ea; color: #2d6a2d; }
.tilastot-content-panel .status-cell .status-detail.expired { background: #fbeaea; color: #a94442; }
.tilastot-content-panel .person-name { font-size: 14px; font-weight: 600; color: #1f2d3d; }
.tilastot-content-panel .person-meta { font-size: 12px; color: #5b6b7e; margin-top: 2px; line-height: 1.4; }
.tilastot-content-panel .person-meta i { width: 14px; opacity: 0.7; }
html[data-theme="dark"] .tilastot-section-header { background: #242833; border-color: #333845; border-left-color: #8ab4ff; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-section-header .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-content-panel { background: #1c1f27; border-color: #333845; box-shadow: none; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-content-panel .tcp-head { background: linear-gradient(135deg, #242833 0%, #1c1f27 100%); border-bottom-color: #333845; }
html[data-theme="dark"] .tilastot-content-panel .tcp-title { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-content-panel .tcp-title .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-content-panel .tcp-stats { color: #a3a9b6; }
html[data-theme="dark"] .tilastot-content-panel .tcp-stats b { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-content-panel .tcp-actions .btn { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-content-panel .tcp-actions .btn:hover, html[data-theme="dark"] .tilastot-content-panel .tcp-actions .btn:focus { background: #2b2f3c; border-color: #4a75c8; color: #fff; }
html[data-theme="dark"] .tilastot-content-panel .table-responsive { border-color: #333845; }
html[data-theme="dark"] .tilastot-content-panel table.table > thead > tr > th,
html[data-theme="dark"] .tilastot-content-panel table.table > tbody > tr > th,
html[data-theme="dark"] .tilastot-content-panel table.table > tr:first-child > th { background: #242833; color: #e6e8ec; border-bottom-color: #333845; }
html[data-theme="dark"] .tilastot-content-panel table.table > tbody > tr > td,
html[data-theme="dark"] .tilastot-content-panel table.table > tr > td { background: #1c1f27; color: #e6e8ec; border-top-color: #333845; }
html[data-theme="dark"] .tilastot-content-panel table.table > tbody > tr.odd > td,
html[data-theme="dark"] .tilastot-content-panel table.table > tr.odd > td { background: #20242e; }
html[data-theme="dark"] .tilastot-content-panel .person-name { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-content-panel .person-meta { color: #a3a9b6; }
html[data-theme="dark"] .tilastot-content-panel .status-cell .status-detail.valid { background: rgba(92,184,92,0.18); color: #b8e6ba; }
html[data-theme="dark"] .tilastot-content-panel .status-cell .status-detail.expired { background: rgba(217,83,79,0.18); color: #f5b3b0; }

/* ==========================================================================
   Tilastot — models/Tilastomodel.php (.tilastot-page hakulomake)
   ========================================================================== */
.tilastot-page { font-size: 14px; }
.tilastot-page .page-header { border-bottom: 1px solid #e3e3e8; padding-bottom: 8px; margin: 8px 0 16px; }
.tilastot-page .page-header h1 { margin: 0; font-size: 24px; font-weight: 600; color: #222; display: flex; align-items: center; gap: 10px; }
.tilastot-page .page-header h1 .fa { color: #181A34; }
.tilastot-page .page-header small { display: block; color: #888; font-size: 13px; font-weight: 400; margin-top: 4px; }
.tilastot-card { background: #fff; border: 1px solid #e3e3e8; border-radius: 6px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.tilastot-card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #444; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.tilastot-card h3 .fa { color: #181A34; }
.tilastot-card .subtle { color: #888; font-size: 12px; margin-bottom: 8px; }
.tilastot-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.tilastot-row > .tilastot-card { flex: 1 1 320px; margin-bottom: 0; }
.content-master-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; background: #f4f7fb; border: 1px solid #e3e3e8; border-radius: 6px; cursor: pointer; user-select: none; }
.content-master-row .name { font-weight: 600; color: #1f2d3d; flex: 1 1 auto; }
.content-list { max-height: 320px; overflow-y: auto; border: 1px solid #ececf0; border-radius: 4px; padding: 6px; background: #fafbfc; }
.content-list .content-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px; cursor: pointer; }
.content-list .content-item:hover { background: #eef3f8; }
.content-list .content-item input[type=checkbox],
.content-master-row input[type=checkbox] { width: 20px; height: 20px; cursor: pointer; accent-color: #181A34; margin: 0; flex: 0 0 auto; }
.content-list .content-item.checked { background: #e1f0f8; }
.content-list .content-item .name { flex: 1 1 auto; }
.content-count { font-size: 12px; color: #888; margin-left: 8px; }
.date-quick-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.date-quick-filters .btn { padding: 4px 12px; font-size: 12px; border-radius: 999px; }
.tilastot-actions { display: flex; gap: 10px; margin-top: 8px; }
.tilastot-actions .btn { padding: 8px 20px; font-weight: 600; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.tilastot-page .btn { border-radius: 999px; padding: 6px 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tilastot-page .btn-xs { padding: 3px 10px; font-size: 11px; }
.tilastot-page .btn-sm { padding: 5px 12px; font-size: 12px; }
.tilastot-page .btn-primary, .tilastot-page .btn-success { background: #181A34; border-color: #181A34; color: #fff; }
.tilastot-page .btn-primary:hover, .tilastot-page .btn-primary:focus, .tilastot-page .btn-primary:active,
.tilastot-page .btn-success:hover, .tilastot-page .btn-success:focus, .tilastot-page .btn-success:active { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.tilastot-page .btn-default { background: #fff; border: 1px solid #d4dbe2; color: #243648; }
.tilastot-page .btn-default:hover, .tilastot-page .btn-default:focus { background: #f4f7fb; border-color: #a9b5c2; color: #181A34; }
.tilastot-page .btn-default.active, .tilastot-page .scope-toggle .btn.active { background: #181A34 !important; border-color: #181A34 !important; color: #fff !important; }
.tilastot-page .btn-danger { background: #fff; border: 1px solid #e0c4c4; color: #a94442; }
.tilastot-page .btn-danger:hover, .tilastot-page .btn-danger:focus, .tilastot-page .btn-danger:active { background: #c9302c; border-color: #ac2925; color: #fff; box-shadow: 0 3px 10px rgba(169,68,66,0.25); }
input[name="alkupvm"], input[name="loppupvm"] { font-size: 13px; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.credit-card { background: #fff; border: 1px solid #e3e3e8; border-left: 4px solid #181A34; border-radius: 6px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.credit-card.is-warning { border-left-color: #e0a800; }
.credit-card.is-danger { border-left-color: #d9534f; }
.credit-card .credit-title { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.credit-card .credit-title .fa { color: #181A34; }
.credit-card .credit-figure { font-size: 22px; font-weight: 700; color: #222; line-height: 1.1; margin-bottom: 6px; }
.credit-card .credit-figure .credit-cap { font-size: 13px; font-weight: 500; color: #888; margin-left: 4px; }
.credit-card .credit-meta { font-size: 12px; color: #777; margin-bottom: 8px; }
.credit-card .credit-progress { height: 8px; border-radius: 4px; background: #ececf0; overflow: hidden; }
.credit-card .credit-progress > .bar { height: 100%; background: #181A34; transition: width .3s ease; }
.credit-card.is-warning .credit-progress > .bar { background: #e0a800; }
.credit-card.is-danger  .credit-progress > .bar { background: #d9534f; }
.credit-card .credit-pct { font-size: 11px; color: #777; margin-top: 4px; text-align: right; }
.credit-card .credit-section + .credit-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ececf0; }
.credit-card.is-no-progress { display: flex; flex-direction: column; }
.credit-card.is-no-progress .credit-years { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; }
.credit-card.is-no-progress .credit-year { text-align: center; padding: 0; }
.credit-card.is-no-progress .credit-year-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 8px; }
.credit-card.is-no-progress .credit-year-figure { font-size: 32px; font-weight: 700; color: #222; line-height: 1; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.kpi-tile { background: #fff; border: 1px solid #e3e3e8; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.kpi-tile .kpi-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.kpi-tile .kpi-value { font-size: 24px; font-weight: 700; color: #222; line-height: 1.1; }
.kpi-tile .kpi-sub { font-size: 12px; color: #888; }
.kpi-tile .kpi-icon { position: absolute; right: 12px; top: 12px; font-size: 24px; opacity: .12; color: #181A34; }
.kpi-tile.kpi-success { border-top: 3px solid #5cb85c; }
.kpi-tile.kpi-success .kpi-icon { color: #5cb85c; }
.kpi-tile.kpi-danger  { border-top: 3px solid #d9534f; }
.kpi-tile.kpi-danger .kpi-icon { color: #d9534f; }
.kpi-tile.kpi-info    { border-top: 3px solid #181A34; }
.kpi-tile.kpi-warning { border-top: 3px solid #e0a800; }
.kpi-tile.kpi-warning .kpi-icon { color: #e0a800; }
.kpi-tile .kpi-value .kpi-unit { font-size: 13px; color: #888; font-weight: 500; margin-left: 3px; }
.tilasto-charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; }
.tilasto-charts-row .tilastot-card { margin-bottom: 0; }
@media (max-width: 600px) {
  .content-list { max-height: 240px; }
}
html[data-theme="dark"] .tilastot-page .page-header { border-bottom-color: #333845; }
html[data-theme="dark"] .tilastot-page .page-header h1 { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-page .page-header h1 .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-page .page-header small { color: #a3a9b6; }
html[data-theme="dark"] .tilastot-card { background: #1c1f27; border-color: #333845; box-shadow: none; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-card h3 { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-card h3 .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-card .subtle,
html[data-theme="dark"] .tilastot-card .text-muted { color: #a3a9b6 !important; }
html[data-theme="dark"] .content-list { background: #242833; border-color: #333845; }
html[data-theme="dark"] .content-list .content-item { color: #e6e8ec; }
html[data-theme="dark"] .content-list .content-item:hover { background: #2b2f3c; }
html[data-theme="dark"] .content-list .content-item.checked { background: rgba(74,117,200,0.18); }
html[data-theme="dark"] .content-count { color: #a3a9b6; }
html[data-theme="dark"] .credit-card { background: #1c1f27; border-color: #333845; box-shadow: none; }
html[data-theme="dark"] .credit-card .credit-title { color: #a3a9b6; }
html[data-theme="dark"] .credit-card .credit-title .fa { color: #8ab4ff; }
html[data-theme="dark"] .credit-card .credit-figure { color: #e6e8ec; }
html[data-theme="dark"] .credit-card .credit-figure .credit-cap,
html[data-theme="dark"] .credit-card .credit-meta,
html[data-theme="dark"] .credit-card .credit-pct,
html[data-theme="dark"] .credit-card .credit-section-title { color: #a3a9b6; }
html[data-theme="dark"] .credit-card .credit-progress { background: #242833; }
html[data-theme="dark"] .credit-card .credit-section + .credit-section { border-top-color: #333845; }
html[data-theme="dark"] .kpi-tile { background: #1c1f27; border-color: #333845; box-shadow: none; }
html[data-theme="dark"] .kpi-tile .kpi-label,
html[data-theme="dark"] .kpi-tile .kpi-sub,
html[data-theme="dark"] .kpi-tile .kpi-value .kpi-unit { color: #a3a9b6; }
html[data-theme="dark"] .kpi-tile .kpi-value { color: #e6e8ec; }
html[data-theme="dark"] .content-master-row { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .content-master-row .name { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-page .chart-card { background: #1c1f27; border-color: #333845; box-shadow: none; }
html[data-theme="dark"] .tilastot-page .chart-card h3 { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-page .chart-card h3 .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-page .kpi-tile { background: #1c1f27; border-color: #333845; box-shadow: none; }
html[data-theme="dark"] .tilastot-page .kpi-tile .kpi-label,
html[data-theme="dark"] .tilastot-page .kpi-tile .kpi-sub,
html[data-theme="dark"] .tilastot-page .kpi-tile .kpi-value .kpi-unit { color: #a3a9b6; }
html[data-theme="dark"] .tilastot-page .kpi-tile .kpi-value { color: #e6e8ec; }

/* ==========================================================================
   Tilastot — graphprint() form (.tilastot-graph-page)
   ========================================================================== */
.tilastot-graph-page { padding-top: 56px; clear: both; }
.tilastot-graph-page > h3:first-of-type { margin-top: 0; font-size: 22px; font-weight: 600; color: #1f2d3d; }
.tilastot-graph-page #dategraph { background: #fff; border: 1px solid #e3e3e8; border-radius: 12px; padding: 16px 20px; margin: 14px 0 22px; box-shadow: 0 1px 3px rgba(20,30,50,0.04); }
.tilastot-graph-page #dategraph label { font-weight: 600; color: #2f3e52; margin-bottom: 4px; }
.tilastot-graph-page #dategraph .form-control { border-radius: 8px; border: 1px solid #d4dbe2; padding: 8px 12px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.tilastot-graph-page #dategraph .form-control:focus { border-color: #181A34; box-shadow: 0 0 0 3px rgba(24,26,52,0.12); outline: none; }
.tilastot-graph-page #dategraph .form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tilastot-graph-page .btn { border-radius: 999px; padding: 6px 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; }
.tilastot-graph-page .btn-md { padding: 7px 18px; font-size: 14px; }
.tilastot-graph-page .btn-success, .tilastot-graph-page .btn-primary { background: #181A34; border: 1px solid #181A34; color: #fff; }
.tilastot-graph-page .btn-success:hover, .tilastot-graph-page .btn-success:focus,
.tilastot-graph-page .btn-primary:hover, .tilastot-graph-page .btn-primary:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.tilastot-graph-page .btn-default { background: #fff; border: 1px solid #d4dbe2; color: #243648; }
.tilastot-graph-page .btn-default:hover, .tilastot-graph-page .btn-default:focus { background: #f4f7fb; border-color: #a9b5c2; color: #181A34; }
html[data-theme="dark"] .tilastot-graph-page #dategraph { background: #1c1f27; border-color: #333845; box-shadow: none; }
html[data-theme="dark"] .tilastot-graph-page #dategraph label { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-graph-page #dategraph .form-control { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-graph-page #dategraph .form-control:focus { border-color: #4a75c8; box-shadow: 0 0 0 3px rgba(74,117,200,0.18); }
html[data-theme="dark"] .tilastot-graph-page > h3:first-of-type { color: #e6e8ec; }
html[data-theme="dark"] .tilastot-graph-page .btn-success, html[data-theme="dark"] .tilastot-graph-page .btn-primary { background: #4a75c8; border-color: #3a5fa3; }
html[data-theme="dark"] .tilastot-graph-page .btn-success:hover, html[data-theme="dark"] .tilastot-graph-page .btn-primary:hover { background: #5d8be0; border-color: #4a75c8; }
html[data-theme="dark"] .tilastot-graph-page .btn-default { background: #242833; border-color: #333845; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-graph-page .btn-default:hover, html[data-theme="dark"] .tilastot-graph-page .btn-default:focus { background: #2b2f3c; border-color: #4a75c8; color: #fff; }

/* ==========================================================================
   Tilasto graph stacked view (views/tilasto_graph_stacked.php)
   Includes the .tilastot-daterange-header (also used in tilastot/tilastohaku)
   ========================================================================== */
.tilastot-page .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0; }
.tilastot-page .kpi-tile { background: #fff; border: 1px solid #e3e3e8; border-radius: 6px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); position: relative; }
.tilastot-page .kpi-tile .kpi-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tilastot-page .kpi-tile .kpi-value { font-size: 24px; font-weight: 700; color: #222; line-height: 1.1; margin-top: 4px; }
.tilastot-page .kpi-tile .kpi-value .kpi-unit { font-size: 13px; color: #888; font-weight: 500; margin-left: 3px; }
.tilastot-page .kpi-tile .kpi-sub { font-size: 12px; color: #888; margin-top: 2px; }
.tilastot-page .kpi-tile .kpi-icon { position: absolute; right: 12px; top: 12px; font-size: 22px; opacity: .14; color: #181A34; }
.tilastot-page .kpi-tile.kpi-success { border-top: 3px solid #5cb85c; }
.tilastot-page .kpi-tile.kpi-success .kpi-icon { color: #5cb85c; }
.tilastot-page .kpi-tile.kpi-danger  { border-top: 3px solid #d9534f; }
.tilastot-page .kpi-tile.kpi-danger .kpi-icon { color: #d9534f; }
.tilastot-page .kpi-tile.kpi-info    { border-top: 3px solid #181A34; }
.tilastot-page .kpi-tile.kpi-warning { border-top: 3px solid #e0a800; }
.tilastot-page .kpi-tile.kpi-warning .kpi-icon { color: #e0a800; }
.tilastot-page .charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; margin-top: 14px; }
.tilastot-page .chart-card { background: #fff; border: 1px solid #e3e3e8; border-radius: 6px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.tilastot-page .chart-card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.tilastot-page .chart-card h3 .fa { color: #181A34; }
.tilastot-page .chart-toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.tilastot-page .chart-toolbar .toolbar-spacer { flex: 1 1 auto; }
.tilastot-page .scope-toggle .btn.active { background: #181A34; color: #fff; border-color: #272a54; }
.tilastot-daterange-header { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 14px; padding: 10px 18px; font-size: 20px; font-weight: 600; color: #1f2d3d; background: #f4f7fb; border: 1px solid #e3e3e8; border-left: 4px solid #181A34; border-radius: 8px; }
.tilastot-daterange-header .fa { color: #181A34; font-size: 22px; }
.tilastot-daterange-header.is-default { background: #fbfbfd; border-left-color: #a9b5c2; color: #4b5a70; font-weight: 500; }
.tilastot-daterange-header.is-default .fa { color: #6c7a90; }
.tilastot-daterange-tag { display: inline-flex; align-items: center; padding: 2px 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6c7a90; background: #fff; border: 1px solid #d4dbe2; border-radius: 999px; margin-left: 4px; }
html[data-theme="dark"] .tilastot-daterange-header { background: #242833; border-color: #333845; border-left-color: #8ab4ff; color: #e6e8ec; }
html[data-theme="dark"] .tilastot-daterange-header .fa { color: #8ab4ff; }
html[data-theme="dark"] .tilastot-daterange-header.is-default { background: #1f232d; border-left-color: #4a5366; color: #a3a9b6; }
html[data-theme="dark"] .tilastot-daterange-header.is-default .fa { color: #6c7a90; }
html[data-theme="dark"] .tilastot-daterange-tag { background: #1c1f27; border-color: #333845; color: #a3a9b6; }

/* ==========================================================================
   Redactor editor — controllers/Project.php (questions, redactor inline)
   ========================================================================== */
.redactor-editor { background: #f5f5f5; }
.redactor-editor .liitettysisalto { background: #fafafa; border: 1px solid #cccccc; }

/* ==========================================================================
   Top navbar — Systam default brand (controllers/status.php)
   Brand tokens:
     Systam Navy       #181A34   (navbar background)
     Systam Pink       #FF3364   (primary accent)
     Systam Warm       #FF6488   (warm accent)
   Tenant client.css can override these (cascade: pass_styles -> client.css)
   ========================================================================== */
.navbar { background: #181A34; }
.navbar-default { border: none; }
.navbar-default .navbar-brand,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:active { color: #FFFFFF; }
.navbar-nav { background: none; }
.navbar-default .navbar-nav li a { color: #c5c8e0; background: none; }
.navbar-default .navbar-nav li a i { color: #FFFFFF; }
.navbar-default .navbar-nav li a:hover i,
.navbar-default .navbar-nav li a:active i { color: #FF6488; }
.navbar-default .navbar-nav li.dropdown.open > a,
.navbar-default .navbar-nav li.dropdown.open > a:focus,
.navbar-default .navbar-nav li.dropdown.open > a:hover { background: #181A34; color: #FFFFFF; }
.navbar-default .navbar-nav li .dropdown-menu { background: #181A34; border: 1px solid #181A34; border-radius: 0; }
.navbar-default .navbar-nav .divider-vertical { height: 50px; margin: 0; border-left: 1px solid #272a54; border-right: 1px solid #272a54; }
@media (max-width: 767px) {
    .navbar-collapse .nav > .divider-vertical { display: none; }
}
.form-control { font-weight: normal; }
h1 .modal,
.h1 .modal { font-size: 14px; font-weight: normal; line-height: 1.425; }
.video-js { padding-top: 56.25%; }
.vjs-fullscreen { padding-top: 0; }
.videosoitin { width: 100%; max-width: 1024px; }

/* ==========================================================================
   "Lisää uusi suorittaja" popup actions (Sulje + Tallenna/Add)
   Navy + rounded styling to match the rest of the userlist UI
   ========================================================================== */
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-cancel,
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    border: 1px solid #181A34 !important;
    background: #181A34 !important;
    color: #fff !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-cancel {
    background: #fff !important;
    color: #181A34 !important;
}
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-cancel:hover,
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-cancel:focus {
    background: #181A34 !important;
    color: #fff !important;
    border-color: #181A34 !important;
    box-shadow: 0 3px 10px rgba(24,26,52,0.25);
    text-decoration: none;
}
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-add:hover,
.userlist-bulk-newuser-actions .btn.js-userlist-bulk-newuser-add:focus {
    background: #272a54 !important;
    border-color: #272a54 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(24,26,52,0.25);
    text-decoration: none;
}
]633;E;echo "";f2b73269-5966-4c16-87e1-0d542c88be74]633;C
/* user/userlist() modal + table style block (migrated from User.php) */
.userlist-modern-table { margin-bottom: 12px; border-collapse: separate; border-spacing: 0 8px; width: 100%; table-layout: fixed; }
.userlist-modern-table > thead > tr > th { background: #f7f9fc; border: 0; border-bottom: 1px solid #dde5ee; color: #425466; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; }
.userlist-sort-header { display: inline-flex; align-items: center; gap: 6px; width: 100%; color: #425466; text-decoration: none; }
.userlist-sort-header:hover, .userlist-sort-header:focus { color: #2f4459; text-decoration: none; }
.userlist-sort-header-icon { color: #2f4459; min-width: 8px; }
.userlist-sort-header-active { color: #1e3247; font-weight: 700; background: #eaf2fb; border: 1px solid #d2e1f2; border-radius: 6px; padding: 4px 7px; }
.userlist-sort-header-active:hover, .userlist-sort-header-active:focus { color: #13283c; background: #e2ecf8; }
.userlist-sort-col-1 > thead > tr > th:nth-child(1), .userlist-sort-col-1 > tbody > tr > td:nth-child(1) { background-color: #f4f8fd; }
.userlist-sort-col-2 > thead > tr > th:nth-child(2), .userlist-sort-col-2 > tbody > tr > td:nth-child(2) { background-color: #f4f8fd; }
.userlist-sort-col-4 > thead > tr > th:nth-child(4), .userlist-sort-col-4 > tbody > tr > td:nth-child(4) { background-color: #f4f8fd; }
.userlist-sort-col-5 > thead > tr > th:nth-child(5), .userlist-sort-col-5 > tbody > tr > td:nth-child(5) { background-color: #f4f8fd; }
.userlist-person-header-wrap { display: flex; align-items: center; gap: 8px; }
.userlist-person-header-wrap .userlist-sort-header { width: auto; }
.userlist-modern-table > tbody > tr.userlist-main-row > td { vertical-align: top; padding: 14px 12px; background: #ffffff; border-top: 1px solid #e6ebf1; border-bottom: 1px solid #e6ebf1; border-left: 0; border-right: 0; transition: background-color .18s ease, box-shadow .18s ease; cursor: pointer; }
.userlist-modern-table > tbody > tr.userlist-main-row > td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.userlist-modern-table > tbody > tr.userlist-main-row > td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.userlist-modern-table > tbody > tr.userlist-main-row:hover > td { background: #fbfdff; box-shadow: 0 1px 0 rgba(56, 84, 109, 0.08); }
.userlist-modern-table > tbody > tr.userlist-main-row.userlist-row-open > td { background: #f8fbff; border-top-color: #d9e5f2; border-bottom-color: #d9e5f2; }
.userlist-identity-cell { min-width: 0; }
.userlist-identity-wrap { display: flex; align-items: flex-start; gap: 10px; }
.userlist-checkbox { padding-top: 10px; }
.userlist-avatar { width: 40px; height: 40px; border-radius: 999px; color: #fff; font-weight: 700; text-align: center; line-height: 40px; flex: 0 0 40px; }
.userlist-avatar-trigger { border: 0; padding: 0; cursor: pointer; }
.userlist-avatar-trigger:focus { outline: none; box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.35); }
.userlist-expand-cue { width: 24px; height: 24px; padding: 0; margin-top: 8px; border: 0; background: transparent; color: #8a98a8; }
.userlist-expand-cue:focus { outline: none; color: #4d5f72; }
.userlist-name { display: inline-block; font-weight: 600; color: #1f2d3d; }
.userlist-name-trigger { padding: 0; border: 0; background: transparent; text-decoration: none; cursor: pointer; }
.userlist-name-trigger:hover { text-decoration: underline; color: #1f2d3d; }
.userlist-email { color: #6b7785; font-size: 12px; margin-top: 2px; }
.userlist-user-fields { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e2e8ee; flex-direction: column; gap: 3px; }
.userlist-modern-table > tbody > tr.userlist-main-row.userlist-row-open .userlist-user-fields { display: flex; }
.userlist-user-field { font-size: 12px; color: #4d5f72; line-height: 1.4; display: flex; gap: 6px; align-items: baseline; }
.userlist-user-field-label { color: #8a98a8; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: 10.5px; flex-shrink: 0; }
.userlist-user-field-value { word-break: break-word; white-space: normal; }
.userlist-user-field-value a { color: #3a6fb8; }
.userlist-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #4b5d6f; background: #f2f6fb; border: 1px solid #e2e9f1; border-radius: 999px; padding: 3px 9px; }
.userlist-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.userlist-dot-warning { background: #f0ad4e; }
.userlist-dot-neutral { background: #7f8ea3; }
.userlist-dot-info { background: #4e8ecf; }
.userlist-dot-danger { background: #d9534f; }
.userlist-dot-success { background: #2c7a4b; }
.userlist-cell-title { font-weight: 600; color: #1f2d3d; }
.userlist-cell-meta { color: #6b7785; font-size: 12px; line-height: 1.5; }
.userlist-inline-meta { color: #8896a5; font-size: 11px; margin-left: 6px; }
.userlist-progress-inline { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.userlist-progress-ratio { font-size: 12px; font-weight: 700; color: #243648; }
.userlist-progress-track { width: 92px; height: 10px; border-radius: 999px; background: #e8edf4; overflow: hidden; flex: 0 0 92px; }
.userlist-progress-fill { height: 100%; border-radius: 999px; transition: width .24s ease; }
.userlist-progress-fill-neutral { background: #7f8ea3; }
.userlist-progress-fill-warning { background: #f0ad4e; }
.userlist-progress-fill-danger { background: #181A34; }
.userlist-progress-fill-success { background: #2c7a4b; }
.userlist-progress-alert { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 7px; margin-left: auto; }
.userlist-progress-alert-warning { color: #8a641f; background: #fff5e8; border: 1px solid #f5d8aa; }
.userlist-progress-alert-danger { color: #a13b3b; background: #fff0f0; border: 1px solid #f0c8c8; }
.userlist-expand-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.userlist-expand-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.userlist-expand-toolbar-left { display: flex; align-items: center; gap: 8px; color: #4d5f72; font-size: 12px; }
.userlist-expand-created-label .fa { margin-right: 4px; color: #7a8a9b; }
.userlist-expand-toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.userlist-expand-actions { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.userlist-inline-invite { display: inline-flex; gap: 4px; align-items: center; margin: 0; padding: 0; }
.userlist-inline-invite-select { appearance: auto; -webkit-appearance: menulist; display: inline-block; width: 170px; max-width: 180px; height: 22px; padding: 1px 6px; font-size: 12px; line-height: 1.4; border: 1px solid #ccd4de; border-radius: 3px; background: #fff; color: #243648; box-sizing: border-box; }
.userlist-inline-invite .userlist-row-btn { height: auto; line-height: 1.2; }
.userlist-inline-invite-flash { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-left: 6px; }
.userlist-bulk-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; margin-bottom: 8px; }
.userlist-bulk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid #e6ebf1; border-radius: 8px; background: #f7f9fc; }
.userlist-bulk-chip { display: inline-flex; align-items: center; gap: 6px; background: #e6ebf1; color: #243648; border-radius: 999px; padding: 4px 4px 4px 10px; font-size: 12px; font-weight: 600; }
.userlist-bulk-chip-name { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.userlist-bulk-chip-remove { width: 18px; height: 18px; border: none; border-radius: 50%; background: rgba(0,0,0,0.08); color: #243648; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.userlist-bulk-chip-remove:hover { background: #d9534f; color: #fff; }
.userlist-bulk-empty { color: #7a8a9b; font-style: italic; margin-bottom: 18px; }
.userlist-bulk-invite-section { border-top: 1px solid #e6ebf1; padding-top: 16px; }
.userlist-bulk-invite-form { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.userlist-bulk-invite-select { flex: 1 1 auto; width: auto !important; max-width: 100% !important; }
.userlist-bulk-invite-flash-wrap { min-height: 4px; }
.userlist-bulk-search-section { margin-bottom: 18px; }
.userlist-bulk-search-wrap { position: relative; }
.userlist-bulk-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #7a8a9b; font-size: 13px; pointer-events: none; }
.userlist-bulk-search-input { width: 100%; padding: 8px 32px 8px 30px; border: 1px solid #d4dbe2; border-radius: 8px; font-size: 13px; background: #fff; box-sizing: border-box; }
.userlist-bulk-search-input:focus { border-color: #181A34; outline: none; box-shadow: 0 0 0 2px rgba(24,26,52,0.12); }
.userlist-bulk-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border: none; border-radius: 50%; background: rgba(0,0,0,0.08); color: #243648; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.userlist-bulk-search-clear:hover { background: #d9534f; color: #fff; }
.userlist-bulk-search-results { margin-top: 8px; max-height: 240px; overflow-y: auto; border: 1px solid #e6ebf1; border-radius: 8px; background: #fff; }
.userlist-bulk-search-item { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; background: transparent; border-bottom: 1px solid #f1f4f8; font-size: 13px; cursor: pointer; color: #1f2d3d; }
.userlist-bulk-search-item:last-child { border-bottom: none; }
.userlist-bulk-search-item:hover { background: #f7f9fc; }
.userlist-bulk-search-item.is-added { opacity: 0.5; cursor: default; background: #eef5ee; }
.userlist-bulk-search-item.is-added:after { content: "\2713"; float: right; color: #4aaf4f; font-weight: 700; }
.userlist-bulk-search-name { font-weight: 600; }
.userlist-bulk-search-meta { color: #7a8a9b; margin-left: 6px; }
.userlist-bulk-search-loading, .userlist-bulk-search-empty { padding: 10px 12px; color: #7a8a9b; font-size: 12px; font-style: italic; text-align: center; }
.userlist-bulk-search-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; font-style: normal; }
.userlist-bulk-search-empty-msg { color: #7a8a9b; font-style: italic; }
.userlist-bulk-chip-new { background: #d9f0d8; color: #1f5a26; border: 1px solid #4aaf4f; }
.userlist-bulk-chip-new .userlist-bulk-chip-remove { background: rgba(74,175,79,0.18); color: #1f5a26; }
.userlist-bulk-chip-new .userlist-bulk-chip-remove:hover { background: #d9534f; color: #fff; }
.userlist-bulk-chip-icon { margin-right: 4px; font-size: 11px; }
.userlist-bulk-newuser { margin-top: 10px; border: 1px solid #4aaf4f; background: #f3faf3; border-radius: 8px; padding: 12px; }
.userlist-bulk-newuser-header { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1f5a26; margin-bottom: 10px; font-size: 13px; }
.userlist-bulk-newuser-header i { font-size: 14px; }
.userlist-bulk-newuser-header span { flex: 1; }
.userlist-bulk-newuser-cancel { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.08); color: #243648; font-size: 14px; line-height: 1; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.userlist-bulk-newuser-cancel:hover { background: #d9534f; color: #fff; }
.userlist-bulk-newuser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.userlist-bulk-newuser-grid .form-control { font-size: 13px; padding: 6px 10px; height: auto; }
.userlist-bulk-newuser-names { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.userlist-bulk-newuser-swap { width: 30px; height: 30px; border: 1px solid #d4dbe2; border-radius: 50%; background: #fff; color: #181A34; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform 0.15s ease, background 0.15s ease; }
.userlist-bulk-newuser-swap:hover { background: #181A34; color: #fff; transform: rotate(180deg); }
.userlist-bulk-newuser-swap i { font-size: 12px; }
.userlist-bulk-newuser-email-wrap { position: relative; }
.userlist-bulk-newuser-email-wrap .form-control { padding-right: 38px; }
.userlist-bulk-newuser-parse { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 1px solid #4aaf4f; border-radius: 50%; background: #fff; color: #1f5a26; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease; }
.userlist-bulk-newuser-parse:hover { background: #4aaf4f; color: #fff; transform: translateY(calc(-50% - 2px)); }
.userlist-bulk-newuser-parse i { font-size: 12px; }
.userlist-bulk-newuser-hint { font-size: 12px; color: #7a8a9b; margin-bottom: 8px; }
.userlist-bulk-newuser-hint.is-error { color: #d9534f; font-weight: 600; }
.userlist-bulk-newuser-actions { display: flex; justify-content: flex-end; gap: 6px; }
@media (max-width: 520px) { .userlist-bulk-newuser-grid { grid-template-columns: 1fr; } }
.userlist-actions .btn { margin-right: 4px; margin-bottom: 4px; }
.userlist-action-menu { position: relative; display: inline-block; margin-right: 4px; margin-bottom: 4px; }
.userlist-action-trigger { width: 28px; height: 22px; padding: 0; }
.userlist-action-dropdown { position: absolute; top: 26px; right: 0; z-index: 20; min-width: 120px; background: #fff; border: 1px solid #dfe7f0; border-radius: 8px; box-shadow: 0 8px 18px rgba(46, 78, 112, 0.14); display: none; overflow: hidden; }
.userlist-action-dropdown.open { display: block; }
.userlist-action-item { display: block; width: 100%; padding: 7px 10px; color: #2f4052; font-size: 12px; text-decoration: none; background: #fff; border: 0; text-align: left; }
.userlist-action-item:hover { background: #f4f8fc; color: #1f2d3d; text-decoration: none; }
.userlist-action-item-danger { color: #b64040; }
.js-userlist-expand-icon { margin-left: 4px; transition: transform .18s ease; }
.js-userlist-expand.is-open .fa-chevron-right.js-userlist-expand-icon { transform: rotate(90deg); }
.js-userlist-expand.is-open .fa-chevron-down.js-userlist-expand-icon { transform: rotate(180deg); }
.userlist-expand-row td { background: transparent; border: 0 !important; padding: 0 0 8px 0 !important; }
.userlist-expand-panel { padding: 0; border: 1px solid #e2e9f1; border-radius: 10px; background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); box-shadow: 0 8px 18px rgba(46, 78, 112, 0.08); animation: userlist-expand-in .2s ease; }
.userlist-expand-panel > div { padding: 10px 12px; }
.userlist-expand-body { border: 1px solid #e6ebf1; border-radius: 8px; background: #fff; padding: 10px 12px; overflow-x: auto; }
.userlist-stale-wrapper { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e7ee; }
.userlist-stale-hint { font-size: 12px; color: #7a8a9b; font-style: italic; margin-bottom: 6px; }
.userlist-stale-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; border: 1px solid #d4dbe2; background: #f6f8fb; color: #4a5869; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.userlist-stale-toggle:hover, .userlist-stale-toggle:focus { background: #eef2f7; border-color: #c1cad4; color: #1f2d3d; outline: none; }
.userlist-stale-toggle.is-open i.fa-chevron-down { transform: rotate(180deg); }
.userlist-stale-toggle i { font-size: 10px; transition: transform 0.15s ease; }
.userlist-stale-list { margin-top: 8px; opacity: 0.85; }
.userlist-content-item-stale { background: #fafbfd; }
.userlist-expand-loading { color: #6b7785; font-size: 12px; }
.userlist-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; line-height: 1; }
.userlist-stat-success { color: #155724; background: #d6f0df; border: 1px solid #b9e3c7; }
.userlist-stat-warning { color: #7a5200; background: #fff1c5; border: 1px solid #f6da7a; }
.userlist-stat-danger { color: #7a1f1f; background: #ffd9d6; border: 1px solid #f3b4ae; }
.userlist-stat-muted { color: #425466; background: #eef2f8; border: 1px solid #dbe3ee; font-weight: 600; }
.userlist-content-list { border: 1px solid #e2e9f1; border-radius: 10px; background: #fff; overflow: hidden; }
.userlist-content-item { display: grid; grid-template-columns: 10px minmax(180px, 1fr) 160px 140px 120px 340px; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #edf1f6; font-size: 12px; }
.userlist-content-item:last-child { border-bottom: 0; }
.userlist-content-dot { width: 10px; height: 10px; border-radius: 999px; }
.userlist-content-dot-success { background: #2c7a4b; }
.userlist-content-dot-warning { background: #e0a800; }
.userlist-content-dot-danger { background: #c9302c; }
.userlist-content-dot-muted { background: #8a98a8; }
.userlist-content-name { font-weight: 700; color: #1f2d3d; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userlist-content-name-link { color: inherit; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.userlist-content-name-link:hover, .userlist-content-name-link:focus { color: #1f2d3d; text-decoration: underline; outline: none; }
.userlist-content-name-link .userlist-content-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userlist-content-name-link .userlist-content-name-icon { opacity: 0; transition: opacity 0.15s ease-in-out; color: #3a6fb8; flex-shrink: 0; }
.userlist-content-name-link:hover .userlist-content-name-icon, .userlist-content-name-link:focus .userlist-content-name-icon { opacity: 1; }
.userlist-content-validity { color: #6b7785; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.userlist-content-validity > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.userlist-content-cancel { color: #c9302c; text-decoration: none; font-size: 13px; line-height: 1; padding: 2px 5px; border-radius: 4px; flex: 0 0 auto; }
.userlist-content-cancel:hover, .userlist-content-cancel:focus { color: #fff; background: #c9302c; text-decoration: none; }
.userlist-content-validity-warning { color: #8a641f; font-weight: 600; }
.userlist-content-validity-danger { color: #a13b3b; font-weight: 600; }
.userlist-content-invite { color: #6b7785; font-size: 11px; line-height: 1.3; min-width: 0; }
.userlist-content-invite strong { color: #1f2d3d; font-weight: 600; }
.userlist-content-completed { color: #6b7785; font-size: 11px; min-width: 0; }
.userlist-content-status { text-align: right; color: #6b7785; font-size: 11px; font-weight: 600; }
.userlist-content-action { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; align-items: center; min-width: 0; }
.userlist-content-action .btn { font-size: 11px; padding: 4px 10px; white-space: nowrap; }
.userlist-content-item-pending { background: #fff8e1; box-shadow: inset 4px 0 0 #e0a800; }
.userlist-content-item-pending .userlist-content-name { color: #5a3e00; }
.userlist-content-item-pending .userlist-content-status { color: #8a5d00; font-weight: 700; }
.userlist-content-empty { padding: 14px; color: #6b7785; font-size: 12px; text-align: center; }
@media (max-width: 992px) {
	.userlist-content-item { grid-template-columns: 10px minmax(160px, 1fr) 160px 280px; }
	.userlist-content-invite, .userlist-content-completed { display: none; }
}
@media (max-width: 768px) {
	.userlist-content-item { grid-template-columns: 10px 1fr; }
	.userlist-content-validity, .userlist-content-action { grid-column: 2 / -1; }
}
.table-responsive { overflow-x: hidden; }
@keyframes userlist-expand-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
.userlist-details-modal { position: fixed; inset: 0; z-index: 1060; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(20, 31, 45, 0.55); overflow-y: auto; overscroll-behavior: contain; }
.userlist-details-modal.is-open { display: flex; }
.userlist-details-dialog { width: 100%; max-width: 1080px; background: #fff; border-radius: 12px; box-shadow: 0 30px 70px rgba(19, 33, 58, 0.25); display: flex; flex-direction: column; }
.userlist-details-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #eef1f6; background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%); border-radius: 12px 12px 0 0; }
.userlist-details-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #1f2d3d; letter-spacing: .01em; }
.userlist-details-close { background: transparent; border: 0; font-size: 22px; line-height: 1; color: #6b7785; cursor: pointer; padding: 4px 10px; border-radius: 6px; }
.userlist-bulk-header-actions { display: flex; align-items: center; gap: 8px; }
.userlist-bulk-import-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px; border-radius: 16px; border: 1px solid #d4dbe2; background: #fff; color: #1f2d3d; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.userlist-bulk-import-btn:hover, .userlist-bulk-import-btn:focus-within { background: #181A34; border-color: #181A34; color: #fff; box-shadow: 0 2px 6px rgba(24,26,52,0.18); }
.userlist-bulk-import-btn i { font-size: 11px; }
.userlist-bulk-import-btn.is-loading { opacity: 0.6; pointer-events: none; }
.userlist-bulk-import-template { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #4a5869; background: #f6f8fb; border: 1px solid #e2e7ee; transition: background 0.15s ease, color 0.15s ease; }
.userlist-bulk-import-template:hover, .userlist-bulk-import-template:focus { background: #eef2f7; color: #1f2d3d; text-decoration: none; }
.userlist-bulk-import-flash { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.userlist-bulk-import-flash.is-success { background: #eaf6ec; border: 1px solid #cfe7d4; color: #2e6b34; }
.userlist-bulk-import-flash.is-error { background: #fbeaea; border: 1px solid #f0c9c9; color: #a33; }
.userlist-bulk-delete-dialog { max-width: 540px; }
.userlist-bulk-delete-modal .userlist-details-header h3 { color: #a33; }
.userlist-bulk-delete-modal .userlist-details-header h3 i { margin-right: 6px; }
.userlist-bulk-delete-warn { margin: 0 0 10px; color: #333; font-size: 14px; }
.userlist-bulk-delete-list { max-height: 240px; overflow-y: auto; margin: 0 0 12px; padding: 8px 12px 8px 28px; background: #fbeaea; border: 1px solid #f0c9c9; border-radius: 6px; color: #5a1f1f; font-size: 13px; }
.userlist-bulk-delete-list li { margin: 2px 0; }
.userlist-bulk-delete-status { min-height: 20px; font-size: 13px; }
.userlist-bulk-delete-status.is-error { color: #a33; }
.userlist-bulk-delete-status.is-success { color: #2e6b34; }
.userlist-details-close:hover { background: #f1f4f9; color: #1f2d3d; }
.userlist-details-body { padding: 22px 24px; font-size: 13px; color: #1f2d3d; background: #fafbfd; }
.userlist-details-loading { color: #6b7785; padding: 12px 0; }
.userlist-details-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid #eef1f6; background: #ffffff; border-radius: 0 0 12px 12px; }
.userlist-details-section { background: #fff; border: 1px solid #e6ebf1; border-radius: 10px; padding: 4px 0; box-shadow: 0 1px 2px rgba(46, 78, 112, 0.04); margin-bottom: 18px; }
.userlist-details-section + h4 { margin: 0 0 10px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7785; }
.userlist-details-body table { width: 100%; margin: 0; border-collapse: collapse; }
.userlist-details-body .userlist-details-section table tr { border-bottom: 1px solid #edf1f6; }
.userlist-details-body .userlist-details-section table tr:last-child { border-bottom: 0; }
.userlist-details-body .userlist-details-section th, .userlist-details-body .userlist-details-section td { border: 0; padding: 12px 18px; vertical-align: top; background: transparent; }
.userlist-details-body .userlist-details-section th { width: 30%; color: #6b7785; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.userlist-details-body .userlist-details-section td { color: #1f2d3d; font-size: 13px; }
.userlist-details-qa { background: #fff; border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(46, 78, 112, 0.04); }
.userlist-details-qa table { width: 100%; border-collapse: collapse; }
.userlist-details-qa thead th { background: #f7f9fc; color: #425466; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 10px 16px; border: 0; border-bottom: 1px solid #e6ebf1; text-align: left; }
.userlist-details-qa tbody td { border: 0; border-bottom: 1px solid #edf1f6; padding: 11px 16px; vertical-align: top; font-size: 13px; color: #1f2d3d; }
.userlist-details-qa tbody tr:last-child td { border-bottom: 0; }
.userlist-details-qa tbody tr:nth-child(even) td { background: #fafbfd; }
.userlist-details-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.userlist-details-badge-success { color: #155724; background: #d6f0df; border: 1px solid #b9e3c7; }
.userlist-details-badge-danger { color: #7a1f1f; background: #ffd9d6; border: 1px solid #f3b4ae; }
.userlist-details-badge-muted { color: #425466; background: #eef2f8; border: 1px solid #dbe3ee; }
.userlist-details-title { font-size: 20px; font-weight: 700; color: #1f2d3d; margin: 0 0 4px 2px; letter-spacing: .01em; }
.userlist-details-subtitle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #6b7785; margin: 0 0 16px 2px; }
.userlist-details-subtitle .userlist-details-sub-dot { width: 4px; height: 4px; border-radius: 999px; background: #c3ccd8; display: inline-block; }
.userlist-details-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.userlist-details-hero-item { background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(46, 78, 112, 0.05); display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.userlist-details-hero-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b7785; }
.userlist-details-hero-value { font-size: 26px; font-weight: 700; color: #1f2d3d; line-height: 1.1; }
.userlist-details-hero-meta { font-size: 12px; color: #6b7785; }
.userlist-details-hero-item .userlist-details-badge { align-self: flex-start; font-size: 12px; padding: 4px 12px; }
@media (max-width: 720px) { .userlist-details-hero { grid-template-columns: 1fr; } }
.userlist-edit-hero { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px 0; }
.userlist-edit-hero-badge { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 10px; background: #f7f9fc; border: 1px solid #e6ebf1; min-width: 96px; }
.userlist-edit-hero-badge .userlist-edit-hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; }
.userlist-edit-hero-badge .userlist-edit-hero-value { font-size: 20px; font-weight: 700; color: #1f2d3d; }
.userlist-edit-hero-badge-success { background: #e3f5ea; border-color: #bfe0cc; }
.userlist-edit-hero-badge-success .userlist-edit-hero-value { color: #1f6d3a; }
.userlist-edit-hero-badge-warning { background: #fff4d6; border-color: #f0dc9a; }
.userlist-edit-hero-badge-warning .userlist-edit-hero-value { color: #8a6300; }
.userlist-edit-hero-badge-danger { background: #fde6e6; border-color: #efc3c1; }
.userlist-edit-hero-badge-danger .userlist-edit-hero-value { color: #a12d2a; }
.userlist-edit-hero-badge-muted { justify-content: center; }
.userlist-edit-hero-badge-muted .userlist-edit-hero-value { font-size: 13px; font-weight: 600; color: #4d5f72; }
.userlist-edit-invite { background: #f7f9fc; border: 1px solid #e6ebf1; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; }
.userlist-edit-flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; margin-bottom: 12px; transition: opacity .6s ease, transform .6s ease; box-shadow: 0 2px 8px rgba(34, 139, 66, 0.12); }
.userlist-edit-flash .fa { font-size: 20px; }
.userlist-edit-flash.is-fading { opacity: 0; transform: translateY(-6px); }
.userlist-edit-flash-success { background: #d4edda; border: 1px solid #a8d9b8; color: #1e5a33; }
.userlist-edit-flash-warning { background: #fff3cd; border: 1px solid #f0dc9a; color: #8a6300; }
.userlist-edit-flash-danger { background: #f8d7da; border: 1px solid #efc3c1; color: #8a1d1a; }
.userlist-edit-invite-title { font-weight: 600; color: #1f2d3d; margin: 0 0 8px 0; font-size: 13px; }
.userlist-edit-invite .form-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.userlist-edit-invite select { flex: 1 1 200px; min-width: 200px; }
.userlist-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.userlist-edit-form .userlist-edit-field-full { grid-column: 1 / -1; }
.userlist-edit-form .form-group { margin: 0; }
.userlist-edit-form label { display: block; font-size: 12px; color: #6b7785; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.userlist-edit-form .form-control { border-radius: 8px; }
.userlist-edit-status { margin-right: auto; font-size: 13px; }
@media (max-width: 720px) { .userlist-edit-form { grid-template-columns: 1fr; } }
.userlist-sisalto-heading { font-size: 18px; font-weight: 700; color: #1f2d3d; margin: 4px 0 14px 0; }
.userlist-sisalto-body-content { background: #fff; border: 1px solid #e6ebf1; border-radius: 10px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(46, 78, 112, 0.04); font-size: 14px; color: #1f2d3d; line-height: 1.55; }
.userlist-sisalto-body-content img { max-width: 100%; height: auto; }
.userlist-sisalto-body-content table { max-width: 100%; }
.userlist-actionbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; margin: 14px 0 18px 0; }
.userlist-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; line-height: 1; border-radius: 999px; border: 1px solid #d4dbe2; background: #fff; color: #243648; text-decoration: none; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease; box-shadow: 0 1px 2px rgba(46,78,112,0.04); }
.userlist-action-btn:hover, .userlist-action-btn:focus { background: #f4f7fb; border-color: #a9b5c2; color: #181A34; text-decoration: none; box-shadow: 0 2px 6px rgba(46,78,112,0.08); }
.userlist-action-btn:active { transform: translateY(1px); }
.userlist-action-btn i { font-size: 13px; opacity: 0.85; }
.userlist-action-btn-primary { background: #181A34; border-color: #181A34; color: #fff; }
.userlist-action-btn-primary:hover, .userlist-action-btn-primary:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.userlist-action-btn-primary i { opacity: 1; }
.userlist-action-btn-danger { background: #fff; border-color: #e6bcbc; color: #a33; }
.userlist-action-btn-danger:hover, .userlist-action-btn-danger:focus { background: #c0392b; border-color: #c0392b; color: #fff; box-shadow: 0 3px 10px rgba(192,57,43,0.25); }
.userlist-action-btn-danger .userlist-action-btn-badge { background: rgba(192,57,43,0.15); color: #a33; }
.userlist-action-btn-danger:hover .userlist-action-btn-badge, .userlist-action-btn-danger:focus .userlist-action-btn-badge { background: rgba(255,255,255,0.25); color: #fff; }
.userlist-action-btn-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #fff; color: #181A34; font-size: 11px; font-weight: 700; }
@media (max-width: 600px) { .userlist-actionbar { justify-content: stretch; } .userlist-action-btn { flex: 1 1 auto; justify-content: center; } }
.userlist-search-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.userlist-search-input-group { flex: 1 1 240px; margin-bottom: 0 !important; }
.userlist-search-create-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #181A34; border-radius: 999px; background: #181A34; color: #fff; font-weight: 600; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.userlist-search-create-btn:hover, .userlist-search-create-btn:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); text-decoration: none; }
.userlist-search-create-btn i { font-size: 13px; }
/* Tarkka haku (extended search) panel */
.userlist-tarkka-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 14px; font-size: 12px; color: #4a5869; background: transparent; transition: background 0.15s ease, color 0.15s ease; }
.userlist-tarkka-toggle:hover, .userlist-tarkka-toggle:focus { background: #eef2f7; color: #1f2d3d; text-decoration: none; }
.userlist-tarkka-toggle i { font-size: 12px; }
.userlist-tarkka-toggle.is-open { background: #eef2f7; color: #181A34; }
.userlist-tarkka-panel { margin-top: 10px; padding: 18px 20px; border: 1px solid #e2e7ee; border-radius: 12px; background: #fafbfd; box-shadow: 0 1px 2px rgba(46,78,112,0.04); }
.userlist-tarkka-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; }
.userlist-tarkka-field { display: flex; flex-direction: column; gap: 4px; }
.userlist-tarkka-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #7a8a9b; margin: 0; }
.userlist-tarkka-field .form-control { height: 34px; padding: 6px 10px; border: 1px solid #d4dbe2; border-radius: 6px; background: #fff; font-size: 13px; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.userlist-tarkka-field .form-control:focus { border-color: #4a75c8; box-shadow: 0 0 0 3px rgba(74,117,200,0.15); outline: none; }
.userlist-tarkka-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.userlist-tarkka-submit { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border: 1px solid #181A34; border-radius: 20px; background: #181A34; color: #fff; font-weight: 600; transition: background 0.15s ease, box-shadow 0.15s ease; }
.userlist-tarkka-submit:hover, .userlist-tarkka-submit:focus { background: #272a54; border-color: #272a54; color: #fff; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
/* Expand-row action buttons */
.userlist-row-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; border: 1px solid #181A34; background: #181A34; color: #fff; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; }
.userlist-row-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: #181A34; vertical-align: middle; }
.userlist-row-btn:hover, .userlist-row-btn:focus { background: #272a54; border-color: #272a54; color: #fff; text-decoration: none; box-shadow: 0 3px 10px rgba(24,26,52,0.25); }
.userlist-row-btn[disabled], .userlist-row-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.userlist-row-btn i { font-size: 11px; opacity: 0.95; }
.userlist-row-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(24,26,52,0.18); }
.userlist-row-btn-send, .userlist-row-btn-edit, .userlist-row-btn-markdone { border-color: #181A34; background: #181A34; color: #fff; }
.userlist-row-btn-send:hover, .userlist-row-btn-send:focus, .userlist-row-btn-edit:hover, .userlist-row-btn-edit:focus, .userlist-row-btn-markdone:hover, .userlist-row-btn-markdone:focus { background: #272a54; border-color: #272a54; color: #fff; }
.userlist-row-btn-delete { border-color: #e0c4c4; background: #fff; color: #a94442; }
.userlist-row-btn-delete:hover, .userlist-row-btn-delete:focus { background: #c9302c; border-color: #ac2925; color: #fff; text-decoration: none; }
.userlist-row-btn-remind { border-color: #e8c36a; background: #fff; color: #8a6d1f; }
.userlist-row-btn-remind:hover, .userlist-row-btn-remind:focus { background: #f0ad4e; border-color: #d79a3c; color: #fff; text-decoration: none; }
.userlist-inline-invite-select { height: 28px; padding: 2px 8px; border: 1px solid #d4dbe2; border-radius: 14px; background: #fff; font-size: 12px; color: #1f2d3d; }
.userlist-inline-invite-select:focus { outline: none; border-color: #4a75c8; box-shadow: 0 0 0 2px rgba(74,117,200,0.15); }
.userlist-no-results-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 20px; margin: 16px 0; background: #f6f8fb; border: 1px solid #e2e7ee; border-radius: 12px; color: #4a5869; text-align: center; }
.userlist-no-results-panel .userlist-no-results-icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid #e2e7ee; display: flex; align-items: center; justify-content: center; color: #7a8a9b; font-size: 18px; }
.userlist-no-results-panel .userlist-no-results-msg { font-size: 14px; color: #4a5869; max-width: 480px; }
.userlist-no-results-panel .userlist-no-results-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 1px solid #3c9a40; border-radius: 20px; background: #fff; color: #2f7a33; font-weight: 600; transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
.userlist-no-results-panel .userlist-no-results-btn:hover, .userlist-no-results-panel .userlist-no-results-btn:focus { background: #4aaf4f; border-color: #3c9a40; color: #fff; box-shadow: 0 2px 6px rgba(60,154,64,0.25); }
/* Top toolbar (search + filters above table) */
.userlist-topbar { margin: 0 0 14px; padding: 14px 16px; border: 1px solid #e2e7ee; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 1px 2px rgba(46,78,112,0.04); }
.userlist-topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.userlist-topbar-search-form { flex: 1 1 260px; margin: 0; min-width: 240px; position: relative; }
.userlist-topbar-search-wrap { position: relative; }
.userlist-topbar-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7a8a9b; font-size: 13px; pointer-events: none; }
.userlist-topbar-search-input { width: 100%; height: 38px; padding: 6px 12px 6px 34px; border: 1px solid #d4dbe2; border-radius: 8px; background: #fff; font-size: 14px; color: #1f2d3d; box-shadow: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.userlist-topbar-search-input:focus { outline: none; border-color: #4a75c8; box-shadow: 0 0 0 3px rgba(74,117,200,0.15); }
.userlist-topbar-filter-wrap { position: relative; flex: 0 0 auto; }
.userlist-topbar-filter-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #4a5869; font-size: 12px; pointer-events: none; z-index: 1; }
.userlist-topbar-filter-select { height: 38px; padding: 6px 30px 6px 32px; border: 1px solid #d4dbe2; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: #1f2d3d; cursor: pointer; min-width: 180px; max-width: 260px; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%234a5869' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 9px 6px; }
.userlist-topbar-filter-select:focus { outline: none; border-color: #4a75c8; box-shadow: 0 0 0 3px rgba(74,117,200,0.15); }
.userlist-topbar-count { flex: 0 0 auto; margin-left: auto; padding: 6px 14px; border-radius: 999px; background: #f6f8fb; border: 1px solid #e2e7ee; color: #4a5869; font-size: 12px; font-weight: 600; }
.userlist-topbar-count .userlist-topbar-count-shown { color: #181A34; }
.userlist-topbar-quickfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.userlist-topbar-quickfilters-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #7a8a9b; margin-right: 4px; }
.userlist-quickfilter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid #d4dbe2; background: #fff; color: #1f2d3d; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.userlist-quickfilter i { font-size: 11px; color: #7a8a9b; }
.userlist-quickfilter:hover, .userlist-quickfilter:focus { background: #f6f8fb; border-color: #c1cad4; outline: none; }
.userlist-quickfilter.is-active { background: #181A34; border-color: #181A34; color: #fff; box-shadow: 0 2px 6px rgba(24,26,52,0.18); }
.userlist-quickfilter.is-active i { color: #fff; }
.userlist-topbar .userlist-tarkka-toggle { margin-top: 10px; }
.userlist-topbar .userlist-search-create-btn { height: 38px; padding: 6px 18px; border-radius: 999px; }
