.fv-policy-banner,.fv-card{background:#fff;border:1px solid #e5eaf1;border-radius:18px;padding:22px;margin-bottom:18px;box-shadow:0 8px 24px rgba(16,27,45,.035)}
.fv-policy-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f8fafc}
.fv-policy-banner div{display:grid;gap:6px}.fv-policy-banner b{font-size:15px;color:#17243a}.fv-policy-banner span{font-size:13px;color:#65748b;line-height:1.55}
.fv-policy-lock{white-space:nowrap;border:1px solid #d9e0ea;border-radius:999px;padding:8px 12px;font-size:10px!important;font-weight:800;letter-spacing:.06em;color:#536178!important}
.fv-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.fv-metric{display:grid;gap:7px;padding:17px;background:#fff;border:1px solid #e5eaf1;border-radius:15px}
.fv-metric span{font-size:12px;color:#68778d}.fv-metric b{font-size:26px;color:#17243a;line-height:1.1}.fv-metric small{font-size:11px;color:#8995a7}
.fv-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.fv-card-head h2{font-size:18px;margin:4px 0;color:#17243a}.fv-card-head p{font-size:12px;color:#748198;margin:0;line-height:1.5}
.fv-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:800;color:#7a879b}
.fv-filter-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,.5fr) auto;align-items:end;gap:12px;padding:14px;background:#f8fafc;border:1px solid #edf0f5;border-radius:14px;margin-bottom:18px}
.fv-filter-form label,.fv-review-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#536178}
.fv-event{border:1px solid #e5eaf1;border-radius:15px;padding:17px;margin:12px 0;background:#fff}
.fv-event-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.fv-event-head h3{font-size:16px;margin:6px 0 4px;color:#17243a}.fv-event-head p{font-size:12px;color:#68778d;margin:0;line-height:1.5}
.fv-order{display:inline-flex;border-radius:6px;padding:4px 7px;background:#edf2f7;color:#4f5f75;font-size:10px;font-weight:800;letter-spacing:.05em}
.fv-status{white-space:nowrap;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800;border:1px solid #dce3ec;color:#64738a;background:#f7f9fc}
.fv-status-validated{color:#21674e;background:#edf8f2;border-color:#d5eddf}.fv-status-rejected{color:#8a4242;background:#fff2f2;border-color:#f3dddd}
.fv-event-meta{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 8px}
.fv-event-meta span{font-size:11px;padding:6px 9px;border-radius:8px;background:#f4f6f9;color:#607087}
.fv-source-note,.fv-reviewed-by{font-size:11px;color:#8591a2;line-height:1.55;margin:8px 0}
.fv-review-form{margin-top:14px;padding:13px;background:#f8fafc;border:1px solid #edf0f5;border-radius:12px;display:grid;gap:10px}
.fv-review-actions{display:flex;gap:8px;flex-wrap:wrap}
.fv-review-form button:disabled{opacity:.45;cursor:not-allowed}
.fv-eligibility{font-size:11px;line-height:1.5}.fv-eligibility.ready{color:#2f765b}.fv-eligibility.blocked{color:#936b34}
.fv-period-note,.fv-rejected-note{margin-top:13px;padding:11px 13px;border-radius:10px;background:#f7f9fc;color:#5d6b80;font-size:12px;line-height:1.6}
.fv-readonly{margin:12px 0;padding:11px 13px;background:#f7f9fc;border-radius:10px;color:#68778d;font-size:12px;line-height:1.5}
.fv-footnote{font-size:11px;color:#7d899b;line-height:1.65;margin:15px 0 0}
.fv-alert{padding:12px 14px;border-radius:10px;background:#f0f5fb;color:#536a87;border:1px solid #dce6f2;margin-bottom:14px;font-size:13px}
.fv-alert-error{background:#fff5f4;color:#974c46;border-color:#f2d9d5}
.fv-empty{padding:28px 18px;text-align:center;border:1px dashed #d8e0ea;border-radius:13px;color:#78869a;font-size:13px;display:grid;gap:8px}
.fv-empty b{color:#4f5e74}.fv-empty span{font-size:12px;line-height:1.6}
@media(max-width:850px){.fv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-policy-banner{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.fv-card,.fv-policy-banner{padding:15px}.fv-filter-form{grid-template-columns:1fr}.fv-event-head{flex-direction:column}.fv-status{align-self:flex-start}.fv-metrics{gap:8px}.fv-metric{padding:13px}.fv-metric b{font-size:22px}.fv-review-actions .button{flex:1}}

/* Vermuk — violation history and bot activity tables */
.fv-history-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px;border-bottom:1px solid #e9eef4}
.fv-history-tabs button{appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 13px;color:#718096;font-size:12px;font-weight:800;cursor:pointer}
.fv-history-tabs button.active{border-bottom-color:#536f93;color:#25364d}
.fv-history-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.fv-history-filter{grid-template-columns:minmax(210px,1.6fr) repeat(3,minmax(135px,.8fr)) auto auto}
.fv-history-table-wrap{width:100%;overflow-x:auto;border:1px solid #e7ecf2;border-radius:12px;background:#fff}
.fv-history-table{width:100%;border-collapse:separate;border-spacing:0;min-width:960px}
.fv-history-table th{padding:11px 12px;background:#f7f9fc;color:#63738a;text-align:left;font-size:10px;font-weight:800;white-space:nowrap;border-bottom:1px solid #e8edf3}
.fv-history-table td{padding:12px;border-bottom:1px solid #edf1f5;color:#43536a;font-size:11px;vertical-align:top}
.fv-history-table tbody tr:last-child td{border-bottom:0}
.fv-history-table td small{display:block;margin-top:4px;color:#8a96a5;font-size:9px}
.fv-history-table td b{color:#28394f}
.fv-history-id{font-variant-numeric:tabular-nums;white-space:nowrap}
.fv-history-badge{display:inline-flex;align-items:center;border-radius:99px;padding:5px 8px;font-size:9px;font-weight:800;white-space:nowrap}
.fv-history-badge-active{background:#fff4df;color:#91600d}
.fv-history-badge-upcoming{background:#eaf3ff;color:#28619a}
.fv-history-badge-expired{background:#eef2f6;color:#59687b}
.fv-history-badge-no_period{background:#f4f6f8;color:#6d7d90}
.fv-history-badge-cancelled{background:#f1f3f6;color:#788497}
.fv-history-details{min-width:150px}
.fv-history-details summary{cursor:pointer;color:#315d8a;font-size:10px;font-weight:800}
.fv-history-details[open]{min-width:380px}
.fv-history-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:10px;margin:12px 0}
.fv-history-detail-grid>div{padding:9px 10px;background:#f8fafc;border:1px solid #edf1f5;border-radius:8px}
.fv-history-detail-grid small{display:block;margin:0 0 5px;color:#8290a1;font-size:9px}
.fv-history-detail-grid p{margin:0;color:#46566d;font-size:10px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.fv-history-detail-grid a{color:#28639b;font-weight:800;text-decoration:none}
.fv-history-details h4{margin:12px 0 7px;color:#394b63;font-size:11px}
.fv-history-muted{color:#8a96a5;font-size:10px}
.fv-history-activity-table{min-width:580px}
.fv-activity-intro{margin:0 0 12px;color:#758298;font-size:11px;line-height:1.55}
.fv-worker-compact{padding-top:14px;padding-bottom:14px}
.fv-worker-indicators{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.fv-worker-indicator{display:grid;gap:5px;padding:10px 12px;background:#f8fafc;border:1px solid #edf1f5;border-radius:9px}
.fv-worker-indicator small{color:#8491a2;font-size:9px}
.fv-worker-indicator b{font-size:11px;color:#58677c}
.fv-worker-indicator b.ready{color:#27714d}
.fv-worker-indicator b.blocked{color:#98641c}
@media(max-width:1000px){.fv-history-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-worker-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.fv-history-filter{grid-template-columns:1fr}.fv-history-detail-grid{grid-template-columns:1fr}.fv-worker-indicators{grid-template-columns:repeat(2,minmax(0,1fr))}.fv-history-tabs{gap:2px}.fv-history-tabs button{flex:1;padding:9px 7px;font-size:10px}}

.fv-history-assign-form{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px dashed #d8e1eb;border-radius:10px;background:#f8fafc}
.fv-history-assign-form>div:first-child{display:grid;gap:4px}
.fv-history-assign-form>div:first-child b{color:#40536c;font-size:10px}
.fv-history-assign-form p{margin:0;color:#7c899b;font-size:9px;line-height:1.55}
.fv-history-assign-grid{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:9px}
.fv-history-assign-grid label{display:grid;gap:5px;color:#63738a;font-size:10px}
.fv-history-assign-grid input{width:100%}
.fv-history-assign-form button{justify-self:start}
@media(max-width:600px){.fv-history-assign-grid{grid-template-columns:1fr}.fv-history-assign-form button{width:100%}}


/* Unified Pelanggaran Kurir · Vermuk event archive */
.fv-event-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.fv-event-filter{grid-template-columns:minmax(200px,1.5fr) repeat(3,minmax(140px,.8fr)) auto auto}
.fv-event-table{min-width:1040px}
.fv-event-table td{vertical-align:middle}
.fv-event-type{display:inline-flex;align-items:center;padding:5px 8px;border-radius:7px;background:#eef3f8;color:#425a76;font-size:9px;font-weight:800;white-space:nowrap}
.fv-event-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap}
.fv-event-badge.is-matched{background:#eaf6ef;color:#247248}
.fv-event-badge.is-unmatched{background:#fff2e5;color:#996016}
.fv-event-badge.is-incomplete{background:#fff5e7;color:#95620c}
.fv-event-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#718096;font-size:10px}
.fv-event-pagination>div{display:flex;gap:7px}
.fv-event-error{color:#9b3b35}
@media(max-width:1000px){.fv-event-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.fv-event-filter{grid-template-columns:1fr}.fv-event-pagination{align-items:flex-start;flex-direction:column}.fv-event-pagination>div{width:100%}.fv-event-pagination button{flex:1}.fv-event-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Floor Control settings — polished WhatsApp template editor */
#floorVermukSettingsApp{display:grid;gap:16px;min-width:0}
#floorVermukSettingsApp>.panel-card{margin-top:0;padding:22px;min-width:0}
#floorVermukSettingsApp>.panel-card>.section-head{align-items:flex-start;margin-bottom:14px}
#floorVermukSettingsApp>.panel-card>.section-head h2{font-size:16px;letter-spacing:-.2px}
#floorVermukSettingsApp>.panel-card>.section-head p{font-size:11px;line-height:1.6;max-width:760px}
#floorVermukSettingsApp>.panel-card>.muted-copy{font-size:11px;line-height:1.65;margin:4px 0 16px}
.fvm-template-card{margin:14px 0 0;padding:20px 21px;border-color:#e7ecf2;border-radius:13px;box-shadow:none;min-width:0}
.fvm-template-card .section-head{align-items:flex-start;margin-bottom:18px}
.fvm-template-card .section-head>div{min-width:0}
.fvm-template-card .section-head h2{font-size:15px;line-height:1.4;margin:0 0 4px}
.fvm-template-card .section-head p{font-size:11px;line-height:1.55;max-width:760px}
.fvm-template-card .section-head .subtle-tag{flex:0 0 auto;margin-top:1px}
.fvm-field{display:grid;width:100%;gap:8px;margin:0}
.fvm-field>span{font-size:11px;font-weight:700;color:#52637a}
.fvm-template-input{display:block;width:100%;height:auto;min-height:210px;max-height:560px;padding:14px 15px;border:1px solid #dfe6ee;border-radius:10px;background:#fbfcfe;color:#34465e;font:12px/1.7 'DM Sans',sans-serif;resize:vertical;outline:0;white-space:pre-wrap;overflow-wrap:anywhere;transition:border-color .16s,box-shadow .16s,background .16s}
.fvm-template-input:focus{border-color:#80a9e8;box-shadow:0 0 0 3px #3478f615;background:#fff}
.fvm-placeholder-note{margin:9px 0 14px;font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.fvm-placeholder-note code{display:inline-block;padding:2px 5px;border:1px solid #e6ebf1;border-radius:5px;background:#f6f8fb;color:#49627f;font-size:10px}
.fvm-preview{margin-top:2px}
.fvm-preview summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:11px 13px;border:1px solid #e3e9f0;border-radius:9px;background:#f8fafc;color:#40536b;font-size:11px;font-weight:700;transition:background .15s,border-color .15s}
.fvm-preview summary::-webkit-details-marker{display:none}
.fvm-preview summary:hover{background:#f2f6fb;border-color:#d5dfeb}
.fvm-preview summary small{margin-left:auto;color:#8a97a8;font-size:10px;font-weight:500;text-align:right}
.fvm-preview summary:after{content:"BUKA";flex:0 0 auto;color:#617c9b;font-size:9px;font-weight:800;letter-spacing:.06em}
.fvm-preview[open] summary{border-radius:9px 9px 0 0;background:#f4f7fb}
.fvm-preview[open] summary:after{content:"TUTUP"}
.fvm-preview-content{margin:0;padding:17px 18px;border:1px solid #e3e9f0;border-top:0;border-radius:0 0 9px 9px;background:#fff;color:#41536a;font:12px/1.8 'DM Sans',sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.fvm-template-card .cod-action-row{align-items:center;padding-top:13px;margin-top:14px;border-top:1px solid #edf1f5}
.fvm-template-card .cod-action-row .muted-copy{flex:1;min-width:190px;margin:0;font-size:10px}
.fvm-template-card .fvm-save-template{min-width:132px}
#fvmAddCategoryForm.fvm-category-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:12px;margin:16px 0}
#fvmAddCategoryForm label{display:grid;gap:7px;color:#53647a;font-size:11px;font-weight:700}
#fvmAddCategoryForm .input-control{width:100%;height:40px;font-size:11px}
#fvmAddCategoryForm button{min-height:40px}
#floorVermukSettingsApp .table-scroll{border:1px solid #e8edf3;border-radius:10px}
#floorVermukSettingsApp .history-table{min-width:560px}
#floorVermukSettingsApp .history-table th{padding:11px 12px}
#floorVermukSettingsApp .history-table td{padding:12px}
@media(max-width:760px){
  #floorVermukSettingsApp>.panel-card{padding:16px}
  .fvm-template-card{padding:16px}
  .fvm-template-card .section-head{gap:10px}
  .fvm-template-card .section-head .subtle-tag{font-size:8px;padding:7px}
  .fvm-template-input{min-height:190px;font-size:12px}
  .fvm-preview summary{align-items:flex-start;flex-wrap:wrap}
  .fvm-preview summary small{order:3;flex-basis:100%;margin:0;text-align:left}
  .fvm-preview-content{padding:13px;font-size:11px}
  .fvm-template-card .cod-action-row{align-items:stretch;flex-direction:column}
  .fvm-template-card .cod-action-row .muted-copy{min-width:0}
  .fvm-template-card .fvm-save-template{width:100%}
  #fvmAddCategoryForm.fvm-category-form{grid-template-columns:1fr}
  #fvmAddCategoryForm button{width:100%}
}
