/* AMARSVATI SMART ONE — Figma Administrasi / UL. Isolated to .ad-root & .ad-overlay. */
.ad-root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#173c48;min-width:0;width:100%;padding:0 0 35px}
.ad-root *, .ad-overlay *{box-sizing:border-box}
.ad-hero{background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%);border-radius:17px;padding:25px 27px;display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:125px}
/* Shared administration hero motifs match Absensi Warga; specialty headers keep their own existing dimensions and controls. */
.ad-root:not(.aw-root) .ad-hero{position:relative;isolation:isolate;overflow:hidden}
.ad-root:not(.aw-root):not(.ad-doc-module):not(.ad-notulen-page):not(.ad-dokumen-page) .ad-hero::before{content:'';position:absolute;width:265px;height:265px;right:-20px;top:-140px;border-radius:50%;background:#fff5;pointer-events:none;z-index:-1}
.ad-root:not(.aw-root):not(.ad-doc-module):not(.ad-notulen-page):not(.ad-dokumen-page) .ad-hero::after{content:'';position:absolute;width:145px;height:145px;right:170px;bottom:-110px;border:2px solid #fff8;border-radius:50%;pointer-events:none;z-index:-1}
.ad-eyebrow,.ad-dialog header small{font-weight:800;color:#1b7255;letter-spacing:.045em;font-size:11px;margin-bottom:8px}
.ad-hero h1{font-size:28px;line-height:1.2;color:#193f4e;margin:0 0 8px;font-weight:800}
.ad-hero p{color:#66848e;font-size:12px;margin:0;line-height:1.55}
.ad-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;max-width:48%}
.ad-btn{border:1px solid transparent;border-radius:10px;padding:12px 17px;font-size:12px;font-weight:750;min-height:40px;cursor:pointer;background:#fff;color:#176650;white-space:nowrap}
.ad-btn:focus-visible,.ad-tab:focus-visible{outline:3px solid #9ee1c5;outline-offset:2px}
.ad-btn-primary{background:#176b51;color:#fff}
.ad-btn-primary:hover:not(:disabled){background:#10553f}
.ad-btn-outline{background:#fff;color:#12654e;border-color:#cbe2da}
.ad-btn-light{background:#e4f3ed;color:#14694f}
.ad-btn:disabled{opacity:.5;cursor:not-allowed}
.ad-tabs{display:flex;gap:9px;align-items:center;overflow:auto;margin:14px 0 12px;padding-bottom:2px}
.ad-tab{padding:11px 20px;border-radius:9px;color:#3b6a6e;border:1px solid #d7e5e5;background:#fff;cursor:pointer;font-size:12px;font-weight:650;min-width:125px;white-space:nowrap}
.ad-tab.active{background:#146b50;border-color:#146b50;color:#fff}
.ad-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:13px 0 18px}
.ad-kpis-resident{grid-template-columns:repeat(3,minmax(0,1fr))}
.ad-kpis-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.ad-kpi{border:1px solid #e4eaea;border-radius:14px;min-height:111px;padding:17px 19px;display:flex;flex-direction:column;gap:6px;background:#fff}
.ad-kpi small{font-size:12px;font-weight:750;color:#266a66}
.ad-kpi strong{font-size:28px;line-height:1.2;color:#174957;font-weight:800}
.ad-kpi span{font-size:11px;color:#76918f}
.ad-kpi-navy{background:#184c62;border-color:#184c62}.ad-kpi-navy small,.ad-kpi-navy strong,.ad-kpi-navy span{color:#fff}
.ad-kpi-green{background:#e6f6ef}.ad-kpi-blue{background:#e9f2fb}.ad-kpi-teal{background:#e9f9f8}
.ad-kpi-slate{background:#edf3f9}.ad-kpi-purple{background:#f0effb}.ad-kpi-peach{background:#fff1e9}
.ad-kpi-white{background:#fff}
.ad-panel{background:#fff;border:1px solid #e4ebec;border-radius:14px;padding:22px 18px 17px;margin-top:13px;min-height:330px}
.ad-panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:16px}
.ad-panel h2{font-size:19px;color:#1c4652;margin:0 0 6px;font-weight:800}
.ad-panel-title p{margin:0;font-size:12px;color:#80949d}
.ad-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:12px 0 17px}
.ad-field{display:flex;flex:1 1 150px;min-width:140px;flex-direction:column;gap:8px;font-size:11px;font-weight:700;color:#526e7a}
.ad-field:first-child{flex-grow:2}
.ad-field input,.ad-field select,.ad-field textarea{font:inherit;font-size:12px;font-weight:450;color:#274c57;border-radius:8px;background:#fff;border:1px solid #d7e3e7;outline:0;padding:11px 12px;min-height:40px;min-width:0;width:100%}
.ad-field input:focus,.ad-field select:focus,.ad-field textarea:focus{border-color:#176b51;box-shadow:0 0 0 3px #b3e2ce80}
.ad-field input::placeholder{color:#9cabb0}
.ad-table-scroll{max-width:100%;overflow:auto;border-radius:9px}
.ad-table{border-collapse:collapse;width:100%;min-width:830px;font-size:11px;text-align:left;color:#304f60}
.ad-table thead th{background:#176b52;color:#fff;font-size:12px;letter-spacing:0;font-weight:700;padding:12px;white-space:nowrap;text-align:center}
.ad-table tbody td{padding:12px 13px;border-bottom:1px solid #e4ece9;font-size:12px;vertical-align:middle}.ad-table tbody tr:nth-child(even){background:#f7faf9}.ad-table tbody tr:hover{background:#edf6f1}.ad-table th:first-child,.ad-table td:first-child{min-width:45px;text-align:center}.ad-table th:last-child,.ad-table td.ad-row-actions{text-align:center}.ad-row-actions{white-space:nowrap;min-width:100px}.ad-row-actions .fin-action-icon{margin:0 4px;vertical-align:middle}
.ad-table-empty{height:190px;text-align:center;color:#8397a0;background:#fafcfc}
.ad-table-empty strong{display:block;color:#456872;margin:4px 0 0;font-size:13px}
.ad-table-empty p{font-size:11px;margin:7px 0}
.ad-empty-symbol{font-size:30px;color:#a6d8c5}
.ad-table-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;justify-content:space-between;background:#f5f9fa;margin-top:14px;padding:10px 15px;border-radius:9px;color:#6e8492;font-size:11px}
.ad-page-indicator{color:#176b52;font-weight:800}
.ad-overlay{position:fixed;inset:0;z-index:1500;background:rgba(10,26,31,.48);padding:20px;display:flex;align-items:center;justify-content:center}
.ad-dialog{background:#fff;border-radius:16px;box-shadow:0 24px 85px rgba(10,30,40,.25);width:min(920px,100%);max-height:calc(100vh - 35px);display:flex;flex-direction:column;overflow:hidden;color:#194150}
.ad-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #e4ecec}
.ad-dialog h2{margin:5px 0 6px;font-size:23px}
.ad-dialog p{margin:0;color:#778b96;font-size:12px}
.ad-dialog-close{width:33px;height:33px;border-radius:8px;border:0;background:#f1f5f5;color:#42656d;font-size:22px;cursor:pointer}
.ad-dialog-scroll{padding:22px 26px;overflow-y:auto}
.ad-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.ad-documents{margin-top:23px;padding:18px;border:1px solid #dce8e5;border-radius:12px;background:#fbfdfc}
.ad-documents h3{margin:0 0 5px;font-size:16px}
.ad-documents p{margin-bottom:12px}
.ad-upload{border:1px dashed #78bca7;border-radius:9px;background:#f0faf6;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 15px;font-size:12px;color:#136348;font-weight:750;cursor:pointer}
.ad-upload input{max-width:250px;font-size:11px}
.ad-family-docs{display:grid;gap:12px}.ad-kk-slot[hidden]{display:none!important}.ad-selected-file{margin-top:9px;color:#376f5e;font-size:12px}
.ad-alert{background:#fff5e7;color:#8d6324!important;border:1px solid #f3dfba;padding:11px;border-radius:9px;margin-top:18px!important}
.ad-dialog footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 26px;border-top:1px solid #e4ecec}
@media(max-width:1050px){.ad-kpis-resident{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-kpis,.ad-kpis-three{grid-template-columns:repeat(2,minmax(0,1fr))}.ad-hero{align-items:flex-start}.ad-hero-actions{max-width:60%}}
@media(max-width:600px){.ad-hero{padding:20px;display:block;min-height:0}.ad-hero h1{font-size:24px}.ad-hero-actions{max-width:100%;margin-top:17px;justify-content:flex-start}.ad-hero-actions .ad-btn{flex:1 1 130px}.ad-kpis-resident,.ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ad-kpi{padding:14px;min-height:95px}.ad-kpi strong{font-size:22px}.ad-kpi small{font-size:11px}.ad-panel{padding:15px 12px;min-height:280px}.ad-field{flex:1 1 100%}.ad-tabs{margin:11px 0}.ad-tab{min-width:110px;padding:10px 12px}.ad-form-grid{grid-template-columns:1fr}.ad-overlay{padding:9px}.ad-dialog header,.ad-dialog-scroll,.ad-dialog footer{padding:17px}.ad-panel h2{font-size:17px}}

/* Pending Review uses the lighter administrative table/header variant in Figma. */
.ad-page-pending .ad-hero{background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%);padding:22px 20px;min-height:110px}
.ad-page-pending .ad-panel{background:transparent;border:0;padding:5px 14px}
.ad-page-pending .ad-table-scroll{border:1px solid #d9e7e1}
.ad-page-pending .ad-table thead th{background:#176b52;color:#fff}
.ad-page-pending .ad-table-empty{background:#fff}
@media(max-width:600px){.ad-page-pending .ad-panel{padding:8px 0}}

/* DEV Administrasi mobile header/actions correction, 2026-11-19.
 * Desktop Figma stays unchanged: action buttons remain inside .ad-hero.
 */
.ad-mobile-actions{display:none}
.ad-hero-heading{min-width:0;flex:1}
@media (max-width:600px){
 .ad-root .ad-hero{margin-bottom:0}
 .ad-root .ad-hero .ad-desktop-actions{display:none!important}
 .ad-root .ad-mobile-actions{
  display:flex;
  position:relative;
  align-items:stretch;
  flex-wrap:wrap;
  gap:9px;
  margin:12px 0 13px;
  width:100%;
  max-width:100%;
 }
 .ad-root .ad-mobile-actions .ad-btn{
  flex:1 1 calc(50% - 6px);
  min-width:0;
  min-height:42px;
  white-space:normal;
  line-height:1.3;
  text-align:center;
 }
 .ad-root .ad-mobile-actions .ad-btn:only-child{flex-basis:100%}
 .ad-root .ad-mobile-actions + .ad-tabs{margin-top:0}
 .ad-root .ad-mobile-actions + .ad-kpis{margin-top:0}
 /* Absensi has an additional panel export in desktop Figma; on mobile,
    only the title action row should show its export button. */
 .ad-root .ad-panel-title [data-admin-action="export"]{display:none!important}
}

/* Google Sheets on-demand source sync — status only, never displays PII. */
.ad-root .ad-sync-progress{
 margin:12px 0 15px;
 padding:11px 14px;
 border:1px solid #acd8c3;
 background:#ecf9f1;
 border-radius:10px;
 color:#176348;
 font-size:12px;
 font-weight:650;
}

/* Share Form Pendataan — matches legacy shareForm workflow without old UI. */
.ad-share-form{display:flex;flex-direction:column;gap:14px;color:#244957}
.ad-share-heading strong{display:block;font-size:15px;color:#185943;margin-bottom:7px}
.ad-share-heading p{color:#6e858e;font-size:12px;line-height:1.6;margin:0}
.ad-share-field{display:flex;align-items:center;gap:9px;max-width:100%}
.ad-share-field input{flex:1;min-width:0;border:1px solid #d1e1df;padding:12px 13px;border-radius:9px;background:#f8faf9;color:#325862;font-size:12px}
.ad-share-field .ad-btn{flex-shrink:0}
.ad-share-note{font-size:11px!important;color:#71878f!important;line-height:1.6}
.ad-share-wa .ad-btn{display:block;width:100%;min-height:45px}
.ad-dialog-footer{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;padding-top:17px}
@media(max-width:600px){.ad-share-field{flex-wrap:wrap}.ad-share-field input,.ad-share-field .ad-btn{flex:1 1 100%}.ad-dialog-footer>.ad-btn{flex:1 1 auto}}

/* Legacy-style share drawer, deliberately scoped to share-form only. */
.ad-overlay-share{justify-content:flex-end;align-items:stretch;padding:0}
.ad-dialog-share{width:min(525px,100%);max-height:100vh;border-radius:18px 0 0 18px;margin:0}
.ad-dialog-share .ad-dialog-scroll{padding:24px;overflow:auto}
@media(max-width:600px){
 .ad-dialog-share{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .ad-dialog-share .ad-dialog-scroll{padding:20px}
}

/* Four Administrasi menus: compact public-document preview + copy link, desktop and mobile. */
.ad-doc-view{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:5px 12px;border-radius:8px;background:#e7f5ed;color:#17654b!important;font-size:12px;font-weight:800;text-decoration:none!important;white-space:nowrap}
.ad-doc-view:hover{background:#d2ebdc}
.ad-doc-link-cell{display:inline-flex;align-items:center;gap:7px;max-width:142px;white-space:nowrap}
.ad-doc-link-short{font-size:11px;color:#607780;min-width:0;overflow:hidden;text-overflow:ellipsis;max-width:85px}
.ad-copy-link{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;border:1px solid #b8d6ce;background:white;border-radius:8px;color:#17664b;font-size:19px;font-weight:800;cursor:pointer}
.ad-copy-link:hover{background:#e9f6f0}
.ad-copy-link:focus-visible,.ad-doc-view:focus-visible{outline:3px solid #328866;outline-offset:2px}
@media(max-width:600px){.ad-doc-link-cell{max-width:110px}.ad-doc-link-short{max-width:55px}}

/* Document visibility control — DEV, scoped to four Administrasi menus. */
.ad-access-control{margin:0 0 16px;padding:14px 15px;border:1px solid #b7d8ce;background:#f5faf8;border-radius:12px;display:flex;flex-direction:column;gap:8px}
.ad-access-control .ad-field{max-width:360px}
.ad-access-control .ad-field select{width:100%;min-height:41px}
.ad-access-control small{color:#58736d;font-size:11px;line-height:1.5}
.ad-access-status{display:inline-flex;align-items:center;padding:4px 9px;font-size:11px;font-weight:750;border-radius:50px;white-space:nowrap}
.ad-access-public{background:#e5f6ed;color:#11634a}
.ad-access-internal{background:#f1f0fb;color:#594e9a}
@media(max-width:600px){.ad-access-control .ad-field{max-width:100%}}


/* Notulen – Figma screenshot reference (desktop).
 * Only one canonical Notulen layout block; old Notulen CSS removed in place.
 * API actions and D1-calculated values are supplied by admin-figma-ui.js.
 */

.ad-notulen-page .ad-hero{
 position:relative;display:flex;align-items:center;justify-content:space-between;
 gap:24px;min-height:122px;padding:19px 20px;overflow:hidden;
 background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%);
 border:0;border-radius:17px;isolation:isolate;
}
.ad-notulen-page .ad-hero::before{
 content:'';position:absolute;right:-20px;top:-140px;width:265px;height:265px;
 background:#fff5;border-radius:50%;pointer-events:none;z-index:-1
}
.ad-notulen-page .ad-hero::after{
 content:'';position:absolute;right:170px;bottom:-110px;width:145px;height:145px;
 border:2px solid #fff8;border-radius:50%;pointer-events:none;z-index:-1
}
.ad-notulen-page .ad-hero-heading{min-width:0;flex:1 1 auto}
.ad-notulen-page .ad-hero .ad-eyebrow{
 color:#08714f;font-size:10px;font-weight:800;letter-spacing:0;margin:0 0 11px
}
.ad-notulen-page .ad-hero h1{
 color:#183e4e;font-size:25px;font-weight:800;line-height:1.2;margin:0 0 9px
}
.ad-notulen-page .ad-hero p{
 color:#667f89;font-size:11px;line-height:1.6;max-width:630px;margin:0
}
.ad-notulen-page .ad-hero-actions{
 display:flex;gap:9px;align-items:center;justify-content:flex-end;flex:0 0 auto;max-width:46%
}
.ad-notulen-page .ad-hero-actions .ad-btn-primary,
.ad-notulen-page .ad-mobile-actions .ad-btn-primary{
 background:#10694f;color:#fff;min-height:35px;padding:9px 26px;
 font-size:11px;font-weight:800;border-radius:8px;position:relative;z-index:1
}
.ad-notulen-page .ad-notulen-kpis{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
 margin:30px 4px 20px
}
.ad-notulen-page .ad-notulen-stat{
 position:relative;isolation:isolate;overflow:hidden;border:0;
 border-radius:16px;min-width:0;min-height:143px;padding:18px 18px 13px
}
.ad-notulen-page .ad-notulen-stat::before{
 content:'';position:absolute;right:-29px;top:-74px;width:130px;height:154px;
 background:rgba(255,255,255,.40);border-radius:50%;pointer-events:none;z-index:-1
}
.ad-notulen-page .ad-notulen-stat::after{
 content:'';position:absolute;right:-22px;bottom:-68px;width:113px;height:132px;
 border:1px solid currentColor;opacity:.15;border-radius:50%;pointer-events:none;z-index:-1
}
.ad-notulen-page .ad-notulen-stat-green{
 color:#146b56;background:linear-gradient(106deg,#ddf4e9 0%,#f2f9f6 71%,#c1e8d6 100%)
}
.ad-notulen-page .ad-notulen-stat-blue{
 color:#276e9e;background:linear-gradient(106deg,#e1eeff 0%,#f2f8ff 70%,#c9dff8 100%)
}
.ad-notulen-page .ad-notulen-stat-purple{
 color:#7956aa;background:linear-gradient(106deg,#eee5fa 0%,#f8f6fe 72%,#ddcef5 100%)
}
.ad-notulen-page .ad-notulen-stat-content{position:relative;z-index:1;display:flex;flex-direction:column;min-height:112px}
.ad-notulen-page .ad-notulen-stat h2{
 font-size:13px;line-height:1.2;font-weight:800;margin:0 0 11px;color:currentColor
}
.ad-notulen-page .ad-notulen-stat strong{
 font-size:36px;line-height:1;font-weight:800;color:currentColor;font-variant-numeric:tabular-nums
}
.ad-notulen-page .ad-notulen-stat p{
 color:#7895a1;font-size:10px;line-height:1.4;margin:7px 0 5px
}
.ad-notulen-page .ad-notulen-stat-bottom{
 display:flex;justify-content:space-between;gap:8px;align-items:center;
 margin-top:auto;padding-top:9px;border-top:1px solid rgba(44,100,105,.13);
 color:currentColor;font-size:10px;font-weight:500
}
.ad-notulen-page .ad-panel{margin-top:14px;border-radius:13px;padding:20px 18px 17px}
.ad-notulen-page .ad-panel-title h2{font-size:18px}
@media(max-width:900px){
 .ad-notulen-page .ad-notulen-kpis{gap:11px;margin-top:18px}
 .ad-notulen-page .ad-notulen-stat{padding:15px 14px;min-height:140px}
 .ad-notulen-page .ad-notulen-stat-bottom{flex-wrap:wrap}
}
@media(max-width:760px){
 .ad-notulen-page .ad-hero{display:block;padding:21px 18px;min-height:0}
 .ad-notulen-page .ad-hero h1{font-size:24px}
 .ad-notulen-page .ad-hero-actions{max-width:100%;margin-top:15px;justify-content:flex-start}
 .ad-notulen-page .ad-hero-actions .ad-btn{flex:1}
 .ad-notulen-page .ad-notulen-kpis{grid-template-columns:repeat(2,minmax(0,1fr));margin:15px 0;gap:10px}
 .ad-notulen-page .ad-notulen-stat{min-height:135px}
 .ad-notulen-page .ad-notulen-stat strong{font-size:31px}
 .ad-notulen-page .ad-panel{padding:15px 12px}
}
/* Notulen mobile: 3 summary cards arranged in 2 rows (2 + 1).
 * Last card spans the complete second row, including narrow phones.
 */
@media(max-width:760px){
 .ad-notulen-page .ad-notulen-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ad-notulen-page .ad-notulen-kpis > .ad-notulen-stat:last-child{grid-column:1 / -1}
}
@media(max-width:490px){
 .ad-notulen-page .ad-notulen-stat{min-height:130px;padding:13px 12px}
 .ad-notulen-page .ad-notulen-stat h2{font-size:12px;overflow-wrap:anywhere}
 .ad-notulen-page .ad-notulen-stat strong{font-size:28px}
}

/* Unified Figma-derived visual shell for SK RT, Agenda Surat, Dokumen.
 * Presentation only. Does not replace document CRUD, D1, R2, access controls.
 */

.ad-doc-module .ad-hero{position:relative;overflow:hidden;isolation:isolate;min-height:143px;border-radius:18px;padding:27px 26px;background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%)}
.ad-doc-module .ad-hero::before{content:'';position:absolute;right:-20px;top:-140px;width:265px;height:265px;background:#fff5;border:0;border-radius:50%;pointer-events:none;z-index:-1}
.ad-doc-module .ad-hero::after{content:'';position:absolute;right:170px;bottom:-110px;width:145px;height:145px;border:2px solid #fff8;border-radius:50%;pointer-events:none;z-index:-1}
.ad-doc-module .ad-hero h1{font-size:28px;line-height:1.2;color:#173b4b;font-weight:820;margin:6px 0 9px}
.ad-doc-module .ad-hero p{font-size:12px;line-height:1.65;color:#5c7981;max-width:650px}
.ad-doc-module .ad-hero .ad-eyebrow{font-size:10px;letter-spacing:.07em;color:#28795e}
.ad-doc-module .ad-hero-actions{flex-shrink:0}
.ad-doc-module .ad-kpis{gap:15px;margin:17px 0 20px;align-items:stretch}
.ad-doc-module .ad-kpi{min-height:118px;border-radius:14px;padding:17px 19px;box-shadow:0 3px 12px rgba(23,59,75,.025);justify-content:space-between}
.ad-doc-module .ad-kpi small{font-size:11px;line-height:1.35;letter-spacing:.025em}
.ad-doc-module .ad-kpi strong{font-size:28px;line-height:1.1;font-weight:850}
.ad-doc-module .ad-kpi span{font-size:10px;line-height:1.4}
.ad-doc-module .ad-panel{margin-top:15px;border-radius:15px;border-color:#e3eae7;padding:23px 20px 18px}
.ad-doc-module .ad-panel-title{margin-bottom:16px}
.ad-doc-module .ad-panel h2{font-size:18px}
.ad-doc-module .ad-filters{gap:12px}
.ad-doc-module .ad-btn-primary{background:#176650;color:#fff}
.ad-doc-module .ad-hero-actions .ad-btn{position:relative;z-index:1}
.ad-doc-module.ad-doc-agenda-surat .ad-hero{background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%)}
.ad-doc-module.ad-doc-agenda-surat .ad-eyebrow{color:#266f91}

@media(max-width:760px){
 .ad-doc-module{padding:7px 8px 20px}
 .ad-doc-module .ad-hero{padding:21px 18px;min-height:125px}
 .ad-doc-module .ad-hero h1{font-size:24px}
 .ad-doc-module .ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ad-doc-module .ad-kpi{padding:14px;min-height:102px}
 .ad-doc-module .ad-kpi strong{font-size:24px}
 .ad-doc-module .ad-panel{padding:16px 12px}
}

/* DOKUMEN – Figma UL / 07 • DOKUMEN RT (1011:1071 desktop, 1011:1154 mobile).
 * One isolated stylesheet, no legacy .ad-doc-module selector and no mobile action relocation.
 */

.ad-dokumen-page .ad-hero{
  min-height:147px;padding:24px 27px;border:0;border-radius:19px;
  background:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  position:relative;isolation:isolate;overflow:hidden;
}
.ad-dokumen-page .ad-hero::before{
  content:'';position:absolute;right:-20px;top:-140px;width:265px;height:265px;
  background:#fff5;border-radius:50%;z-index:-1;pointer-events:none;
}
.ad-dokumen-page .ad-hero::after{
  content:'';position:absolute;right:170px;bottom:-110px;width:145px;height:145px;
  border:2px solid #fff8;border-radius:50%;z-index:-1;pointer-events:none;
}
.ad-dokumen-page .ad-hero-heading{flex:1 1 auto;min-width:0}
.ad-dokumen-page .ad-eyebrow{font-size:11px;letter-spacing:0;font-weight:800;color:#59758b;margin:0 0 11px}
.ad-dokumen-page .ad-hero h1{font-size:30px;line-height:1.2;font-weight:800;color:#15344d;margin:0 0 7px}
.ad-dokumen-page .ad-hero p{font-size:13px;font-weight:400;line-height:1.6;color:#60758a;margin:0;max-width:750px}
.ad-dokumen-page .ad-hero .ad-hero-actions{
 display:flex;justify-content:flex-end;align-items:center;gap:10px;
 flex:0 0 auto;max-width:45%;position:relative;z-index:2
}
.ad-dokumen-page .ad-hero .ad-btn{
  border-radius:9px;min-height:42px;height:42px;padding:0 20px;
  display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;
}
.ad-dokumen-page .ad-hero .ad-btn-primary{background:#176650;color:white;min-width:183px}
.ad-dokumen-page .ad-hero .ad-btn-outline{background:white;color:#176650;min-width:125px;border:0}
.ad-dokumen-page .ad-panel{background:white;border:0;border-radius:16px;margin-top:20px;min-height:400px;padding:25px 20px}
.ad-dokumen-page .ad-panel-title{display:none}
.ad-dokumen-page .ad-filters{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;margin:0 0 27px}
.ad-dokumen-page .ad-filters .ad-field{flex:0 1 200px;max-width:200px}
.ad-dokumen-page .ad-filters .ad-field:first-child{flex:1 1 360px;max-width:640px}
.ad-dokumen-page .ad-field{font-size:11px;font-weight:800;color:#60758a}
.ad-dokumen-page .ad-field input,.ad-dokumen-page .ad-field select{
 min-height:44px;height:44px;border:0;background:#f7fafc;border-radius:10px;font-size:12px;color:#15344d
}
.ad-dokumen-page .ad-table{min-width:1030px}
.ad-dokumen-page .ad-table th{height:50px;background:#176650;color:#fff;font-weight:800;font-size:11px;padding:14px 12px}
.ad-dokumen-page .ad-table td{height:65px;padding:12px;color:#15344d;font-size:11px}
.ad-dokumen-page .ad-table tbody tr:nth-child(even){background:#f6f9fa}
.ad-dokumen-page .ad-table tbody tr:nth-child(odd){background:#fff}


.ad-dokumen-page .ad-doc-view{min-width:118px;height:38px;background:#e7f6ee;color:#176650;border-radius:9px;font-size:11px}
.ad-dokumen-page .ad-dokumen-mobile-cards,.ad-dokumen-page .ad-dokumen-mobile-empty{display:none}
@media(max-width:760px){
 .ad-root.ad-dokumen-page{padding:20px}
 .ad-dokumen-page .ad-hero{
   min-height:143px;padding:17px 16px 19px;border-radius:16px;display:flex;
   flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0
 }
 .ad-dokumen-page .ad-hero::before{right:-61px;top:-75px;width:145px;height:145px}
 .ad-dokumen-page .ad-hero::after{right:38px;bottom:-75px;width:90px;height:90px}
 .ad-dokumen-page .ad-eyebrow{font-size:11px;margin:0 0 15px}
 .ad-dokumen-page .ad-hero h1{font-size:25px;margin:0 0 7px}
 .ad-dokumen-page .ad-hero p{font-size:11px;max-width:100%;line-height:1.5;min-height:33px}
 
 
 .ad-dokumen-page .ad-panel{margin-top:18px;padding:19px 15px 20px;border-radius:16px}
 .ad-dokumen-page .ad-filters{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:24px}
 .ad-dokumen-page .ad-filters .ad-field,.ad-dokumen-page .ad-filters .ad-field:first-child{max-width:none;width:100%;min-width:0}
 .ad-dokumen-page .ad-table-scroll{display:none}
 .ad-dokumen-page .ad-dokumen-mobile-cards{display:grid;grid-template-columns:1fr;gap:20px}
 .ad-dokumen-page .ad-dokumen-mobile-empty{display:block;padding:20px;text-align:center;color:#60758a}
 .ad-dokumen-page .ad-dokumen-item{
   position:relative;isolation:isolate;overflow:hidden;min-height:235px;border-radius:18px;
   padding:14px;display:flex;flex-direction:column;align-items:stretch;gap:0;
 }
 .ad-dokumen-page .ad-dokumen-item::before{
   content:'';position:absolute;right:-40px;top:-68px;width:122px;height:122px;
   background:rgba(255,255,255,.38);border-radius:50%;z-index:-1;pointer-events:none
 }
 .ad-dokumen-page .ad-dokumen-item::after{
   content:'';position:absolute;right:-10px;bottom:-61px;width:98px;height:98px;
   border:1px solid rgba(23,102,80,.14);border-radius:50%;z-index:-1;pointer-events:none
 }
 .ad-dokumen-page .ad-dokumen-item-mint{background:linear-gradient(119deg,#e0f5ea 8.26%,#f8fcf8 52.89%,#cdebdc 90.91%)}
 .ad-dokumen-page .ad-dokumen-item-apricot{background:linear-gradient(119deg,#fff0d7 8.26%,#fffaf1 52.89%,#ffe3c8 90.91%)}
 .ad-dokumen-page .ad-dokumen-item-lavender{background:linear-gradient(119deg,#ede6fd 8.26%,#faf7ff 52.89%,#ded5f6 90.91%)}
 .ad-dokumen-page .ad-dokumen-item-rose{background:linear-gradient(119deg,#fbe7ef 8.26%,#fffafb 52.89%,#f6d7e4 90.91%)}
 .ad-dokumen-page .ad-dokumen-category{font-size:11px;font-weight:800;color:#176650;margin:0 0 12px}
 .ad-dokumen-page .ad-dokumen-item h3{font-size:15px;line-height:1.5;font-weight:800;color:#15344d;margin:0 0 18px;min-height:38px}
 .ad-dokumen-page .ad-dokumen-no,.ad-dokumen-page .ad-dokumen-date{font-size:11px;color:#60758a;margin:0 0 9px;line-height:1.4}
 .ad-dokumen-page .ad-dokumen-item-actions{display:flex;align-items:center;gap:9px;margin-top:auto}
 .ad-dokumen-page .ad-dokumen-edit,.ad-dokumen-page .ad-dokumen-view{
   display:flex;align-items:center;justify-content:center;height:41px;border-radius:9px;
   border:0;font-size:11px;font-weight:800;text-decoration:none;min-width:0;white-space:nowrap
 }
 .ad-dokumen-page .ad-dokumen-edit{flex:0 1 43%;background:#e7f6ee;color:#176650;cursor:pointer}
 .ad-dokumen-page .ad-dokumen-view{flex:1 1 auto;background:#176650;color:white}
 .ad-dokumen-page .ad-dokumen-view-disabled{background:#b5c6c0}
 .ad-dokumen-page .ad-table-footer{margin-top:22px}
}


/* ADMIN UI AUDIT 2026-11-24 (develop): canonical visual tokens across all administration pages.
   Scoped, presentation-only. No D1/R2/data access changes. */
.ad-root{
  --ad-brand:#176650;--ad-hero-bg:linear-gradient(166deg,#ffc98f 8%,#ffd8cb 51%,#ffe9c1 91%);
  --ad-radius:14px;--ad-space:16px;--ad-control-h:43px;
}
.ad-root.ad-doc-module,.ad-root.ad-notulen-page,.ad-root.ad-dokumen-page{
  background:transparent;padding:0 0 35px;border-radius:0;
}
.ad-root .ad-hero,.ad-root.ad-doc-module .ad-hero,
.ad-root.ad-notulen-page .ad-hero,.ad-root.ad-dokumen-page .ad-hero,
.ad-root.ad-page-pending .ad-hero,.ad-root.aw-root .aw-hero{
  min-height:143px;padding:25px 24px;border-radius:18px;
  background:var(--ad-hero-bg);
}
.ad-root .ad-hero h1,.ad-root.ad-doc-module .ad-hero h1,
.ad-root.ad-notulen-page .ad-hero h1,.ad-root.ad-dokumen-page .ad-hero h1,
.ad-root.aw-root .aw-hero h1{font-size:28px;line-height:1.2;margin:0 0 8px;font-weight:800;color:#173b4b}
.ad-root .ad-hero p,.ad-root.ad-doc-module .ad-hero p,
.ad-root.ad-notulen-page .ad-hero p,.ad-root.ad-dokumen-page .ad-hero p,
.ad-root.aw-root .aw-hero p{font-size:12px;line-height:1.55;color:#607b85;margin:0}
.ad-root .ad-hero .ad-eyebrow,.ad-root.ad-doc-module .ad-eyebrow,
.ad-root.ad-notulen-page .ad-hero .ad-eyebrow,.ad-root.ad-dokumen-page .ad-eyebrow{
  font-size:11px;line-height:1.3;letter-spacing:.045em;color:#28745b;margin:0 0 8px;
}
.ad-root .ad-btn,.ad-root.ad-doc-module .ad-btn,
.ad-root.ad-notulen-page .ad-hero-actions .ad-btn,
.ad-root.ad-notulen-page .ad-mobile-actions .ad-btn,
.ad-root.ad-dokumen-page .ad-hero .ad-btn{
  min-height:var(--ad-control-h);height:auto;padding:10px 15px;
  font-size:12px;font-weight:750;border-radius:9px;line-height:1.35;
}
.ad-root .ad-btn-primary,.ad-root.ad-notulen-page .ad-btn-primary{background:var(--ad-brand);color:white}
.ad-root .ad-kpi,.ad-root.ad-doc-module .ad-kpi,.ad-root.aw-root .aw-kpis .ad-kpi{
  min-height:111px;border-radius:14px;padding:17px 18px;
}
.ad-root .ad-kpi small,.ad-root.ad-doc-module .ad-kpi small,.ad-root.aw-root .aw-kpis .ad-kpi small{font-size:12px}
.ad-root .ad-kpi strong,.ad-root.ad-doc-module .ad-kpi strong,.ad-root.aw-root .aw-kpis .ad-kpi strong{font-size:28px}
.ad-root .ad-panel,.ad-root.ad-doc-module .ad-panel,.ad-root.ad-notulen-page .ad-panel,
.ad-root.ad-dokumen-page .ad-panel,.ad-root.aw-root .aw-panel{
  border:1px solid #e4ebec;border-radius:14px;padding:20px 18px;margin-top:15px;
}
.ad-root .ad-field input,.ad-root .ad-field select,.ad-root .ad-field textarea,
.ad-root.ad-dokumen-page .ad-field input,.ad-root.ad-dokumen-page .ad-field select,
.ad-root.aw-root .aw-filter-row input{min-height:43px;border:1px solid #d7e3e7;border-radius:9px;font-size:12px}
.ad-root .ad-table thead th,.ad-root.aw-root .ad-table thead th,
.ad-root.ad-page-pending .ad-table thead th,.ad-root.ad-dokumen-page .ad-table th{
  background:var(--ad-brand);color:white;padding:14px 12px;font-size:11px;font-weight:800;
}
.ad-root .ad-table tbody td,.ad-root.aw-root .ad-table tbody td,
.ad-root.ad-dokumen-page .ad-table td{padding:13px 12px;height:auto;min-height:55px;font-size:12px}
.ad-root .ad-table tbody tr:nth-child(even){background:#f6f9f8}
.ad-root .ad-table tbody tr:nth-child(odd){background:white}
.ad-root .ad-tab,.ad-root.aw-root .aw-tabs .ad-tab{
  min-height:40px;padding:10px 16px;border-radius:9px;font-size:12px;font-weight:700;
}
.ad-root .ad-tab.active,.ad-root.aw-root .aw-tabs .ad-tab.active{background:var(--ad-brand);color:#fff}
.ad-root .ad-table-footer{align-items:center;gap:12px;flex-wrap:wrap}
.ad-root .ad-page-control{border:1px solid #d7e3e7;border-radius:8px;min-height:36px;padding:7px 11px;background:#fff;color:#176650;cursor:pointer}
.ad-root .ad-page-control:disabled{opacity:.45;cursor:not-allowed}
.ad-root .ad-page-size{min-height:35px;border:1px solid #d7e3e7;border-radius:8px;background:white}
.ad-root .ad-icon-action{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:17px}
.ad-root .ad-icon-action svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 .ad-root.ad-doc-module,.ad-root.ad-notulen-page,.ad-root.ad-dokumen-page,
 .ad-root.ad-dokumen-page{padding:0 0 20px}
 .ad-root .ad-hero,.ad-root.ad-doc-module .ad-hero,
 .ad-root.ad-notulen-page .ad-hero,.ad-root.ad-dokumen-page .ad-hero,
 .ad-root.ad-page-pending .ad-hero,.ad-root.aw-root .aw-hero{
   min-height:125px;padding:20px 17px;border-radius:17px;display:block;
 }
 .ad-root .ad-hero h1,.ad-root.ad-doc-module .ad-hero h1,
 .ad-root.ad-notulen-page .ad-hero h1,.ad-root.ad-dokumen-page .ad-hero h1,
 .ad-root.aw-root .aw-hero h1{font-size:24px}
 .ad-root .ad-hero .ad-desktop-actions{display:none!important}
 .ad-root .ad-mobile-actions{display:flex!important;gap:9px;flex-wrap:wrap;margin:11px 0 15px}
 .ad-root .ad-mobile-actions .ad-btn{flex:1 1 calc(50% - 7px);min-width:0;white-space:normal}
 .ad-root .ad-kpi,.ad-root.ad-doc-module .ad-kpi,.ad-root.aw-root .aw-kpis .ad-kpi{min-height:96px;padding:13px}
 .ad-root .ad-kpi strong,.ad-root.ad-doc-module .ad-kpi strong,.ad-root.aw-root .aw-kpis .ad-kpi strong{font-size:22px}
 .ad-root .ad-panel,.ad-root.ad-doc-module .ad-panel,.ad-root.ad-notulen-page .ad-panel,
 .ad-root.ad-dokumen-page .ad-panel,.ad-root.aw-root .aw-panel{padding:16px 12px}
 .ad-root .ad-table-footer{justify-content:center;text-align:center}
}

/* Canonical responsive modal / action styles (administration only). */
.ad-overlay .ad-dialog header{align-items:center;gap:14px}
.ad-overlay .ad-dialog header > div{flex:1;min-width:0}
.ad-overlay .ad-dialog header h2{line-height:1.25;overflow-wrap:anywhere}
.ad-overlay .ad-dialog footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.ad-root .ad-table-footer button{min-height:36px;border:1px solid #d7e3e7;border-radius:9px;padding:7px 12px;background:#fff;color:#176650;font-size:12px;font-weight:700;cursor:pointer}
.ad-root .ad-table-footer button:disabled{opacity:.45;cursor:not-allowed}
.ad-root .ad-table-footer select{min-height:36px;border:1px solid #d7e3e7;border-radius:9px;padding:7px 10px;background:#fff;color:#173c48}
@media(max-width:760px){
 .ad-root.ad-dokumen-page .ad-mobile-actions .ad-btn,
 .ad-root.ad-notulen-page .ad-mobile-actions .ad-btn,
 .ad-root.ad-doc-module .ad-mobile-actions .ad-btn{min-width:0;max-width:100%;margin:0}
 .ad-root .ad-table-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
 .ad-overlay .ad-dialog footer{padding:14px 16px}
 .ad-overlay .ad-dialog footer > .ad-btn{flex:1 1 125px;white-space:normal}
}
