:root{--navy:#061d34;--navy2:#0b4169;--red:#e30613;--ink:#102a40;--muted:#718394;--line:#e4ebf0;--bg:#f5f8fa;--white:#fff;--green:#18865b;--amber:#b7791f;--shadow:0 18px 50px rgba(7,39,64,.08)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{display:flex;min-height:100vh}.side{width:270px;background:linear-gradient(180deg,#061d34,#082b49);color:#fff;position:fixed;inset:0 auto 0 0;z-index:30;overflow:auto;padding:18px 14px}.brand{display:flex;align-items:center;gap:11px;padding:7px 9px 22px}.brand img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#fff}.brand b{font:800 16px Manrope;display:block}.brand small{display:block;color:#9fb7c9;font-size:8px;letter-spacing:1.6px;margin-top:3px}.nav-title{font-size:9px;color:#7f9bb0;letter-spacing:1.6px;font-weight:800;padding:17px 10px 7px}.nav-item{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:#cbdbe7;padding:11px 12px;border-radius:11px;text-align:left;font-size:12px;font-weight:600;margin:2px 0}.nav-item:hover{background:#ffffff0d;color:#fff}.nav-item.active{background:#ffffff15;color:#fff;box-shadow:inset 3px 0 var(--red)}.nav-icon{width:22px;text-align:center;font-size:15px}.badge{margin-left:auto;background:#fff;color:var(--red);min-width:22px;padding:3px 6px;border-radius:20px;font-size:9px;font-weight:800}.main{margin-left:270px;width:calc(100% - 270px);min-height:100vh}.top{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.crumb{font-size:10px;color:#94a3af}.top h1{font:800 20px Manrope;margin:3px 0}.profile{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.profile small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.content{padding:28px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:var(--red);font-weight:800}.page-head h2{font:800 31px Manrope;margin:5px 0}.page-head p{margin:0;color:var(--muted);font-size:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:11px 15px;border-radius:10px;font-weight:800;font-size:11px}.btn:hover{transform:translateY(-1px)}.btn.red{background:var(--red);color:#fff;border-color:var(--red)}.btn.dark{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.ghost{background:#f7f9fa}.btn.danger{color:#b42318}.btn.green{color:#08784d;background:#edf9f4;border-color:#cdeee0}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.stat,.panel,.module{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.stat{padding:20px}.stat small{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:1px}.stat strong{display:block;font:800 29px Manrope;margin:9px 0 4px}.stat span{font-size:10px;color:var(--green)}.panel{padding:20px}.panel h3{font:800 15px Manrope;margin:0 0 15px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.muted{color:var(--muted);font-size:11px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:650px}.table th{text-align:left;font-size:9px;color:#7b8d9b;letter-spacing:.8px;padding:11px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:13px 10px;border-bottom:1px solid #edf1f4;font-size:11px;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table td:first-child{font-weight:700}.status{display:inline-flex;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:800}.status.pending{background:#fff6e8;color:#a66a13}.status.active{background:#eaf8f2;color:#08784d}.status.rejected{background:#fff0f0;color:#b42318}.status.draft{background:#f0f3f5;color:#657785}.status.published{background:#eaf8f2;color:#08784d}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.search{flex:1;min-width:220px}.input,.select,.textarea{width:100%;border:1px solid #dce5eb;border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);outline:none}.input:focus,.select:focus,.textarea:focus{border-color:#7da8c5;box-shadow:0 0 0 3px #0b416911}.textarea{min-height:130px;resize:vertical}.field{margin-bottom:13px}.field label{display:block;font-size:9px;font-weight:800;color:#657785;margin-bottom:6px}.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.quick button{border:1px solid var(--line);background:#fff;border-radius:13px;text-align:left;padding:15px}.quick b{display:block;font-size:11px}.quick small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.empty{text-align:center;padding:40px;color:var(--muted);font-size:11px}.map{min-height:360px;border-radius:14px;background:radial-gradient(circle at 50% 35%,#dbeaf3,#eef5f8);display:grid;place-items:center;color:#557083;font-size:12px;text-align:center}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{padding:6px 9px;background:#f2f6f8;border-radius:20px;font-size:9px;font-weight:700}.bar-chart{display:flex;align-items:end;height:180px;gap:10px;padding-top:15px}.bar{flex:1;background:linear-gradient(180deg,#0b4169,#8db1c8);border-radius:7px 7px 2px 2px;min-height:8px;position:relative}.bar span{position:absolute;top:-17px;left:50%;transform:translateX(-50%);font-size:8px;color:#657785}.bar small{position:absolute;bottom:-17px;left:50%;transform:translateX(-50%);font-size:8px;color:#657785}.notice{padding:11px 13px;border-radius:10px;background:#eef7fb;color:#34566c;font-size:10px;margin-bottom:13px}.danger-note{background:#fff2f2;color:#a12828}.modal-backdrop{position:fixed;inset:0;background:#061d34aa;z-index:10000;display:grid;place-items:center;padding:20px}.modal{background:#fff;border-radius:18px;width:min(760px,100%);max-height:90vh;overflow:auto;box-shadow:0 35px 100px #0005}.modal-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h3{font:800 17px Manrope;margin:0}.close{border:0;background:#f1f4f6;width:32px;height:32px;border-radius:50%}.modal-body{padding:20px}.modal-foot{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.full{grid-column:1/-1}.toast{position:fixed;right:24px;bottom:24px;background:var(--navy);color:#fff;padding:13px 16px;border-radius:11px;box-shadow:0 20px 50px #0004;font-size:11px;z-index:200;opacity:0;transform:translateY(10px);transition:.2s}.toast.show{opacity:1;transform:none}.mobile-menu{display:none;border:0;background:#f2f5f7;border-radius:9px;width:38px;height:38px}.mobile-close{display:none}@media(max-width:1100px){.grid4{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:1fr 1fr}.quick{grid-template-columns:1fr 1fr}}@media(max-width:780px){.side{transform:translateX(-100%);transition:.25s}.side.open{transform:none}.main{margin-left:0;width:100%}.mobile-menu{display:block}.mobile-close{display:block;position:absolute;right:12px;top:15px}.top{padding:0 15px}.content{padding:18px}.page-head{display:block}.page-head .actions{margin-top:14px}.grid4,.grid3,.grid2,.form-grid,.quick{grid-template-columns:1fr}.profile>div:not(.avatar){display:none}}
.module-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 18px}.module-section{margin-top:22px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.section-title h3{margin:0;font-size:15px}.section-title span{font-size:11px;color:var(--muted)}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:0 6px 20px rgba(12,35,60,.04)}.module-icon{width:36px;height:36px;border-radius:10px;background:#f4f7fa;display:grid;place-items:center;color:#0b2c4a;font-weight:800;flex:0 0 36px}.module-main{min-width:0;flex:1}.module-top{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.module-top h4{font-size:12px;line-height:1.35;margin:0}.module-card p{font-size:11px;line-height:1.55;color:var(--muted);margin:8px 0 10px}.module-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800}.module-status.on{background:#eaf8ef;color:#177245}.module-status.off{background:#f2f4f6;color:#68727d}.switch{position:relative;width:34px;height:20px;display:inline-block;flex:0 0 34px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#cbd3da;border-radius:20px;cursor:pointer;transition:.2s}.switch span:before{content:"";position:absolute;width:14px;height:14px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.15)}.switch input:checked+span{background:#e30613}.switch input:checked+span:before{transform:translateX(14px)}
@media(max-width:1050px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-summary{grid-template-columns:1fr 1fr}.module-summary .stat:last-child{grid-column:1/-1}}
@media(max-width:700px){.module-grid,.module-summary{grid-template-columns:1fr}}

/* Panama module activation UI */
.module-nav-title{display:flex;align-items:center;justify-content:space-between}.module-nav-title span{font-size:9px;background:rgba(255,255,255,.12);padding:2px 6px;border-radius:999px}.active-module-list{max-height:330px;overflow:auto;padding-right:3px}.module-nav-item{font-size:10px!important;line-height:1.25!important;min-height:34px!important}.module-nav-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.module-help{margin:0 0 18px}.module-card.enabled{border-color:#d8e7dc}.module-card-top,.module-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.module-symbol{width:38px;height:38px;border-radius:11px;background:#f4f7fa;display:grid;place-items:center;color:#0b2c4a;font-weight:800}.module-card h4{font-size:12px;line-height:1.35;margin:11px 0 0}.module-card-bottom{margin-top:10px}.module-workspace{padding:26px 6px 10px}.workspace-icon{width:54px;height:54px;border-radius:16px;background:#f4f7fa;display:grid;place-items:center;font-size:24px;color:#0b2c4a;margin-bottom:14px}.module-workspace h3{margin:0 0 8px}.module-workspace p{max-width:720px;color:var(--muted);line-height:1.7;font-size:12px}.module-workspace .chips{margin-top:16px}
@media(max-width:1050px){.module-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.active-module-list{max-height:220px}}

.survey-note,.survey-error{margin:0 0 14px}.survey-error{background:#fff1f1;color:#a12828}.survey-stats{margin:0 0 14px}.survey-filter{width:auto;min-width:170px}.survey-table{min-width:900px}.survey-table td:last-child{white-space:nowrap}.survey-subline{display:block;max-width:430px;margin-top:5px;color:var(--muted);font-size:10px;white-space:normal}.survey-form .field>small{display:block;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5}.survey-actions{white-space:nowrap}@media(max-width:700px){.survey-filter{width:100%}.survey-table td:last-child{white-space:normal}}
.report-stats{margin:0 0 14px}.report-stats .stat span{line-height:1.5}.report-chart-panel{margin-top:14px}.report-bar-chart{min-height:180px}.report-error{background:#fff1f1;color:#a12828}.report-bar-chart .bar{transition:height .2s ease}

.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,#eaf3f8 0,#f5f8fa 45%,#eef3f6 100%)}.auth-card{width:min(470px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 30px 90px rgba(7,39,64,.14);padding:34px}.auth-logo{width:68px;height:68px;object-fit:cover;border-radius:50%;border:1px solid var(--line);display:block;margin-bottom:18px}.auth-card h1{font:800 28px Manrope;margin:8px 0}.auth-card>p{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 22px}.auth-btn{width:100%;padding:13px 16px}.auth-error{min-height:18px;color:#b42318;font-size:11px;margin-top:10px}.auth-note{margin-top:18px;padding:10px 12px;border-radius:10px;background:#f3f7f9;color:#657785;font-size:9px;line-height:1.55}@media(max-width:600px){.auth-card{padding:25px;border-radius:18px}}
.module-center-top{margin:10px 10px 14px!important;width:calc(100% - 20px);border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.045)!important;font-weight:800}
.module-center-top.active{background:rgba(255,255,255,.10)!important;border-color:rgba(239,31,47,.65)!important}

.legal-case-subline{display:block;margin-top:5px;color:var(--muted);font-size:9px;font-weight:500}.legal-stats{margin:0 0 16px}.legal-filter{width:auto;min-width:170px}.legal-case-form .field>small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:7px}.legal-existing-files{display:grid;gap:5px;margin-top:10px;padding:10px;border-radius:9px;background:#f5f8fa;font-size:10px}.legal-case-details{font-size:12px}.legal-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px;border-radius:12px;background:#f5f8fa}.legal-detail-grid small,.legal-detail-grid b{display:block}.legal-detail-grid small{margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:800}.legal-detail-grid b{font-size:11px;overflow-wrap:anywhere}.legal-case-details h4{margin:18px 0 6px}.legal-case-text,.legal-internal-note p{white-space:pre-wrap;line-height:1.65}.legal-internal-note{margin-top:14px;padding:12px;border:1px solid #f0dcae;border-radius:10px;background:#fffaf0}.legal-internal-note p{margin:6px 0 0}.legal-detail-files{display:grid;gap:9px;margin-top:16px}.legal-detail-files>div{display:flex;gap:7px;flex-wrap:wrap}.legal-file-link{font-size:10px}.legal-detail-source{margin-top:14px;color:var(--muted);font-size:10px}.legal-error{background:#fff1f1;color:#a12828}.legal-table{min-width:850px}.legal-table td:last-child{white-space:nowrap}@media(max-width:700px){.legal-detail-grid{grid-template-columns:1fr}.legal-filter{width:100%}}
.document-subline{display:block;margin-top:5px;color:var(--muted);font-size:9px}.document-arrow{padding:0 4px;color:var(--muted)}.document-stats{margin:0 0 16px}.document-filter{width:auto;min-width:170px}.document-signature-note{margin:0 0 14px}.document-form .field>small{display:block;margin-top:7px;color:var(--muted);font-size:10px;line-height:1.5}.document-existing-files{display:grid;gap:5px;margin-top:10px;padding:10px;border-radius:9px;background:#f5f8fa;font-size:10px}.document-error{background:#fff1f1;color:#a12828}.document-table{min-width:980px}.document-table td:last-child{white-space:nowrap}.document-details{font-size:12px}.document-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px;border-radius:12px;background:#f5f8fa}.document-detail-grid small,.document-detail-grid b{display:block}.document-detail-grid small{margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:800}.document-detail-grid b{font-size:11px;overflow-wrap:anywhere}.document-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:11px;border:1px dashed #cbd9e2;border-radius:10px}.document-code small{color:var(--muted);font-size:9px;font-weight:800}.document-code b{font-family:monospace;font-size:12px}.document-details h4{margin:18px 0 6px}.document-description{white-space:pre-wrap;line-height:1.65}.document-files{display:grid;gap:9px;margin-top:16px}.document-files>div{display:flex;gap:7px;flex-wrap:wrap}.document-file{font-size:10px}.document-note{margin-top:15px;padding:10px;border-radius:9px;background:#fff8e8;color:#795819;font-size:10px;line-height:1.5}@media(max-width:700px){.document-filter{width:100%}.document-detail-grid{grid-template-columns:1fr}}

#panama-branch-map{height:430px;min-height:360px;border-radius:14px;background:#edf4f7;overflow:hidden}.panama-map-panel{padding:14px}.branch-map-status{font-size:10px;color:var(--muted);padding:9px 2px 0}.branch-map-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:10px;font-size:9px;color:var(--muted)}.branch-map-legend span{display:inline-flex;align-items:center;gap:5px}.branch-map-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.branch-map-legend .published-dot{background:#e30613}.branch-map-legend .draft-dot{background:#e9a23b}.branch-map-legend small{flex-basis:100%}.panama-branch-count-marker{background:transparent;border:0}.panama-branch-count-marker.draft span{background:#d58b23}.panama-branch-count-marker span{width:30px;height:30px;border:2px solid #fff;border-radius:50%;background:#e30613;box-shadow:0 2px 8px #061d3455;color:#fff;display:grid;place-items:center;font:800 12px Inter,Arial,sans-serif}.branch-map-popup{min-width:160px;max-width:260px}.branch-map-popup>strong{display:block;margin-bottom:7px;color:#061d34}.branch-map-popup-row{padding:6px 0;border-top:1px solid #e4ebf0}.branch-map-popup-row b,.branch-map-popup-row span{display:block}.branch-map-popup-row b{font-size:11px}.branch-map-popup-row span{margin-top:3px;font-size:10px;color:#657785}.leaflet-container{font:12px Inter,Arial,sans-serif}@media(max-width:900px){#panama-branch-map{height:360px;min-height:320px}}@media(max-width:620px){#panama-branch-map{height:320px;min-height:280px}}
.content-editor-form .field>small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:7px}.content-cover-controls{display:flex;gap:8px;align-items:center}.content-cover-controls .input{flex:1}.content-cover-preview{margin-top:10px;border:1px solid var(--line);border-radius:12px;overflow:hidden;max-width:500px;max-height:250px;background:#f5f8fa}.content-cover-preview[hidden]{display:none}.content-cover-preview img{display:block;width:100%;max-height:250px;object-fit:cover}.rich-editor-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;background:#f7f9fa}.rich-editor-toolbar .btn{padding:8px 10px;font-size:10px}.rich-editor-toolbar .select{width:auto;min-width:105px;padding:8px}.color-control{display:inline-flex!important;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:6px 8px!important;background:#fff}.color-control input{width:27px;height:24px;padding:0;border:0;background:transparent}.rich-content-editor{min-height:280px;max-height:460px;overflow:auto;padding:15px;border:1px solid var(--line);border-radius:0 0 10px 10px;outline:0;background:#fff;color:var(--ink);font-size:16px;line-height:1.7}.rich-content-editor:focus{border-color:#7da8c5;box-shadow:0 0 0 3px #0b416911}.rich-content-editor:empty:before{content:attr(data-placeholder);color:#9aa9b4}.rich-content-editor h2,.rich-content-editor h3,.rich-content-editor h4{line-height:1.35;margin:16px 0 8px}.rich-content-editor p{margin:0 0 12px}.rich-content-editor img{display:block;max-width:100%;height:auto;margin:12px 0;border-radius:8px}.rich-content-editor blockquote{margin:12px 0;padding:8px 14px;border-left:3px solid var(--red);background:#f5f8fa}.modal:has(.content-editor-form){width:min(980px,100%)}@media(max-width:700px){.content-cover-controls{align-items:stretch;flex-direction:column}.content-cover-controls .btn{width:100%}.rich-editor-toolbar .select{min-width:90px}.rich-content-editor{min-height:220px}}

/* SMS & notification templates */
.message-provider-note { margin: 0 0 14px; }
.message-error { margin: 0 0 14px; border-color: #efb0a9; color: #a52a2a; }
.message-channel-grid { margin-bottom: 14px; }
.message-channel-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.message-channel-row:last-child { border-bottom:0; }
.message-channel-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.message-channel-actions .btn { padding:8px 11px; font-size:10px; }
.message-channel-row b, .message-channel-row small { display:block; }
.message-channel-row b { font-size:12px; }
.message-channel-row small, .message-token-panel small { margin-top:5px; color:var(--muted); font-size:11px; }
.message-token-panel p { color:var(--muted); font-size:12px; }
.message-template-panel { margin-top:14px; }
.message-filter { max-width:190px; }
.message-table { min-width:1050px; }
.message-body-cell { max-width:360px; white-space:normal; }
.message-actions { white-space:nowrap; }
.message-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.message-editor { min-height:150px; }
.message-token { border:0; cursor:pointer; }
.message-preview-meta { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.message-preview { padding:18px; border:1px solid var(--line); border-radius:12px; background:#f7fafc; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.message-preview-note { margin-top:14px; }
@media (max-width:760px) {
  .message-form-grid { grid-template-columns:1fr; }
  .message-filter { max-width:none; }
  .message-actions { white-space:normal; }
}

/* Digital membership workspace */
.digital-membership-note,.digital-membership-error { margin:0 0 14px; }
.digital-membership-error { background:#fff1f1; color:#a12828; }
.digital-membership-stats { margin-bottom:14px; }
.digital-membership-stats .stat span { line-height:1.45; }
.digital-membership-grid { align-items:stretch; }
.digital-membership-table { min-width:640px; }
.digital-membership-callout { margin-top:18px; padding:14px; border-radius:12px; background:#f5f8fa; color:var(--ink); font-size:11px; line-height:1.6; }
.digital-membership-callout ol { margin:8px 0 0; padding-left:20px; color:var(--muted); }
.digital-membership-callout li+li { margin-top:5px; }
@media(max-width:700px) { .digital-membership-table { min-width:540px; } }

.role-module-option .module-permission-off{display:block;color:var(--muted);font-size:8px;margin-top:2px}

/* Firebase-backed operational workspaces for catalog modules */
.module-provider-note,.module-record-error,.module-record-security{margin:0 0 14px;line-height:1.55}
.module-record-error{background:#fff1f1;color:#a12828;border-color:#f3c4c4}
.module-record-stats{margin-bottom:14px}
.module-record-status{max-width:210px}
.module-record-table{min-width:980px}
.module-record-table td:first-child{min-width:210px;white-space:normal}
.module-record-table td:first-child small{display:block;margin-top:4px;color:var(--muted);line-height:1.45;max-width:360px}
.module-record-actions{white-space:nowrap}
.module-record-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.module-record-form .field{min-width:0}
.module-record-form .field.full{grid-column:1/-1}
.module-record-form .module-record-privacy{margin:0}
@media(max-width:760px){.module-record-form{grid-template-columns:1fr}.module-record-form .field.full{grid-column:auto}.module-record-status{max-width:none}.module-record-table{min-width:820px}}
.module-workflow-guide{line-height:1.55}.module-flow-board{margin:0 0 14px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.module-flow-board .panel-head{margin-bottom:12px}.module-flow-board .panel-head h3{margin:0}.module-flow-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.module-flow-step{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f8fafb}.module-flow-step span{font-size:10px;color:var(--muted);overflow-wrap:anywhere}.module-flow-step b{font:800 15px Manrope;color:var(--navy);white-space:nowrap}

/* Mobile navigation, touch targets and scrollable dialogs */
.side-backdrop{display:none}
@media(max-width:780px){
  .side{width:min(290px,88vw);padding:calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom))}
  .side-backdrop{display:none;position:fixed;inset:0;z-index:25;width:100%;height:100%;padding:0;border:0;background:rgba(2,17,31,.58);touch-action:none}
  .app.menu-open .side-backdrop{display:block}
  body.panama-menu-open{overflow:hidden}
  .top{height:auto;min-height:66px;gap:10px;padding:8px 13px}
  .top h1{max-width:62vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(15px,4vw,19px)}
  .crumb{display:none}
  .mobile-menu{width:44px;height:44px;flex:0 0 44px;font-size:20px}
  .profile .avatar{width:34px;height:34px;flex:0 0 34px}
  .content{padding:16px 13px calc(20px + env(safe-area-inset-bottom))}
  .page-head{align-items:flex-start}
  .page-head h2{font-size:clamp(25px,7vw,31px);line-height:1.15}
  .page-head .actions .btn{min-height:42px}
  .panel{padding:15px}
  .toolbar .search{min-width:100%}
  .table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .modal-backdrop{padding:12px}
  .modal{display:flex;flex-direction:column;width:100%;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
  .modal-head{flex:0 0 auto}
  .modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .modal-foot{position:sticky;bottom:0;flex:0 0 auto;background:#fff;padding-bottom:calc(15px + env(safe-area-inset-bottom))}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .full{grid-column:auto}
  .toast{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));text-align:center}
}
@media(max-width:420px){
  .content{padding-right:11px;padding-left:11px}
  .panel{padding:13px}
  .page-head .actions{display:grid;grid-template-columns:1fr 1fr}
  .page-head .actions .btn{padding-right:9px;padding-left:9px}
  .modal-head,.modal-body{padding-right:15px;padding-left:15px}
  .modal-foot{padding-right:15px;padding-left:15px}
}
.contact-inbox-panel{margin-bottom:16px}
.contact-inbox-panel .panel-head{align-items:center;gap:12px}
.contact-inbox-panel .message-actions{min-width:220px}
.contact-message-body{max-width:520px;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
@media(max-width:780px){.contact-inbox-panel .message-actions{min-width:0}}

/* Kurumsal yönetim ekibi editörü */
.leadership-admin-panel{margin-top:16px}
.leadership-admin-panel .panel-head{align-items:center;gap:14px;flex-wrap:wrap}
.leadership-admin-panel .panel-head h3{margin:0 0 4px}
.leadership-admin-table{min-width:660px}
.leadership-admin-thumb{display:block;width:48px;height:56px;object-fit:cover;border-radius:8px;background:#edf3f6}
.leadership-admin-actions{white-space:nowrap}
.leadership-photo-preview{display:grid;place-items:center;min-height:110px;max-width:180px;margin-top:8px;padding:8px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:10px;text-align:center}
.leadership-photo-preview img{display:block;width:100%;max-height:170px;object-fit:cover;border-radius:7px}
.leadership-form .field small{display:block;margin-top:6px;color:var(--muted);font-size:10px}
.leadership-error{margin:14px 0 0;background:#fff1f1;color:#9c2424;overflow-wrap:anywhere}

/* RBAC permission matrix */
.role-permission-table{min-width:820px;border-collapse:separate;border-spacing:0}.role-permission-table th,.role-permission-table td{padding:9px 10px;vertical-align:middle}.role-permission-table th:not(:first-child),.role-perm-cell{text-align:center}.role-permission-table th{white-space:nowrap}.role-perm-module{display:flex;align-items:center;gap:8px;min-width:245px}.role-perm-cell input{width:17px;height:17px;accent-color:#b91c1c;cursor:pointer}.role-permission-table tr:hover{background:rgba(148,163,184,.07)}.role-permission-table td:first-child{font-weight:600}
.eimza-token-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}.eimza-token-tools .btn{padding:6px 9px;font-size:11px}.eimza-token-tools .muted{font-size:11px;margin-right:2px}
