/* NABD Department workspaces v4. Additive stylesheet; the media module is unchanged. */
.dept-wrap{max-width:1150px;margin:auto}.dept-summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;background:#113449;border:1px solid #365366;border-radius:17px;padding:16px;margin:18px 0;color:#d5e6eb}.dept-summary b{font-size:22px;color:#5ce1cd}.dept-toolbar,.dept-filters,.dept-buttons,.dept-dialog-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}.dept-action,.dept-buttons button,.dept-filter,.dept-dialog-head button{border:1px solid #395669;border-radius:12px;padding:12px 15px;background:#15394d;color:#e7f5f5;cursor:pointer;font:inherit;font-weight:700}.dept-action,.dept-buttons .strong{background:#54ddc7;color:#083041;border-color:#54ddc7}.dept-action:disabled{opacity:.5;cursor:not-allowed}.dept-buttons .danger{border-color:#77515b;color:#f0a9b7}.dept-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}.dept-module{display:flex;align-items:center;gap:12px;min-height:76px;text-align:inherit;border:1px solid #365569;border-radius:17px;background:#123248;color:#e4f4f6;padding:16px;font:inherit;font-weight:700;cursor:pointer}.dept-module-icon{font-size:26px;color:#5ee1ca}.dept-module.active,.dept-filter.active{border-color:#59ddca;background:#164b57}.dept-record{border:1px solid #325366;border-radius:21px;background:#102f43;padding:22px;margin:14px 0;overflow-wrap:anywhere}.dept-record h3{font-size:clamp(19px,3vw,27px);margin:18px 0 10px}.dept-record p,.dept-record small{color:#b1c6d2;line-height:1.7}.dept-record-top{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between}.dept-chip{border:1px solid #39606d;border-radius:100px;color:#9eeedc;padding:7px 12px;font-size:13px}.dept-chip.waiting{color:#f3d9a1;border-color:#8f7249}.dept-chip.ok{color:#96eed5}.dept-record details{border-top:1px solid #355264;margin:16px 0;padding-top:12px}.dept-record summary{cursor:pointer;color:#63dec9}.dept-wrap-text{white-space:pre-wrap}.dept-review-note{border-radius:14px;padding:12px;background:#193b4e;border:1px solid #56717e}.dept-empty{border:1px dashed #456074;border-radius:20px;padding:40px 15px;text-align:center;color:#aabfcd}.dept-privacy,.dept-notice{color:#b6c9d4;padding:12px;line-height:1.7}.dept-error,.dept-form-error{color:#ffb5be}.dept-filters input{max-width:380px;min-width:200px;flex:1}.dept-dialog{background:#103046;color:#f4f9fa;border:1px solid #4b7081;border-radius:22px;padding:22px;width:min(630px,94vw);max-height:90vh;overflow:auto}.dept-dialog::backdrop{background:rgba(2,15,23,.8)}.dept-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dept-dialog form{display:grid;gap:14px;margin-top:18px}.dept-dialog label{display:grid;gap:8px;font-weight:700}.dept-dialog textarea{min-height:84px;resize:vertical}.dept-dialog input,.dept-dialog textarea,.dept-dialog select{background:#071f2e;color:#f3fcff;border:1px solid #476879;border-radius:13px;padding:12px}.dept-record a{color:#6ae6d3}.dept-form-error:empty{display:none}@media(max-width:520px){.dept-module-grid{grid-template-columns:1fr 1fr}.dept-module{font-size:13px;padding:11px;min-height:72px}.dept-record{padding:16px}.dept-dialog{padding:17px}.dept-buttons button{flex-grow:1}}

.dept-action.secondary{background:#133548;color:#dbf1f4;border-color:#3b6170}

/* V5: Each module opens a clearly named workspace (and continues to filter its own records). */
.dept-wrap .page-head h1{color:#fff}.dept-module-grid{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}
.dept-module{min-height:102px;position:relative;background:linear-gradient(150deg,#153e50,#0e2a3e);border-color:#456b7d8a;border-radius:19px;gap:14px;transition:background .16s,transform .16s,border-color .16s}
.dept-module:hover{transform:translateY(-2px);background:#174a58;border-color:#e7c67a75}.dept-module.active{background:linear-gradient(140deg,#204653,#153b48);border:1px solid #e7c67a;box-shadow:inset 0 0 0 1px #e7c67a25,0 14px 30px #0004}
.dept-module-icon{display:grid;place-items:center;flex-shrink:0;background:#e8c46e1a;color:#f4d18c;width:44px;height:44px;border-radius:14px;font-size:22px}.dept-module-copy{display:grid;gap:7px;text-align:start}.dept-module-copy strong{font-size:13px;color:#f3fcff}.dept-module-copy small{font-size:11px;color:#bdd4dc;font-weight:500}
.dept-selected-banner{display:flex;align-items:center;gap:15px;background:linear-gradient(110deg,#16434b,#0d2c42);border:1px solid #e8c47565;border-radius:20px;padding:22px;margin:15px 0 19px}
.dept-current-icon{background:#f0ce8030;color:#f4da9c;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;font-size:28px;flex-shrink:0}
.dept-selected-copy{flex:1;min-width:0}.dept-selected-copy>span{display:block;color:#e9c879;font-size:10px;letter-spacing:.12em;font-weight:900}.dept-selected-copy h2{font-size:20px;margin:5px 0;color:#fff}.dept-selected-copy p{color:#c1d8df;margin:0;line-height:1.6;font-size:12px}
.dept-current-count{color:#e4f3f5;background:#ffffff0a;padding:10px 12px;border-radius:11px;white-space:nowrap;font-size:12px}.dept-current-count b{font-size:19px;color:#f1d08b}
.dept-action{border-radius:14px;font-weight:850}.dept-dialog{border-color:#e3c48063}.dept-record{background:linear-gradient(140deg,#102f43,#0c2938)}
@media(max-width:520px){.dept-module-grid{grid-template-columns:1fr 1fr;gap:10px}.dept-module{min-height:102px;padding:12px;align-items:start;flex-direction:column}.dept-module-icon{width:34px;height:34px;border-radius:10px;font-size:18px}.dept-module-copy strong{font-size:12px}.dept-selected-banner{padding:15px;gap:11px;flex-wrap:wrap}.dept-current-icon{width:42px;height:42px;font-size:21px}.dept-current-count{margin-inline-start:auto}.dept-selected-copy{flex-basis:calc(100% - 60px)}.dept-selected-copy h2{font-size:17px}}
