/**
 * Portal Styles
 * Document Processing Center v1.0.0
 * Beaumont-Cherry Valley Water District
 */

/* Reset and Base Styles */
.dpc-portal-login body,
.dpc-portal-dashboard body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* Login Page Styles */
.dpc-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dpc-login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}


.dpc-login-logo {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    margin: 0 auto 18px auto;
}

@media (max-width: 480px) {
    .dpc-login-box {
        margin: 20px;
        padding: 30px 24px;
    }

    .dpc-login-logo {
        width: 96px;
        height: 96px;
        margin-bottom: 16px;
    }
}

.dpc-login-box h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.dpc-login-box h2 {
    margin: 0 0 30px 0;
    font-size: 16px;
    color: #666;
    text-align: center;
    font-weight: normal;
}

.dpc-form-group {
    margin-bottom: 20px;
}

.dpc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.dpc-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.dpc-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.dpc-form-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.dpc-form-message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    display: block;
}

.dpc-form-message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
    display: block;
}

.dpc-btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.dpc-btn-primary:hover {
    background: #5568d3;
}

.dpc-btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

.dpc-login-footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.dpc-login-footer small {
    font-size: 12px;
    color: #999;
}

/* Dashboard Styles */
.dpc-dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dpc-header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dpc-header h1 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.dpc-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dpc-user-name {
    color: #666;
    font-size: 14px;
}

