.st-page { padding: 24px 0 40px; }
.st-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.st-heading h1 { margin:0; color:#244c3b; font-size:1.65rem; }
.st-heading p { margin:6px 0 0; color:#68756e; }
.st-panel { background:#fff; border:1px solid #dce5df; border-radius:10px; box-shadow:0 3px 14px #183d2b0d; padding:18px; }
.st-toolbar { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.st-toolbar label { font-weight:600; }
.st-toolbar select { min-width:260px; max-width:100%; padding:9px 12px; border:1px solid #cbd7cf; border-radius:6px; background:#fff; }
.st-page .btn-primary,.st-page .btn-secondary,.st-page .btn-danger { border:0; border-radius:6px; padding:9px 14px; font-weight:600; cursor:pointer; }
.st-page .btn-primary { margin-left:auto; background:#26734d; color:white; }
.st-page .btn-secondary { background:#edf1ee; color:#26352d; }
.st-page .btn-danger { background:#b63838; color:white; }
.st-dialog .btn-primary,.st-dialog .btn-secondary,.st-dialog .btn-danger { display:inline-flex; align-items:center; justify-content:center; min-height:40px; border:0; border-radius:6px; padding:9px 16px; font:600 .92rem inherit; cursor:pointer; transition:background-color .15s ease, transform .15s ease; }
.st-dialog .btn-primary { background:#26734d; color:#fff; }
.st-dialog .btn-primary:hover { background:#1e5e3e; }
.st-dialog .btn-secondary { background:#edf1ee; color:#26352d; }
.st-dialog .btn-secondary:hover { background:#dfe7e1; }
.st-dialog .btn-danger { background:#b63838; color:#fff; }
.st-dialog .btn-danger:hover { background:#982d2d; }
.st-dialog .btn-primary:active,.st-dialog .btn-secondary:active,.st-dialog .btn-danger:active { transform:translateY(1px); }
.st-dialog .btn-primary:focus-visible,.st-dialog .btn-secondary:focus-visible,.st-dialog .btn-danger:focus-visible { outline:3px solid #83b69a; outline-offset:2px; }
.st-page button:disabled { opacity:.5; cursor:not-allowed; }
#st-message { min-height:0; margin:0; }
#st-message:not(:empty) { margin:0 0 12px; padding:10px 12px; border-radius:5px; }
#st-message.is-error { color:#8d2424; background:#fff0f0; }
#st-message.is-success { color:#1d613b; background:#edf8f0; }
.st-table-wrap { overflow:auto; max-height:calc(100vh - 330px); border:1px solid #e1e7e3; border-radius:6px; }
.st-grid { width:100%; border-collapse:collapse; font-size:.9rem; }
.st-grid th,.st-grid td { padding:9px 11px; border-bottom:1px solid #e7ece8; text-align:left; white-space:nowrap; max-width:340px; overflow:hidden; text-overflow:ellipsis; }
.st-grid th { position:sticky; top:0; z-index:1; background:#f2f6f3; color:#30463a; }
.st-grid tbody tr:hover { background:#f8fbf9; }
.st-actions { width:86px; }
.st-actions button { border:0; background:transparent; padding:6px 8px; color:#285c42; cursor:pointer; }
.st-actions .st-delete { color:#a52c2c; }
.st-pagination { display:flex; justify-content:space-between; align-items:center; padding-top:14px; color:#657168; }
.st-pagination button { margin-left:6px; border:1px solid #ccd8d0; background:#fff; border-radius:5px; padding:7px 11px; cursor:pointer; }
.st-modal[hidden] { display:none; }
.st-modal { position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; padding:18px; background:#15241dcc; }
.st-dialog { width:min(760px,100%); max-height:90vh; overflow:auto; padding:22px; border-radius:10px; background:#fff; box-shadow:0 18px 55px #0004; }
.st-modal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.st-modal-head h2,.st-confirm-dialog h2 { margin:0; color:#244c3b; font-size:1.25rem; }
.st-close { border:0; background:transparent; color:#58655d; font-size:1.8rem; cursor:pointer; }
.st-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.st-field { display:flex; flex-direction:column; gap:5px; min-width:0; color:#405348; font-weight:600; font-size:.88rem; }
.st-field input { width:100%; box-sizing:border-box; border:1px solid #cbd7cf; border-radius:5px; padding:9px; font:inherit; font-weight:400; }
.st-field input:focus,.st-toolbar select:focus { outline:2px solid #83b69a; outline-offset:1px; }
.st-modal-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:20px; }
.st-confirm-dialog { width:min(420px,100%); }
.st-confirm-dialog p { color:#58655d; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px) { .st-toolbar { align-items:stretch; flex-wrap:wrap; } .st-toolbar select { flex:1; min-width:180px; } .st-page .btn-primary { margin-left:0; } .st-fields { grid-template-columns:1fr; } .st-panel { padding:12px; } }