.dpc-btn-secondary {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.dpc-btn-secondary:hover {
    background: #e0e0e0;
}

.dpc-main-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.dpc-main-content h2 {
    margin: 0 0 30px 0;
    font-size: 24px;
    color: #333;
}

.dpc-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dpc-module-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dpc-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dpc-module-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dpc-module-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.dpc-module-card p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.dpc-module-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dpc-access-badge,
.dpc-pending-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.dpc-access-badge {
    background: #e0e7ff;
    color: #4338ca;
}

.dpc-pending-badge {
    background: #fef3c7;
    color: #d97706;
}

.dpc-open-module {
    width: 100%;
}

.dpc-footer {
    background: white;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.dpc-footer p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dpc-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dpc-main-content {
        padding: 20px;
    }
    
    .dpc-module-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard module card alignment fix: keep buttons aligned without changing module logic */
.dpc-module-grid {
    align-items: stretch;
}

.dpc-module-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.dpc-module-card p {
    flex: 1 1 auto;
}

.dpc-module-meta {
    min-height: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.dpc-module-card .dpc-btn-primary {
    margin-top: auto;
    display: block !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Hazard Assessment map quick link */
.dpc-hazard-map-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.dpc-hazard-map-link:hover {
    text-decoration: underline;
}

/* Work Request searchable inventory picker */
.wr-inv-picker{align-items:flex-start;gap:8px;flex-wrap:wrap;}
.wr-inv-picker .wr-inv-search-wrap{min-width:280px;flex:1 1 320px;}
.wr-inv-picker .invsearch{width:100%;}
.wr-inv-picker .invresults{margin-top:6px;max-height:220px;overflow:auto;border:1px solid #d8e2ef;border-radius:8px;background:#fff;padding:6px;}
.wr-inv-picker .invresults.muted{border-color:transparent;background:transparent;padding:2px 0;}
.wr-inv-result{display:block;width:100%;text-align:left;margin:3px 0;padding:8px 10px;border:1px solid #d7e6f7;background:#f8fbff;border-radius:8px;cursor:pointer;}
.wr-inv-result:hover{background:#eef6ff;border-color:#9ec8f3;}
.wr-inv-picker .invloc{min-width:260px;flex:1 1 260px;}
.wr-inv-picker .invqty{width:95px;}
.wr-inv-picker .stocknote{min-width:180px;font-size:12px;color:#4b5563;}

/* ========================================================================== 
   DPC Shared Visual System v7.17.06
   Shared, forward-compatible presentation layer for all portal modules.
   ========================================================================== */
:root {
    --dpc-blue-900: #063f6b;
    --dpc-blue-800: #07558a;
    --dpc-blue-700: #0069ad;
    --dpc-blue-600: #0879c9;
    --dpc-blue-100: #e8f3fb;
    --dpc-green-700: #087a3e;
    --dpc-green-100: #e8f7ee;
    --dpc-amber-700: #9b5b00;
    --dpc-amber-100: #fff5df;
    --dpc-red-700: #a92424;
    --dpc-red-100: #fff0f0;
    --dpc-ink: #172333;
    --dpc-muted: #607083;
    --dpc-line: #d9e3ed;
    --dpc-surface: #ffffff;
    --dpc-canvas: #f3f7fb;
    --dpc-radius-sm: 7px;
    --dpc-radius: 12px;
    --dpc-radius-lg: 18px;
    --dpc-shadow-sm: 0 2px 8px rgba(18, 55, 86, .08);
    --dpc-shadow: 0 12px 34px rgba(18, 55, 86, .12);
    --dpc-focus: 0 0 0 3px rgba(8, 121, 201, .20);
}

html { background: var(--dpc-canvas); }
body[class*="dpc-portal"], body[data-dpc-live-root] {
    margin: 0;
    background: var(--dpc-canvas) !important;
    color: var(--dpc-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Login */
.dpc-login-container {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    padding: 32px 18px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 92%, rgba(8,121,201,.12) 0 16%, transparent 17%),
        radial-gradient(circle at 88% 8%, rgba(0,105,173,.11) 0 18%, transparent 19%),
        linear-gradient(145deg, #eef7ff 0%, #f8fbfe 52%, #eaf4fc 100%);
}
.dpc-login-box {
    max-width: 430px;
    padding: 42px 42px 34px;
    border: 1px solid rgba(164, 190, 212, .65);
    border-radius: var(--dpc-radius-lg);
    box-shadow: var(--dpc-shadow);
}
.dpc-login-logo { width: 126px; height: 126px; margin-bottom: 12px; }
.dpc-login-kicker {
    margin-bottom: 15px;
    color: var(--dpc-blue-800);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: center;
    text-transform: uppercase;
}
.dpc-login-box h1 { color: var(--dpc-ink); font-size: 27px; letter-spacing: -.02em; }
.dpc-login-box h2 { margin-bottom: 30px; color: var(--dpc-muted); font-size: 15px; }
.dpc-form-group label { margin-bottom: 7px; color: #26384a; font-size: 13px; font-weight: 700; }
.dpc-form-group input,
.dpc-form-group select,
.dpc-form-group textarea {
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #c9d7e5;
    border-radius: 9px;
    background: #fff;
    color: var(--dpc-ink);
    transition: border-color .18s, box-shadow .18s;
}
.dpc-form-group input:focus,
.dpc-form-group select:focus,
.dpc-form-group textarea:focus {
    border-color: var(--dpc-blue-600);
    box-shadow: var(--dpc-focus);
}
.dpc-login-box .dpc-btn-primary {
    min-height: 46px;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--dpc-blue-600), var(--dpc-blue-800));
    box-shadow: 0 6px 14px rgba(0, 105, 173, .22);
}
.dpc-login-box .dpc-btn-primary:hover { background: linear-gradient(180deg, #1288da, var(--dpc-blue-700)); }
.dpc-login-footer { padding-top: 22px; border-top: 1px solid #e4ebf2; }

/* Shared top navigation */
.dpc-header {
    min-height: 72px;
    padding: 10px clamp(18px, 4vw, 46px);
    border-bottom: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(100deg, var(--dpc-blue-900), var(--dpc-blue-700));
    box-shadow: 0 5px 18px rgba(3, 53, 90, .20);
    color: #fff;
}
.dpc-header-left { display: flex; align-items: center; gap: 13px; }
.dpc-header-logo { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,.08)); }
.dpc-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.dpc-brand-copy strong { color: #fff; font-size: 23px; letter-spacing: .03em; }
.dpc-brand-copy span { margin-top: 5px; color: rgba(255,255,255,.82); font-size: 12px; }
.dpc-header-right { gap: 16px; }
.dpc-user-block { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.dpc-user-name { color: #fff; font-weight: 700; }
.dpc-user-role { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 11px; }
.dpc-header .dpc-btn-secondary {
    border-color: rgba(255,255,255,.35);
    background: rgba(255,255,255,.10);
    color: #fff;
}
.dpc-header .dpc-btn-secondary:hover { background: rgba(255,255,255,.20); }

/* Dashboard */
.dpc-main-content { max-width: 1380px; padding: 34px clamp(18px, 4vw, 48px) 48px; }
.dpc-dashboard-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}
.dpc-dashboard-title-row h2 { margin: 3px 0 5px; color: var(--dpc-ink); font-size: 31px; letter-spacing: -.03em; }
.dpc-dashboard-title-row p { margin: 0; color: var(--dpc-muted); }
.dpc-eyebrow { color: var(--dpc-blue-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dpc-dashboard-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid #cfe8d8;
    border-radius: 10px;
    background: var(--dpc-green-100);
    color: #17653a;
    font-size: 12px;
    font-weight: 700;
}
.dpc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #17a65a; box-shadow: 0 0 0 4px rgba(23,166,90,.10); }
.dpc-module-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 17px; }
.dpc-module-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--dpc-line);
    border-radius: var(--dpc-radius);
    box-shadow: var(--dpc-shadow-sm);
    overflow: hidden;
}
.dpc-module-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--dpc-blue-600), var(--dpc-blue-800));
    opacity: 0;
    transition: opacity .18s;
}
.dpc-module-card:hover { transform: translateY(-3px); border-color: #b9d6eb; box-shadow: var(--dpc-shadow); }
.dpc-module-card:hover::before { opacity: 1; }
.dpc-module-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--dpc-blue-100);
    font-size: 25px;
}
.dpc-module-card h3 { color: var(--dpc-ink); font-size: 17px; }
.dpc-module-card p { color: var(--dpc-muted); }
.dpc-access-badge { background: var(--dpc-blue-100); color: var(--dpc-blue-800); }
.dpc-pending-badge { background: var(--dpc-amber-100); color: var(--dpc-amber-700); }
.dpc-module-card .dpc-btn-primary {
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 8px;
    background: var(--dpc-blue-700);
    font-size: 14px;
    text-decoration: none;
}
.dpc-footer { border-top-color: var(--dpc-line); background: #edf3f8; color: var(--dpc-muted); }

/* Shared module surfaces. Deliberately additive so module business logic remains untouched. */
body[data-dpc-live-root] > .dpc-container,
body[data-dpc-live-root] > .container,
body[data-dpc-live-root] > main,
body[data-dpc-live-root] > .wrap,
.dpc-portal-module .dpc-container,
.dpc-portal-module .container {
    width: min(1500px, calc(100% - 28px));
    margin: 18px auto 36px;
}
.dpc-container,
.container {
    color: var(--dpc-ink);
}
.dpc-container > header,
.container > header,
.dpc-module-header,
.portal-header {
    border-radius: var(--dpc-radius);
    background: linear-gradient(100deg, var(--dpc-blue-900), var(--dpc-blue-700)) !important;
    color: #fff !important;
    box-shadow: var(--dpc-shadow-sm);
}
.dpc-container > header h1,
.dpc-container > header h2,
.container > header h1,
.container > header h2,
.dpc-module-header h1,
.portal-header h1 { color: #fff !important; letter-spacing: -.02em; }

/* Tabs */
.dpc-tabs,
.tabs,
.tab-nav,
.dpc-tab-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--dpc-line);
    background: transparent;
}
.dpc-tab,
.tabs .tab,
.tab-nav a,
.dpc-tab-nav a,
.dpc-request-subtabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #516275;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
}
.dpc-tab:hover,
.tabs .tab:hover,
.tab-nav a:hover,
.dpc-tab-nav a:hover,
.dpc-request-subtabs button:hover { color: var(--dpc-blue-700); background: rgba(8,121,201,.05); }
.dpc-tab.active,
.tabs .tab.active,
.tab-nav a.active,
.dpc-tab-nav a.active,
.dpc-request-subtabs button.active {
    border-bottom-color: var(--dpc-blue-700);
    background: rgba(8,121,201,.06);
    color: var(--dpc-blue-800);
}

/* Cards, sections and tables */
.dpc-card,
.card,
.section,
.dpc-section,
.dpc-panel,
.panel,
.dpc-box,
.dpc-tab-content,
.dpc-empty-state {
    border-color: var(--dpc-line) !important;
    border-radius: var(--dpc-radius) !important;
    box-shadow: var(--dpc-shadow-sm);
}
.dpc-table-wrap { border: 1px solid var(--dpc-line); border-radius: var(--dpc-radius); overflow: auto; background: #fff; }
table.dpc-data-table,
table.dpc-hazard-table,
table.dpc-backflow-table,
.dpc-container table,
.container table {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
.dpc-container table thead th,
.container table thead th,
table.dpc-data-table thead th,
table.dpc-hazard-table thead th,
table.dpc-backflow-table thead th {
    border-bottom: 1px solid var(--dpc-line) !important;
    background: #eef4f9 !important;
    color: #294054 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.dpc-container table tbody td,
.container table tbody td { border-bottom-color: #e8eef4 !important; }
.dpc-container table tbody tr:hover,
.container table tbody tr:hover { background: #f7fbfe; }

/* Buttons */
.dpc-btn,
.btn,
button.dpc-btn-primary,
a.dpc-btn-primary,
button.dpc-btn-secondary,
a.dpc-btn-secondary,
input[type="submit"] {
    border-radius: 8px !important;
    font-weight: 700;
    transition: transform .12s, box-shadow .12s, background .12s;
}
.dpc-btn:hover,
.btn:hover,
button.dpc-btn-primary:hover,
a.dpc-btn-primary:hover,
button.dpc-btn-secondary:hover,
a.dpc-btn-secondary:hover { transform: translateY(-1px); }
.dpc-btn-primary,
.dpc-btn.dpc-btn-primary,
.btn.blue,
.btn.primary { background: var(--dpc-blue-700) !important; color: #fff !important; }
.dpc-btn-secondary,
.dpc-btn.dpc-btn-secondary,
.btn.gray,
.btn.lightbtn { border-color: #c9d6e2 !important; background: #fff !important; color: #32475a !important; }
.btn.green,
.dpc-btn-success { background: var(--dpc-green-700) !important; color: #fff !important; }
.btn.red,
.dpc-btn-danger { background: var(--dpc-red-700) !important; color: #fff !important; }

/* Forms */
.dpc-container input[type="text"], .dpc-container input[type="email"], .dpc-container input[type="password"],
.dpc-container input[type="number"], .dpc-container input[type="date"], .dpc-container input[type="time"],
.dpc-container input[type="search"], .dpc-container select, .dpc-container textarea,
.container input[type="text"], .container input[type="email"], .container input[type="password"],
.container input[type="number"], .container input[type="date"], .container input[type="time"],
.container input[type="search"], .container select, .container textarea {
    border: 1px solid #c9d7e5;
    border-radius: 8px;
    background: #fff;
    color: var(--dpc-ink);
}
.dpc-container input:focus, .dpc-container select:focus, .dpc-container textarea:focus,
.container input:focus, .container select:focus, .container textarea:focus {
    outline: none;
    border-color: var(--dpc-blue-600);
    box-shadow: var(--dpc-focus);
}

/* Status and alert consistency */
.badge,
.dpc-badge,
.status-badge,
.dpc-status-badge { border-radius: 999px !important; font-weight: 700; }
.notice, .alert, .dpc-alert, .dpc-message, .dpc-form-message { border-radius: 9px !important; }

/* Real-time status is intentionally not displayed as a floating badge. */

@media (max-width: 780px) {
    .dpc-login-box { padding: 32px 24px 28px; }
    .dpc-header { align-items: stretch; }
    .dpc-header-left { justify-content: center; }
    .dpc-header-right { width: 100%; justify-content: space-between; }
    .dpc-user-block { align-items: flex-start; }
    .dpc-dashboard-title-row { flex-direction: column; }
    .dpc-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-dpc-live-root] > .dpc-container,
    body[data-dpc-live-root] > .container { width: calc(100% - 16px); margin-top: 8px; }
}
@media (max-width: 520px) {
    .dpc-module-grid { grid-template-columns: 1fr; }
    .dpc-brand-copy span { display: none; }
    .dpc-header-logo { width: 48px; height: 48px; }
    .dpc-brand-copy strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* v7.17.06 visual consistency pass
 * These selectors only normalize presentation. They do not alter routing,
 * authentication, refresh behavior, form submission, or workflow logic.
 */

/* Consistent module banner and navigation placement */
.dpc-module-header,
.portal-header,
.dpc-container > header,
.container > header {
    min-height: 76px;
    padding: 18px 22px !important;
    gap: 16px;
    align-items: center;
}
.dpc-module-header > div:first-child,
.portal-header > div:first-child,
.dpc-container > header > div:first-child,
.container > header > div:first-child {
    min-width: 0;
}
.dpc-module-header h1,
.portal-header h1,
.dpc-container > header h1,
.container > header h1 {
    margin: 0;
    font-size: clamp(21px, 2.2vw, 28px) !important;
    line-height: 1.2;
}
.dpc-module-header p,
.portal-header p,
.dpc-container > header p,
.container > header p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.82) !important;
}

/* One recognizable Back to Dashboard treatment across legacy module markup */
a[href*="/dpc-portal/dashboard/"] .dashicons,
a[href*="/dpc-portal/dashboard/"] svg { pointer-events: none; }
.dpc-module-header a[href*="/dpc-portal/dashboard/"],
.portal-header a[href*="/dpc-portal/dashboard/"],
.dpc-container > header a[href*="/dpc-portal/dashboard/"],
.container > header a[href*="/dpc-portal/dashboard/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px !important;
    border: 1px solid rgba(255,255,255,.38) !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.11) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none !important;
    white-space: nowrap;
}
.dpc-module-header a[href*="/dpc-portal/dashboard/"]:hover,
.portal-header a[href*="/dpc-portal/dashboard/"]:hover,
.dpc-container > header a[href*="/dpc-portal/dashboard/"]:hover,
.container > header a[href*="/dpc-portal/dashboard/"]:hover {
    background: rgba(255,255,255,.21) !important;
    transform: translateY(-1px);
}

/* Common tab/content framing */
.dpc-tabs,
.tabs,
.tab-nav,
.dpc-tab-nav,
.dpc-request-subtabs {
    margin-top: 14px;
    padding: 0 8px;
    border: 1px solid var(--dpc-line);
    border-radius: 10px 10px 0 0;
    background: #fff;
}
.dpc-tab-content,
.tab-content,
.dpc-content-panel,
.dpc-main-panel {
    border: 1px solid var(--dpc-line);
    border-top: 0;
    border-radius: 0 0 var(--dpc-radius) var(--dpc-radius) !important;
    background: #fff;
}

/* Operational colors are semantic and intentionally override generic blue. */
.dpc-btn-service-start,
.dpc-btn.dpc-btn-service-start,
button.dpc-btn-service-start {
    background: var(--dpc-green-700) !important;
    border-color: var(--dpc-green-700) !important;
    color: #fff !important;
}
.dpc-btn-service-start:hover,
.dpc-btn.dpc-btn-service-start:hover,
button.dpc-btn-service-start:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}
.dpc-btn-service-end,
.dpc-btn.dpc-btn-service-end,
button.dpc-btn-service-end {
    background: #931414 !important;
    border-color: #931414 !important;
    color: #fff !important;
}
.dpc-btn-service-end:hover,
.dpc-btn.dpc-btn-service-end:hover,
button.dpc-btn-service-end:hover {
    background: #7a1010 !important;
    border-color: #7a1010 !important;
}
.dpc-btn-field-dispatch,
.dpc-btn.dpc-btn-field-dispatch,
button.dpc-btn-field-dispatch {
    background: #17212b !important;
    border-color: #17212b !important;
    color: #fff !important;
}
.dpc-btn-field-dispatch:hover,
.dpc-btn.dpc-btn-field-dispatch:hover,
button.dpc-btn-field-dispatch:hover {
    background: #080d12 !important;
    border-color: #080d12 !important;
}

@media (max-width: 780px) {
    .dpc-module-header,
    .portal-header,
    .dpc-container > header,
    .container > header {
        align-items: stretch;
        flex-direction: column;
    }
    .dpc-module-header a[href*="/dpc-portal/dashboard/"],
    .portal-header a[href*="/dpc-portal/dashboard/"],
    .dpc-container > header a[href*="/dpc-portal/dashboard/"],
    .container > header a[href*="/dpc-portal/dashboard/"] {
        width: 100%;
    }
}


/* v7.17.11 dashboard-matched module banner typography.
 * Visual only: aligns module banner type with the main dashboard header.
 */
.dpc-module-header,
.portal-header,
.dpc-container > header,
.container > header,
.dpc-backflow-header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}
.dpc-module-header h1,
.portal-header h1,
.dpc-container > header h1,
.container > header h1,
.dpc-backflow-header h1 {
    font-family: inherit !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: .01em !important;
}
.dpc-module-header p,
.portal-header p,
.dpc-container > header p,
.container > header p,
.dpc-backflow-header p {
    font-family: inherit !important;
    margin-top: 5px !important;
    color: rgba(255,255,255,.82) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
}
.dpc-module-header .dpc-header-actions,
.portal-header .dpc-header-actions,
.dpc-container > header .dpc-header-actions,
.container > header .dpc-header-actions,
.dpc-backflow-header .dpc-backflow-actions {
    font-family: inherit !important;
}
.dpc-module-header .dpc-header-actions > span,
.portal-header .dpc-header-actions > span,
.dpc-container > header .dpc-header-actions > span,
.container > header .dpc-header-actions > span,
.dpc-backflow-header .dpc-backflow-actions > span {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.dpc-module-header a[href*="/dpc-portal/dashboard/"],
.portal-header a[href*="/dpc-portal/dashboard/"],
.dpc-container > header a[href*="/dpc-portal/dashboard/"],
.container > header a[href*="/dpc-portal/dashboard/"],
.dpc-backflow-header a[href*="/dpc-portal/dashboard/"] {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}


/* v7.17.11 exact dashboard-header standard for every module. */
.dpc-module-app-header {
    width: 100vw !important;
    max-width: none !important;
    min-height: 72px !important;
    margin: 0 0 22px calc(50% - 50vw) !important;
    padding: 10px clamp(18px, 4vw, 46px) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 0 !important;
    background: linear-gradient(100deg, var(--dpc-blue-900), var(--dpc-blue-700)) !important;
    box-shadow: 0 5px 18px rgba(3, 53, 90, .20) !important;
    color: #fff !important;
    box-sizing: border-box !important;
}
.dpc-module-app-header .dpc-brand-copy strong { color:#fff !important; font:700 23px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important; letter-spacing:.03em !important; }
.dpc-module-app-header .dpc-brand-copy span { color:rgba(255,255,255,.82) !important; font:400 12px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important; }
.dpc-module-app-header .dpc-header-right { display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:12px !important; }
.dpc-module-app-header .dpc-dashboard-back-btn { min-height:36px !important; padding:8px 16px !important; display:inline-flex !important; align-items:center !important; justify-content:center !important; white-space:nowrap !important; text-decoration:none !important; font:700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important; }
.dpc-module-app-header .dpc-manager-tools { margin:0 !important; }
@media (max-width: 780px) {
    .dpc-module-app-header { flex-direction:column !important; align-items:stretch !important; }
    .dpc-module-app-header .dpc-header-left { justify-content:flex-start !important; }
    .dpc-module-app-header .dpc-header-right { width:100% !important; justify-content:flex-start !important; flex-wrap:wrap !important; }
    .dpc-module-app-header .dpc-user-block { margin-right:auto !important; align-items:flex-start !important; }
}


/* v7.17.12 shared dynamic dashboard footer on every portal module. */
.dpc-shared-footer {
    width: 100%;
    margin-top: 28px;
    box-sizing: border-box;
    flex: 0 0 auto;
}
body[class*="dpc-module-"] > .dpc-shared-footer,
body.dpc-portal-dashboard > .dpc-shared-footer {
    margin-top: 28px;
}


/* v7.17.13 consistent module navigation and workflow tool placement. */
.dpc-module-app-header .dpc-dashboard-back-btn {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 156px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(255,255,255,.42) !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    box-shadow: none !important;
    font: 700 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}
.dpc-module-app-header .dpc-dashboard-back-btn:hover,
.dpc-module-app-header .dpc-dashboard-back-btn:focus {
    background: rgba(255,255,255,.22) !important;
    border-color: rgba(255,255,255,.60) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.dpc-module-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 18px;
    padding: 10px 0;
}
.dpc-backflow-toolbar .dpc-manager-tools { margin: 0 !important; }
@media (max-width: 780px) {
    .dpc-module-app-header .dpc-dashboard-back-btn {
        min-width: 150px !important;
    }
    .dpc-module-toolbar {
        justify-content: flex-start;
        margin-top: -4px;
    }
}

/* v7.17.20 dashboard all-module directory.
 * Visual-only replacement for the former Session Active status card. */
.dpc-all-modules-panel {
    position: relative;
    width: min(360px, 100%);
    margin: 0;
    border: 1px solid #c9d8e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(19, 52, 82, .08);
    color: var(--dpc-ink);
    z-index: 20;
}
.dpc-all-modules-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    padding: 9px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.dpc-all-modules-panel > summary::-webkit-details-marker { display: none; }
.dpc-all-modules-panel > summary:focus-visible {
    outline: 3px solid rgba(0, 121, 190, .28);
    outline-offset: 2px;
    border-radius: 10px;
}
.dpc-all-modules-summary-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.dpc-all-modules-summary-copy strong {
    color: var(--dpc-blue-800);
    font-size: 13px;
    line-height: 1.2;
}
.dpc-all-modules-summary-copy span {
    color: var(--dpc-muted);
    font-size: 11px;
    line-height: 1.2;
}
.dpc-all-modules-chevron {
    color: var(--dpc-blue-700);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform-origin: center;
    transition: transform .18s ease;
}
.dpc-all-modules-panel[open] .dpc-all-modules-chevron { transform: rotate(180deg); }
.dpc-all-modules-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(410px, calc(100vw - 32px));
    max-height: min(520px, 70vh);
    overflow: auto;
    padding: 8px;
    border: 1px solid #c9d8e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(19, 52, 82, .18);
}
.dpc-all-modules-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
}
.dpc-all-modules-item + .dpc-all-modules-item { border-top: 1px solid #edf2f7; }
.dpc-all-modules-item.has-access { background: #f7fcf9; }
.dpc-all-modules-item.no-access { background: #fffafa; }
.dpc-module-access-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c63d47;
    box-shadow: 0 0 0 4px rgba(198, 61, 71, .10);
    flex: 0 0 auto;
}
.dpc-all-modules-item.has-access .dpc-module-access-dot,
.dpc-module-access-dot.is-green {
    background: #17a65a;
    box-shadow: 0 0 0 4px rgba(23, 166, 90, .10);
}
.dpc-module-access-dot.is-red {
    background: #c63d47;
    box-shadow: 0 0 0 4px rgba(198, 61, 71, .10);
}
.dpc-module-directory-name {
    min-width: 0;
    color: #17324d;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
}
.dpc-module-directory-status {
    color: var(--dpc-muted);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.dpc-all-modules-item.has-access .dpc-module-directory-status { color: #17653a; }
.dpc-all-modules-item.no-access .dpc-module-directory-status { color: #9b3038; }
.dpc-all-modules-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 8px;
    padding: 10px;
    border-top: 1px solid #e5edf5;
    color: var(--dpc-muted);
    font-size: 10px;
}
.dpc-all-modules-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dpc-all-modules-legend .dpc-module-access-dot { width: 7px; height: 7px; box-shadow: none; }

@media (max-width: 780px) {
    .dpc-all-modules-panel { width: 100%; }
    .dpc-all-modules-list { left: 0; right: auto; width: 100%; }
}


/* Module production status badge */
.dpc-module-card { position: relative; }
.dpc-production-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid #9ad5ae;
    border-radius: 999px;
    background: #eefaf2;
    color: #176b36;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.dpc-production-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1f8f4e;
    color: #fff;
    font-size: 11px;
    line-height: 16px;
}
@media (max-width: 560px) {
    .dpc-production-badge span:last-child { display: none; }
    .dpc-production-badge { padding: 5px; }
}


/* v7.0.309 Board / Committee report collaboration */
.bcm-comments{margin-top:16px}.bcm-comment-list{display:grid;gap:10px;margin:10px 0 14px}.bcm-comment{border:1px solid #d9e2e8;border-radius:10px;background:#fbfcfd;padding:10px 12px}.bcm-comment>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.bcm-comment small{color:#657786}.bcm-comment p{margin:7px 0 0;white-space:normal}.bcm-comment-form textarea{width:100%;min-height:72px;margin-bottom:8px}.bcm-packet-review-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin-top:14px}.bcm-packet-review-actions form.bcm-actions{align-items:center}

/* v7.0.312 Board / Committee ready-queue decision cleanup */
.bcm-ready-review-row{align-items:stretch;padding:12px 14px;gap:18px}.bcm-ready-report-info{display:flex!important;align-items:flex-start!important;gap:9px!important;flex:1;min-width:260px}.bcm-ready-report-info>div{display:flex;flex-direction:column;gap:2px;min-width:0}.bcm-ready-report-info strong{color:#17364a}.bcm-ready-decisions{display:grid!important;grid-template-columns:minmax(260px,1fr) minmax(230px,.78fr);gap:10px!important;align-items:stretch!important;min-width:min(720px,60%)}.bcm-ready-decision{border:1px solid #dbe5eb;border-radius:10px;padding:10px 12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.bcm-ready-decision>div{display:flex;flex-direction:column;gap:3px}.bcm-ready-decision strong{color:#17364a;font-size:12px}.bcm-ready-decision small{color:#64748b;line-height:1.35}.bcm-ready-accept{border-color:#b9dfc5;background:#f6fcf8}.bcm-ready-return{border:1px solid #ead7ad;border-radius:10px;background:#fffdf7;overflow:hidden}.bcm-ready-return summary{cursor:pointer;padding:11px 12px;font-weight:800;color:#8a5a00;list-style:none}.bcm-ready-return summary::-webkit-details-marker{display:none}.bcm-ready-return summary:before{content:'\25B8';display:inline-block;margin-right:7px}.bcm-ready-return[open] summary:before{content:'\25BE'}.bcm-ready-return-body{border-top:1px solid #f0e3c6;padding:10px 12px}.bcm-ready-return-body p{margin:0 0 8px;color:#64748b;font-size:11px;line-height:1.4}.bcm-ready-return-body form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bcm-ready-return-body input{min-width:220px;flex:1;border:1px solid #d8c395;border-radius:8px;padding:8px 9px}@media(max-width:1120px){.bcm-ready-review-row{flex-direction:column}.bcm-ready-decisions{min-width:0;width:100%;grid-template-columns:1fr 1fr}}@media(max-width:720px){.bcm-ready-decisions{grid-template-columns:1fr}.bcm-ready-decision{grid-template-columns:1fr}.bcm-ready-decision form{justify-self:start}.bcm-ready-return-body input{min-width:0;width:100%}}

/* v7.0.313 Board / Committee ready-queue layout hardening */
.bcm-ready-report-info>div{flex:1 1 auto;min-width:0;width:auto;max-width:100%}
.bcm-ready-report-info strong,.bcm-ready-report-info small{display:block;white-space:normal;word-break:normal;overflow-wrap:break-word}
@media(max-width:1120px){
  .bcm-ready-review-row{align-items:stretch!important}
  .bcm-ready-report-info{width:100%;min-width:0;flex:0 0 auto}
  .bcm-ready-report-info>div{flex:1 1 auto;min-width:0;width:auto}
  .bcm-ready-decisions{width:100%;min-width:0}
}
