/* Final loaded executive palette for PMIDT.
   This file is intentionally loaded after system-unified-ui.css. */
body.pmidt-ui.pm-theme-civic {
    --lux-ink: #1f2528;
    --lux-graphite: #252b2f;
    --lux-graphite-2: #343d42;
    --lux-charcoal: #4d5559;
    --lux-burgundy: #7e3438;
    --lux-burgundy-2: #9c474c;
    --lux-champagne: #c8a96a;
    --lux-champagne-soft: #f0dfb5;
    --lux-ivory: #fbfaf7;
    --lux-mist: #f1f2ef;
    --lux-green: #567760;
    --lux-red: #a14f4f;
    --exec-ink: var(--lux-ink);
    --exec-navy: var(--lux-graphite);
    --exec-navy-2: var(--lux-graphite-2);
    --exec-petrol: var(--lux-burgundy);
    --exec-teal: var(--lux-charcoal);
    --exec-gold: var(--lux-champagne);
    --exec-red: var(--lux-red);
    --exec-green: var(--lux-green);
    --pm-color-primary: var(--lux-burgundy);
    --pm-color-primary-2: var(--lux-burgundy-2);
    --pm-color-warning: var(--lux-champagne);
    color: var(--lux-ink);
    background:
        radial-gradient(circle at 10% -12%, rgba(200, 169, 106, 0.22), transparent 27%),
        radial-gradient(circle at 92% 2%, rgba(126, 52, 56, 0.1), transparent 30%),
        linear-gradient(180deg, var(--lux-ivory) 0%, #f5f4f0 48%, #ebece8 100%) !important;
}

body.pmidt-ui.pm-theme-civic .navbar.navbar-light.bg-light {
    border-bottom-color: var(--lux-champagne) !important;
    background: linear-gradient(90deg, #202529 0%, #343d42 58%, #4b4032 100%) !important;
}

body.pmidt-ui.pm-theme-civic .navbar-brand {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(240, 223, 181, 0.28) !important;
}

body.pmidt-ui.pm-theme-civic .navbar .nav-link:hover,
body.pmidt-ui.pm-theme-civic .navbar .nav-link:focus,
body.pmidt-ui.pm-theme-civic .navbar .dropdown.show > .nav-link {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 -2px 0 var(--lux-champagne-soft) !important;
}

body.pmidt-ui.pm-theme-civic .dropdown-menu {
    border-color: rgba(64, 72, 77, 0.16) !important;
    background: rgba(255, 254, 251, 0.99) !important;
}

body.pmidt-ui.pm-theme-civic .dropdown-menu .dropdown-item:hover,
body.pmidt-ui.pm-theme-civic .dropdown-menu .dropdown-item:focus {
    background: linear-gradient(90deg, rgba(126, 52, 56, 0.1), rgba(200, 169, 106, 0.16)) !important;
    color: var(--lux-graphite) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-shell,
body.pmidt-ui.pm-theme-civic .iw-action-group {
    border-color: rgba(64, 72, 77, 0.13) !important;
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(247, 246, 242, 0.98)) !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-primary {
    background: linear-gradient(180deg, #fffefb, #f7f1ed) !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-support {
    background: linear-gradient(180deg, #fffefb, #f5f1e8) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-kicker {
    color: var(--lux-burgundy-2) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-title,
body.pmidt-ui.pm-theme-civic .iw-subtitle-wrap #titles {
    color: var(--lux-graphite) !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-group-title {
    color: #6a5f52 !important;
}

body.pmidt-ui.pm-theme-civic .btn-primary,
body.pmidt-ui.pm-theme-civic .iw-page .btn-primary {
    background: linear-gradient(135deg, var(--lux-burgundy), var(--lux-burgundy-2)) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .btn-primary:hover,
body.pmidt-ui.pm-theme-civic .iw-page .btn-primary:hover {
    background: linear-gradient(135deg, #6f2d31, #8f3d42) !important;
}

body.pmidt-ui.pm-theme-civic .btn-secondary,
body.pmidt-ui.pm-theme-civic .iw-page .btn-secondary {
    background: linear-gradient(135deg, var(--lux-charcoal), #596166) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .btn-danger,
body.pmidt-ui.pm-theme-civic .iw-page .btn-danger {
    background: linear-gradient(135deg, var(--lux-red), #8c4545) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .btn-success,
body.pmidt-ui.pm-theme-civic .iw-page .btn-success {
    background: linear-gradient(135deg, var(--lux-green), #486a52) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .btn-warning,
body.pmidt-ui.pm-theme-civic .iw-page .btn-warning {
    background: linear-gradient(135deg, #ddc17e, var(--lux-champagne)) !important;
    color: var(--lux-graphite) !important;
}

body.pmidt-ui.pm-theme-civic .btn-info,
body.pmidt-ui.pm-theme-civic .iw-page .btn-info {
    background: linear-gradient(135deg, #6d6260, var(--lux-charcoal)) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .iw-page .js-iw-action.active {
    background: linear-gradient(135deg, var(--lux-graphite), #1b2023) !important;
    border-color: rgba(200, 169, 106, 0.62) !important;
    box-shadow: inset 0 -3px 0 var(--lux-champagne), 0 12px 26px rgba(31, 37, 40, 0.2) !important;
}

body.pmidt-ui.pm-theme-civic .table thead th,
body.pmidt-ui.pm-theme-civic .table thead td,
body.pmidt-ui.pm-theme-civic .table-primary,
body.pmidt-ui.pm-theme-civic .table-primary > th,
body.pmidt-ui.pm-theme-civic .table-primary > td,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers {
    background: linear-gradient(180deg, var(--lux-graphite), #1f2528) !important;
}

body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-header-row > td {
    background: linear-gradient(180deg, var(--lux-graphite), #1f2528) !important;
    color: var(--lux-ivory) !important;
    border-color: rgba(240, 223, 181, 0.22) !important;
    font-weight: 800 !important;
}

body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-header-row .dx-datagrid-text-content,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-header-row .dx-column-indicators,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-header-row .dx-sort,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-header-row .dx-header-filter {
    color: var(--lux-ivory) !important;
    opacity: 1 !important;
}

body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-filter-row > td {
    background: #f7f8f5 !important;
    color: var(--lux-graphite) !important;
    border-color: rgba(64, 72, 77, 0.12) !important;
}

body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-filter-row .dx-texteditor-input,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-filter-row .dx-placeholder,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers .dx-filter-row .dx-icon {
    color: var(--lux-graphite) !important;
}

body.pmidt-ui.pm-theme-civic .table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(126, 52, 56, 0.065), rgba(200, 169, 106, 0.08)) !important;
}

body.pmidt-ui.pm-theme-civic .iw-highlight-cell {
    background: linear-gradient(90deg, rgba(200, 169, 106, 0.18), rgba(126, 52, 56, 0.06)) !important;
}

body.pmidt-ui.pm-theme-civic .form-control:focus,
body.pmidt-ui.pm-theme-civic .form-select:focus {
    border-color: var(--lux-burgundy) !important;
    box-shadow: 0 0 0 0.2rem rgba(126, 52, 56, 0.16) !important;
}

body.pmidt-ui.pm-theme-civic .pmidt-footer-shell {
    border-top-color: var(--lux-champagne) !important;
    background: linear-gradient(90deg, var(--lux-graphite), #343d42) !important;
}

/* Executive typography scale */
body.pmidt-ui.pm-theme-civic .iw-toolbar-title {
    font-size: 1.18rem !important;
    line-height: 1.35 !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-kicker {
    font-size: 0.66rem !important;
    letter-spacing: 0.06em !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-subtitle {
    font-size: 0.8rem !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-group-title {
    font-size: 0.72rem !important;
    margin-bottom: 0.36rem !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-row .btn,
body.pmidt-ui.pm-theme-civic .iw-page .js-iw-action,
body.pmidt-ui.pm-theme-civic .iw-page .iw-logout-btn {
    min-height: 38px !important;
    padding: 0.38rem 0.48rem !important;
    font-size: 0.8rem !important;
    font-weight: 760 !important;
    line-height: 1.18 !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-row .btn i,
body.pmidt-ui.pm-theme-civic .iw-page .js-iw-action i,
body.pmidt-ui.pm-theme-civic .iw-page .iw-logout-btn i {
    font-size: 0.86rem !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-group {
    padding: 0.48rem !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-command-panel {
    gap: 0.48rem !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-row {
    gap: 0.34rem !important;
}

body.pmidt-ui.pm-theme-civic .table thead th,
body.pmidt-ui.pm-theme-civic .table thead td {
    font-size: 0.82rem !important;
}

body.pmidt-ui.pm-theme-civic .table td,
body.pmidt-ui.pm-theme-civic .table th {
    font-size: 0.82rem !important;
    padding: 0.48rem 0.58rem !important;
}

/* Soft executive palette: light, calm, comfortable */
body.pmidt-ui.pm-theme-civic {
    --soft-ink: #263238;
    --soft-ink-2: #45565d;
    --soft-bg: #f7faf8;
    --soft-surface: #ffffff;
    --soft-panel: #f2f7f4;
    --soft-line: #dce7e1;
    --soft-sage: #6f9f8d;
    --soft-sage-2: #86b39f;
    --soft-teal: #6fa8a8;
    --soft-blue: #7fabc4;
    --soft-lavender: #8d8fb3;
    --soft-sand: #d6bd86;
    --soft-red: #c27b73;
    --soft-green: #78a983;
    --exec-ink: var(--soft-ink);
    --exec-navy: var(--soft-ink-2);
    --exec-navy-2: #60737b;
    --exec-petrol: var(--soft-sage);
    --exec-teal: var(--soft-teal);
    --exec-gold: var(--soft-sand);
    --exec-red: var(--soft-red);
    --exec-green: var(--soft-green);
    color: var(--soft-ink);
    background:
        radial-gradient(circle at 10% -12%, rgba(214, 189, 134, 0.16), transparent 28%),
        radial-gradient(circle at 92% 2%, rgba(111, 168, 168, 0.13), transparent 30%),
        linear-gradient(180deg, #fbfdfb 0%, var(--soft-bg) 52%, #eef5f1 100%) !important;
}

body.pmidt-ui.pm-theme-civic .navbar.navbar-light.bg-light {
    border-bottom: 1px solid var(--soft-line) !important;
    background: linear-gradient(90deg, #f9fcfa 0%, #eef6f1 58%, #f6f0df 100%) !important;
    box-shadow: 0 10px 28px rgba(69, 86, 93, 0.11) !important;
}

body.pmidt-ui.pm-theme-civic .navbar-brand {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(111, 159, 141, 0.26) !important;
}

body.pmidt-ui.pm-theme-civic .navbar .nav-link,
body.pmidt-ui.pm-theme-civic .navbar .dropdown-toggle {
    color: var(--soft-ink) !important;
}

body.pmidt-ui.pm-theme-civic .navbar .nav-link:hover,
body.pmidt-ui.pm-theme-civic .navbar .nav-link:focus,
body.pmidt-ui.pm-theme-civic .navbar .dropdown.show > .nav-link {
    background: rgba(111, 159, 141, 0.13) !important;
    box-shadow: inset 0 -2px 0 var(--soft-sage-2) !important;
}

body.pmidt-ui.pm-theme-civic .dropdown-menu {
    border-color: var(--soft-line) !important;
    background: rgba(255, 255, 255, 0.99) !important;
    box-shadow: 0 18px 38px rgba(69, 86, 93, 0.13) !important;
}

body.pmidt-ui.pm-theme-civic .dropdown-menu .dropdown-item:hover,
body.pmidt-ui.pm-theme-civic .dropdown-menu .dropdown-item:focus {
    background: linear-gradient(90deg, rgba(111, 159, 141, 0.13), rgba(214, 189, 134, 0.12)) !important;
    color: var(--soft-ink) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-shell,
body.pmidt-ui.pm-theme-civic .iw-action-group,
body.pmidt-ui.pm-theme-civic .iw-claim-surface {
    border-color: var(--soft-line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 16px 36px rgba(69, 86, 93, 0.09) !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-primary {
    background: linear-gradient(180deg, #ffffff, #f1f8f4) !important;
}

body.pmidt-ui.pm-theme-civic .iw-action-support {
    background: linear-gradient(180deg, #ffffff, #f8f5ec) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-kicker {
    color: #789b88 !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-title,
body.pmidt-ui.pm-theme-civic .iw-subtitle-wrap #titles {
    color: var(--soft-ink) !important;
}

body.pmidt-ui.pm-theme-civic .iw-toolbar-subtitle,
body.pmidt-ui.pm-theme-civic .iw-action-group-title {
    color: #65777e !important;
}

body.pmidt-ui.pm-theme-civic .btn-primary,
body.pmidt-ui.pm-theme-civic .iw-page .btn-primary {
    background: linear-gradient(135deg, var(--soft-sage), var(--soft-teal)) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .btn-primary:hover,
body.pmidt-ui.pm-theme-civic .iw-page .btn-primary:hover {
    background: linear-gradient(135deg, #638f7e, #629797) !important;
}

body.pmidt-ui.pm-theme-civic .btn-secondary,
body.pmidt-ui.pm-theme-civic .iw-page .btn-secondary {
    background: linear-gradient(135deg, #8fa0a6, #778c93) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .btn-danger,
body.pmidt-ui.pm-theme-civic .iw-page .btn-danger {
    background: linear-gradient(135deg, var(--soft-red), #b16d66) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .btn-success,
body.pmidt-ui.pm-theme-civic .iw-page .btn-success {
    background: linear-gradient(135deg, var(--soft-green), #66986f) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .btn-warning,
body.pmidt-ui.pm-theme-civic .iw-page .btn-warning {
    background: linear-gradient(135deg, #e2cd99, var(--soft-sand)) !important;
    color: var(--soft-ink) !important;
}

body.pmidt-ui.pm-theme-civic .btn-info,
body.pmidt-ui.pm-theme-civic .iw-page .btn-info {
    background: linear-gradient(135deg, var(--soft-blue), #6998b2) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .iw-page .js-iw-action.active {
    background: linear-gradient(135deg, #5f8979, #5c8d8d) !important;
    border-color: rgba(214, 189, 134, 0.48) !important;
    box-shadow: inset 0 -3px 0 var(--soft-sand), 0 10px 22px rgba(69, 86, 93, 0.14) !important;
}

body.pmidt-ui.pm-theme-civic .table thead th,
body.pmidt-ui.pm-theme-civic .table thead td,
body.pmidt-ui.pm-theme-civic .table-primary,
body.pmidt-ui.pm-theme-civic .table-primary > th,
body.pmidt-ui.pm-theme-civic .table-primary > td,
body.pmidt-ui.pm-theme-civic .dx-datagrid-headers {
    background: linear-gradient(180deg, #6e8f89, #5f817e) !important;
    color: #ffffff !important;
}

body.pmidt-ui.pm-theme-civic .table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(111, 159, 141, 0.1), rgba(214, 189, 134, 0.08)) !important;
}

body.pmidt-ui.pm-theme-civic .iw-highlight-cell {
    background: linear-gradient(90deg, rgba(214, 189, 134, 0.16), rgba(111, 159, 141, 0.08)) !important;
}

body.pmidt-ui.pm-theme-civic .form-control:focus,
body.pmidt-ui.pm-theme-civic .form-select:focus {
    border-color: var(--soft-sage) !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 159, 141, 0.18) !important;
}

body.pmidt-ui.pm-theme-civic .pmidt-footer-shell {
    border-top-color: var(--soft-line) !important;
    background: linear-gradient(90deg, #eef6f1, #f7f2e4) !important;
    color: var(--soft-ink) !important;
}

body.pmidt-ui.pm-theme-civic .pmidt-footer-shell label,
body.pmidt-ui.pm-theme-civic .pmidt-footer-shell a {
    color: var(--soft-ink) !important;
}

/* Pharmacy page */
body.pmidt-ui.pm-theme-civic .pharmacy-page {
    width: min(1540px, 96vw);
    margin: 0.7rem auto 0;
}

body.pmidt-ui.pm-theme-civic .pharmacy-hero {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 1px solid var(--soft-line);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 250, 0.96));
    box-shadow: 0 16px 36px rgba(69, 86, 93, 0.09);
}

body.pmidt-ui.pm-theme-civic .pharmacy-kicker {
    color: #6f9f8d;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.pmidt-ui.pm-theme-civic .pharmacy-hero h1 {
    margin: 0.08rem 0;
    color: var(--soft-ink);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.28;
}

body.pmidt-ui.pm-theme-civic .pharmacy-hero p {
    margin: 0;
    color: #65777e;
    font-size: 0.86rem;
    font-weight: 650;
}

body.pmidt-ui.pm-theme-civic .pharmacy-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 0.45rem;
    min-width: min(460px, 100%);
}

body.pmidt-ui.pm-theme-civic .pharmacy-mode-btn,
body.pmidt-ui.pm-theme-civic .pharmacy-list-btn {
    min-height: 40px !important;
    padding: 0.44rem 0.7rem !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
    font-weight: 780 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    box-shadow: 0 8px 18px rgba(69, 86, 93, 0.1) !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-list-btn {
    grid-column: 1 / -1;
}

body.pmidt-ui.pm-theme-civic .pharmacy-workspace {
    margin-top: 0.8rem;
    min-height: 600px;
    padding: 0.7rem;
    border: 1px solid var(--soft-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(69, 86, 93, 0.08);
}

/* Stores page aligned with Pharmacy visual structure */
body.pmidt-ui.pm-theme-civic .stores-page .stores-hero {
    grid-template-columns: minmax(320px, 1fr) minmax(520px, 1fr);
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-actions {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-actions .pharmacy-list-btn {
    grid-column: 1 / -1;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-workspace {
    min-height: 680px;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane {
    margin-bottom: 0.4rem;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-card {
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
    padding: 0.32rem;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-section-title {
    margin: 0 !important;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel {
    max-height: 330px;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .form-control,
body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .form-select {
    min-height: 37px;
    border-color: rgba(111, 159, 141, 0.28);
    background: linear-gradient(180deg, #ffffff, #f5faf7);
    color: #3e4e56;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .form-control:focus,
body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .form-select:focus {
    border-color: #79a999;
    box-shadow: 0 0 0 0.2rem rgba(111, 159, 141, 0.18);
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .btn-primary,
body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .btn-info {
    background: linear-gradient(135deg, #6f9f8d, #5f817e) !important;
    border-color: rgba(111, 159, 141, 0.35) !important;
    color: #f8fbfc !important;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .btn-warning {
    background: linear-gradient(135deg, #d7bd86, #c8aa6e) !important;
    border-color: rgba(200, 170, 110, 0.35) !important;
    color: #37454c !important;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .btn-success,
body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .pharmacy-save-btn {
    background: linear-gradient(135deg, #5f8979, #4f7668) !important;
    border-color: rgba(95, 137, 121, 0.38) !important;
    color: #f6fbf8 !important;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-pane .btn-danger {
    background: linear-gradient(135deg, #c48378, #ad6f66) !important;
    border-color: rgba(173, 111, 102, 0.34) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .stores-page .btn-add-table {
    border: 1px solid rgba(95, 137, 121, 0.34);
    border-radius: 8px;
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, #6f9f8d, #5f817e);
    color: #f8fbfc;
    font-weight: 700;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel .table {
    margin-bottom: 0;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel .table thead th,
body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel .table thead td {
    background: linear-gradient(180deg, #8db4a5, #749d91) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(94, 129, 118, 0.35) !important;
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel .table tbody tr:nth-child(even) {
    background: rgba(111, 159, 141, 0.05);
}

body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel .table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(111, 159, 141, 0.11), rgba(214, 189, 134, 0.08)) !important;
}

body.pmidt-ui.pm-theme-civic #dialog,
body.pmidt-ui.pm-theme-civic #dialogConfig,
body.pmidt-ui.pm-theme-civic #dialogDrug,
body.pmidt-ui.pm-theme-civic #Companydialog {
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

body.pmidt-ui.pm-theme-civic #dialog .form-control,
body.pmidt-ui.pm-theme-civic #Companydialog .form-control,
body.pmidt-ui.pm-theme-civic #dialog .form-select,
body.pmidt-ui.pm-theme-civic #dialogConfig .form-control,
body.pmidt-ui.pm-theme-civic #dialogConfig .form-select {
    border-color: rgba(111, 159, 141, 0.26);
    background: #f7fbf9;
}

/* Stores Color Lock: auto-apply to any injected partial inside Stores workspace */
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(69, 86, 93, 0.08);
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table thead th,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table thead td,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table-primary,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table-primary > th,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table-primary > td {
    background: linear-gradient(180deg, #8db4a5, #749d91) !important;
    color: #ffffff !important;
    border-color: rgba(94, 129, 118, 0.34) !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(111, 159, 141, 0.11), rgba(214, 189, 134, 0.08)) !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .form-control,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .form-select {
    border-color: rgba(111, 159, 141, 0.28);
    background: linear-gradient(180deg, #ffffff, #f5faf7);
    color: #3e4e56;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .form-control:focus,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .form-select:focus {
    border-color: #79a999;
    box-shadow: 0 0 0 0.2rem rgba(111, 159, 141, 0.18);
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .btn-primary,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .btn-info {
    background: linear-gradient(135deg, #6f9f8d, #5f817e) !important;
    border-color: rgba(111, 159, 141, 0.35) !important;
    color: #f8fbfc !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .btn-success {
    background: linear-gradient(135deg, #5f8979, #4f7668) !important;
    border-color: rgba(95, 137, 121, 0.38) !important;
    color: #f6fbf8 !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .btn-warning {
    background: linear-gradient(135deg, #d7bd86, #c8aa6e) !important;
    border-color: rgba(200, 170, 110, 0.35) !important;
    color: #37454c !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .btn-danger {
    background: linear-gradient(135deg, #c48378, #ad6f66) !important;
    border-color: rgba(173, 111, 102, 0.34) !important;
    color: #fff !important;
}

body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .alert-info,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .alert-success,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .alert-danger {
    border-color: var(--soft-line) !important;
    color: var(--soft-ink) !important;
    background: linear-gradient(90deg, #eff8f3, #f8f4e8) !important;
}

body.pmidt-ui.pm-theme-civic .stores-page #saveTableData,
body.pmidt-ui.pm-theme-civic .stores-page .pharmacy-save-btn {
    min-width: 132px;
}

@media (max-width: 992px) {
    body.pmidt-ui.pm-theme-civic .stores-page .stores-hero {
        grid-template-columns: 1fr;
    }

    body.pmidt-ui.pm-theme-civic .stores-page .stores-actions {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 560px) {
    body.pmidt-ui.pm-theme-civic .stores-page .stores-actions {
        grid-template-columns: 1fr;
    }
}

body.pmidt-ui.pm-theme-civic .pharmacy-pane {
    min-height: 620px;
    max-height: 72vh;
    overflow: auto;
    padding: 0.55rem;
    border: 1px solid var(--soft-line);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #fbfdfb);
}

body.pmidt-ui.pm-theme-civic .pharmacy-history-pane {
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

body.pmidt-ui.pm-theme-civic .pharmacy-section-title {
    margin: 0 0 0.55rem !important;
    padding: 0.55rem 0.7rem !important;
    border: 1px solid rgba(111, 159, 141, 0.22) !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #eff8f3, #f8f4e8) !important;
    color: var(--soft-ink) !important;
    font-family: Segoe UI, Tahoma, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    text-align: center !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-form-area {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-table-panel {
    width: 100% !important;
    height: 210px !important;
    max-height: 210px !important;
    overflow: auto !important;
    display: block !important;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    background: #fff;
}

body.pmidt-ui.pm-theme-civic .pharmacy-page .table {
    margin-bottom: 0;
}

body.pmidt-ui.pm-theme-civic .pharmacy-page .table thead th {
    background: linear-gradient(180deg, #8db4a5, #749d91) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 0.8rem !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-page .form-control,
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-select {
    min-height: 36px !important;
    border-radius: 7px !important;
    font-size: 0.82rem !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-page #doesage1 {
    background-color: #f7efd8 !important;
}

body.pmidt-ui.pm-theme-civic .pharmacy-save-btn {
    min-width: 120px !important;
    margin: 0.65rem auto 0 !important;
    display: flex !important;
    justify-content: center !important;
}

@media (max-width: 992px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-hero {
        grid-template-columns: 1fr;
    }

    body.pmidt-ui.pm-theme-civic .pharmacy-actions {
        width: 100%;
    }

    body.pmidt-ui.pm-theme-civic .pharmacy-pane {
        min-height: auto;
        max-height: none;
    }
}

@media (max-width: 560px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== */
/* Stores Operations Console — production workspace redesign (2026-07-13)    */
/* ========================================================================== */
body.pmidt-ui.pm-theme-civic .stores-page {
    --stores-teal-950: #123c39;
    --stores-teal-850: #19534d;
    --stores-teal-700: #267066;
    --stores-emerald-100: #e7f1ec;
    --stores-amber: #b58231;
    --stores-amber-soft: #f7edd9;
    --stores-canvas: #f3f5ed;
    --stores-line: #d7e1da;
    --stores-ink: #243b3a;
    --stores-muted: #60736f;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(0.75rem, 1.6vw, 1.5rem);
    color: var(--stores-ink);
    font-family: Tahoma, Arial, system-ui, sans-serif;
    background:
        radial-gradient(circle at 92% 0%, rgba(181, 130, 49, 0.09), transparent 27rem),
        linear-gradient(135deg, rgba(38, 112, 102, 0.035) 25%, transparent 25%) 0 0 / 24px 24px,
        var(--stores-canvas);
    border-radius: 16px;
}

body.pmidt-ui.pm-theme-civic .stores-ops-header {
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.75rem);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(118deg, var(--stores-teal-950), var(--stores-teal-850) 74%, #2d695d);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px 14px 5px 5px;
    box-shadow: 0 14px 30px rgba(18, 60, 57, 0.18);
}

body.pmidt-ui.pm-theme-civic .stores-ops-heading { position: relative; z-index: 1; }

body.pmidt-ui.pm-theme-civic .stores-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    color: #bed9d1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.075em;
}

body.pmidt-ui.pm-theme-civic .stores-ops-header .pm-page-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem) !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body.pmidt-ui.pm-theme-civic .stores-ops-heading p {
    max-width: 760px;
    margin: 0.55rem 0 0;
    color: #d8e7e1;
    font-size: 0.91rem;
    line-height: 1.65;
}

body.pmidt-ui.pm-theme-civic .stores-ready {
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

body.pmidt-ui.pm-theme-civic .stores-ready strong,
body.pmidt-ui.pm-theme-civic .stores-ready small { display: block; }
body.pmidt-ui.pm-theme-civic .stores-ready strong { color: #fff; font-size: 0.8rem; }
body.pmidt-ui.pm-theme-civic .stores-ready small { margin-top: 0.12rem; color: #bdd6cf; font-size: 0.68rem; }

body.pmidt-ui.pm-theme-civic .stores-page.arl-page { box-sizing: border-box; }
body.pmidt-ui.pm-theme-civic .stores-page .stores-routing-instrument.arl-routing-instrument .stores-mode-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.pmidt-ui.pm-theme-civic .stores-page .arl-mode-card.stores-task::before { display: none; }

body.pmidt-ui.pm-theme-civic .stores-task-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.85rem 0;
}

body.pmidt-ui.pm-theme-civic .stores-task {
    min-width: 0;
    min-height: 86px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 0.65rem;
    padding: 0.82rem 0.75rem 0.82rem 0.92rem;
    position: relative;
    overflow: hidden;
    text-align: start;
    color: var(--stores-ink);
    background: #fff;
    border: 1px solid var(--stores-line);
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(32, 66, 61, 0.06);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.pmidt-ui.pm-theme-civic .stores-task::before {
    content: "";
    width: 4px;
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    background: var(--stores-teal-700);
    transition: width .18s ease;
}

body.pmidt-ui.pm-theme-civic .stores-task-accent::before { background: var(--stores-amber); }
body.pmidt-ui.pm-theme-civic .stores-task:hover { transform: translateY(-2px); border-color: #a9c5bb; box-shadow: 0 10px 22px rgba(32, 66, 61, 0.11); }

body.pmidt-ui.pm-theme-civic .stores-task:focus-visible {
    outline: 3px solid rgba(181, 130, 49, 0.34);
    outline-offset: 2px;
}

body.pmidt-ui.pm-theme-civic .stores-task.is-active {
    color: #fff;
    background: var(--stores-teal-850);
    border-color: var(--stores-teal-850);
    box-shadow: 0 10px 24px rgba(25, 83, 77, 0.2);
}

body.pmidt-ui.pm-theme-civic .stores-task.is-active::before { width: 7px; background: #d3a85b; }

body.pmidt-ui.pm-theme-civic .stores-task-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--stores-teal-850);
    background: var(--stores-emerald-100);
    border: 1px solid #d0e2da;
    border-radius: 8px;
    font-size: 1.05rem;
}

body.pmidt-ui.pm-theme-civic .stores-task-accent .stores-task-icon { color: #8a611d; background: var(--stores-amber-soft); border-color: #ead7b4; }
body.pmidt-ui.pm-theme-civic .stores-task.is-active .stores-task-icon { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
body.pmidt-ui.pm-theme-civic .stores-task-copy { min-width: 0; }
body.pmidt-ui.pm-theme-civic .stores-task-copy strong { display: block; font-size: 0.78rem; line-height: 1.3; }
body.pmidt-ui.pm-theme-civic .stores-task-copy small { display: block; margin-top: 0.25rem; overflow: hidden; color: var(--stores-muted); font-size: 0.65rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .stores-task.is-active .stores-task-copy small { color: #c9ded8; }
body.pmidt-ui.pm-theme-civic .stores-task-arrow { color: #8ca09b; font-size: 0.75rem; }
body.pmidt-ui.pm-theme-civic .stores-task.is-active .stores-task-arrow { color: #fff; transform: translateX(2px); }

body.pmidt-ui.pm-theme-civic .stores-page .stores-workspace {
    min-height: 470px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--stores-line);
    border-radius: 5px 5px 13px 13px;
    box-shadow: 0 16px 36px rgba(35, 69, 64, 0.09);
}

body.pmidt-ui.pm-theme-civic .stores-stage-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.3rem;
    background: linear-gradient(90deg, #f7faf7, #fff);
    border-bottom: 1px solid var(--stores-line);
}

body.pmidt-ui.pm-theme-civic .stores-stage-label { color: var(--stores-teal-700); font-size: 0.62rem; font-weight: 800; letter-spacing: .1em; }
body.pmidt-ui.pm-theme-civic .stores-stage-head h2 { margin: 0.2rem 0 0; color: var(--stores-ink); font-size: 1.08rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .stores-stage-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .65rem; color: #47645e; background: #edf4f0; border: 1px solid #d8e7df; border-radius: 6px; font-size: .68rem; font-weight: 700; }
body.pmidt-ui.pm-theme-civic .stores-stage-body { min-height: 390px; padding: 1.15rem; overflow: hidden; }

body.pmidt-ui.pm-theme-civic .stores-empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: radial-gradient(circle at center, #f3f8f4, transparent 62%);
}

body.pmidt-ui.pm-theme-civic .stores-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--stores-teal-700); background: #e7f1ec; border: 1px solid #cadfd6; border-radius: 50%; font-size: 1.35rem; box-shadow: 0 0 0 9px rgba(231, 241, 236, .45); }
body.pmidt-ui.pm-theme-civic .stores-empty-state h3 { margin: 1.25rem 0 .4rem; color: var(--stores-ink); font-size: 1rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .stores-empty-state p { max-width: 490px; margin: 0; color: var(--stores-muted); font-size: .8rem; line-height: 1.65; }
body.pmidt-ui.pm-theme-civic .stores-dialog-notice { min-height: 330px; }

body.pmidt-ui.pm-theme-civic .stores-loading-state,
body.pmidt-ui.pm-theme-civic .stores-error-state {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--stores-ink);
}
body.pmidt-ui.pm-theme-civic .stores-loading-state strong,
body.pmidt-ui.pm-theme-civic .stores-error-state strong { display: block; font-size: .9rem; }
body.pmidt-ui.pm-theme-civic .stores-loading-state p,
body.pmidt-ui.pm-theme-civic .stores-error-state p { margin: .25rem 0 0; color: var(--stores-muted); font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .stores-loader { width: 31px; height: 31px; border: 3px solid #d8e6df; border-top-color: var(--stores-teal-700); border-radius: 50%; animation: stores-spin .75s linear infinite; }
body.pmidt-ui.pm-theme-civic .stores-error-state { color: #8f453c; }
body.pmidt-ui.pm-theme-civic .stores-error-state > i { font-size: 1.8rem; }

/* Injected operational partials */
body.pmidt-ui.pm-theme-civic .stores-page .stores-stage-body > .row,
body.pmidt-ui.pm-theme-civic .stores-page .stores-stage-body > .w-100 { margin-inline: 0 !important; }
body.pmidt-ui.pm-theme-civic .stores-page .stores-pane { padding: .75rem; background: #f9fbf9; border: 1px solid #dce6df; border-radius: 8px; }
body.pmidt-ui.pm-theme-civic .stores-page .stores-card,
body.pmidt-ui.pm-theme-civic .stores-page .pm-subsection-card { padding: 0 !important; overflow: hidden; border: 0 !important; border-radius: 7px !important; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .stores-page .stores-section-title,
body.pmidt-ui.pm-theme-civic .stores-page .pm-subsection-title {
    min-height: 39px;
    justify-content: flex-start;
    padding: .58rem .8rem !important;
    color: var(--stores-teal-950) !important;
    background: #e9f2ed !important;
    border: 0 !important;
    border-inline-start: 4px solid var(--stores-teal-700) !important;
    border-radius: 4px !important;
    font-size: .78rem !important;
    text-align: start !important;
}
body.pmidt-ui.pm-theme-civic .stores-page .pm-form-row,
body.pmidt-ui.pm-theme-civic .stores-page .form-inline { gap: .5rem; flex-wrap: wrap; }
body.pmidt-ui.pm-theme-civic .stores-page .form-control,
body.pmidt-ui.pm-theme-civic .stores-page .form-select { min-width: 140px; min-height: 38px; border-color: #cfddd5 !important; border-radius: 6px !important; background: #fff !important; color: var(--stores-ink) !important; font-size: .78rem !important; }
body.pmidt-ui.pm-theme-civic .stores-page .form-control:focus,
body.pmidt-ui.pm-theme-civic .stores-page .form-select:focus { border-color: var(--stores-teal-700) !important; box-shadow: 0 0 0 3px rgba(38,112,102,.14) !important; }
body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel,
body.pmidt-ui.pm-theme-civic .stores-page .pm-table-shell { width: 100% !important; max-height: 330px !important; margin: .75rem 0 !important; overflow: auto !important; border: 1px solid #d6e1da !important; border-radius: 7px !important; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table { min-width: 680px; margin: 0; border-radius: 0; box-shadow: none; }
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table thead th,
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table thead td { padding: .68rem .65rem !important; background: var(--stores-teal-850) !important; border-color: rgba(255,255,255,.12) !important; font-size: .7rem !important; font-weight: 800; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .stores-color-lock .stores-color-lock-scope .table tbody td { padding: .62rem !important; color: #344b48; border-color: #e2e9e4; font-size: .72rem; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .stores-page .btn { border-radius: 6px !important; font-size: .75rem !important; font-weight: 700 !important; }
body.pmidt-ui.pm-theme-civic .stores-page .btn-primary,
body.pmidt-ui.pm-theme-civic .stores-page .btn-success { background: var(--stores-teal-700) !important; border-color: var(--stores-teal-700) !important; color: #fff !important; }
body.pmidt-ui.pm-theme-civic .stores-page .btn-primary:hover,
body.pmidt-ui.pm-theme-civic .stores-page .btn-success:hover { background: var(--stores-teal-950) !important; border-color: var(--stores-teal-950) !important; }
body.pmidt-ui.pm-theme-civic .stores-page .btn-danger { background: #a65348 !important; border-color: #a65348 !important; }
body.pmidt-ui.pm-theme-civic .stores-page .pharmacy-save-btn { min-width: 140px !important; margin: .9rem auto .2rem !important; }

/* Stores dialogs and dynamically injected configuration/location content */
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogConfig),
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogDrug),
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialog),
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#Companydialog) { max-width: calc(100vw - 24px) !important; border: 1px solid #cadbd2 !important; border-radius: 10px !important; box-shadow: 0 24px 60px rgba(21,58,53,.24) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog .ui-dialog-titlebar { padding: .75rem 1rem !important; color: #fff !important; background: var(--stores-teal-950, #123c39) !important; border: 0 !important; border-radius: 9px 9px 0 0 !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog .ui-dialog-content { max-width: 100% !important; padding: 1rem !important; overflow: auto !important; background: #f8faf7 !important; }
body.pmidt-ui.pm-theme-civic .stores-dialog-section { color: #243b3a; font-family: Tahoma, Arial, system-ui, sans-serif; }
body.pmidt-ui.pm-theme-civic .stores-dialog-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #d7e2db; }
body.pmidt-ui.pm-theme-civic .stores-dialog-heading h3 { margin: 0; color: #123c39; font-size: 1rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .stores-dialog-heading p { margin: .2rem 0 0; color: #60736f; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .stores-dialog-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #19534d; background: #e7f1ec; border: 1px solid #cfe0d8; border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .stores-dialog-icon-amber { color: #8a611d; background: #f7edd9; border-color: #ead7b4; }
body.pmidt-ui.pm-theme-civic .stores-dialog-field { display: grid; gap: .35rem; margin-bottom: .8rem; }
body.pmidt-ui.pm-theme-civic .stores-dialog-field label { color: #405955; font-size: .7rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .stores-dialog-field .form-control,
body.pmidt-ui.pm-theme-civic .stores-dialog-field .form-select { width: 100% !important; min-height: 40px; border: 1px solid #cbdad2; border-radius: 6px; background: #fff; font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .stores-dialog-content { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dce5df; }
body.pmidt-ui.pm-theme-civic .stores-dialog-actions { display: flex; justify-content: flex-end; padding-top: .3rem; }
body.pmidt-ui.pm-theme-civic .stores-dialog-actions .btn { min-height: 38px; background: #267066 !important; border-color: #267066 !important; color: #fff !important; font-size: .75rem; font-weight: 700; }

@keyframes stores-spin { to { transform: rotate(360deg); } }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.stores-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.stores-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.pmidt-ui.pm-theme-civic .stores-page {
        height: calc(100dvh - 96px);
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: .55rem;
        padding: .55rem;
        overflow: hidden;
        border-radius: 6px;
    }
    body.pmidt-ui.pm-theme-civic .stores-page.arl-page { margin: 0 auto; padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .stores-ops-heading p { margin-top: .3rem; font-size: .78rem; line-height: 1.45; }
    body.pmidt-ui.pm-theme-civic .stores-task-rail { margin: 0; gap: 0; }
    body.pmidt-ui.pm-theme-civic .stores-task {
        min-height: 66px;
        grid-template-columns: 38px minmax(0, 1fr) 14px;
        gap: .5rem;
        padding: .55rem .6rem;
        border-radius: 5px;
    }
    body.pmidt-ui.pm-theme-civic .stores-task-icon { width: 38px; height: 38px; border-radius: 5px; }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-workspace {
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        border-radius: 4px;
    }
    body.pmidt-ui.pm-theme-civic .stores-stage-head { min-height: 56px; padding: .65rem .9rem; }
    body.pmidt-ui.pm-theme-civic .stores-stage-body {
        min-height: 0;
        height: 100%;
        padding: .75rem;
        overflow: auto;
        overscroll-behavior: contain;
    }
    body.pmidt-ui.pm-theme-civic .stores-empty-state,
    body.pmidt-ui.pm-theme-civic .stores-loading-state,
    body.pmidt-ui.pm-theme-civic .stores-error-state,
    body.pmidt-ui.pm-theme-civic .stores-dialog-notice { min-height: 100%; }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-table-panel,
    body.pmidt-ui.pm-theme-civic .stores-page .pm-table-shell { max-height: 42dvh !important; }
}

@media (max-width: 1100px) {
    body.pmidt-ui.pm-theme-civic .stores-page .stores-routing-instrument.arl-routing-instrument .stores-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-mode-grid .stores-task:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body.pmidt-ui.pm-theme-civic .stores-page { padding: .55rem; border-radius: 10px; }
    body.pmidt-ui.pm-theme-civic .stores-ops-header { min-height: auto; align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.15rem; }
    body.pmidt-ui.pm-theme-civic .stores-ready { width: 100%; min-width: 0; padding: .55rem .7rem; }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-routing-instrument.arl-routing-instrument .stores-mode-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-mode-grid .stores-task,
    body.pmidt-ui.pm-theme-civic .stores-page .stores-mode-grid .stores-task:last-child { min-height: 68px; grid-column: auto; }
    body.pmidt-ui.pm-theme-civic .stores-task-icon { width: 36px; height: 36px; }
    body.pmidt-ui.pm-theme-civic .stores-stage-head { min-height: 65px; padding: .75rem .85rem; }
    body.pmidt-ui.pm-theme-civic .stores-stage-chip { display: none; }
    body.pmidt-ui.pm-theme-civic .stores-stage-body { min-height: 330px; padding: .7rem; }
    body.pmidt-ui.pm-theme-civic .stores-empty-state,
    body.pmidt-ui.pm-theme-civic .stores-loading-state,
    body.pmidt-ui.pm-theme-civic .stores-error-state { min-height: 285px; }
    body.pmidt-ui.pm-theme-civic .stores-page .stores-pane { padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .stores-page .form-control,
    body.pmidt-ui.pm-theme-civic .stores-page .form-select { width: 100% !important; min-width: 0; margin-inline: 0 !important; }
    body.pmidt-ui.pm-theme-civic .stores-page .pm-form-row,
    body.pmidt-ui.pm-theme-civic .stores-page .form-inline { align-items: stretch !important; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .ui-dialog { max-width: calc(100vw - 16px) !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .stores-task { transition: none; }
    body.pmidt-ui.pm-theme-civic .stores-loader { animation-duration: 1.8s; }
}

/* ========================================================================== 
   AuditReferralLetter — executive correspondence registry (scoped)
   ========================================================================== */
body.pmidt-ui.pm-theme-civic .arl-page {
    --arl-navy: #173b42;
    --arl-forest: #20574f;
    --arl-steel: #456f8e;
    --arl-amber: #b27a2c;
    --arl-sage: #477b64;
    --arl-brick: #9c4e43;
    --arl-ink: #24363a;
    --arl-muted: #64777a;
    --arl-line: #d8e1dd;
    --arl-canvas: #f3f4ed;
    margin: 0 auto;
    padding: .75rem;
    color: var(--arl-ink);
    background: linear-gradient(145deg, #f5f2e9 0%, #f0f6f3 52%, #edf3f4 100%);
    border: 1px solid #dce3de;
    border-radius: 13px;
    font-family: Tahoma, Arial, system-ui, sans-serif;
}
body.pmidt-ui.pm-theme-civic .arl-page button,
body.pmidt-ui.pm-theme-civic .arl-page input,
body.pmidt-ui.pm-theme-civic .arl-page select { font-family: inherit; }
body.pmidt-ui.pm-theme-civic .arl-hero {
    position: relative;
    min-height: 144px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    padding: 1.45rem 1.65rem;
    color: #fff;
    background: linear-gradient(112deg, #14383f 0%, #1c514a 66%, #285c55 100%);
    border-radius: 9px 9px 3px 3px;
    box-shadow: 0 12px 27px rgba(19, 57, 62, .18);
}
body.pmidt-ui.pm-theme-civic .arl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(120deg, transparent 0 34px, rgba(255,255,255,.025) 34px 35px);
}
body.pmidt-ui.pm-theme-civic .arl-hero-copy,
body.pmidt-ui.pm-theme-civic .arl-seal { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .arl-eyebrow { display: flex; align-items: center; gap: .45rem; color: #c3dcd3; font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-hero h1 { margin: .38rem 0 .42rem; color: #fff; font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 850; letter-spacing: -.025em; }
body.pmidt-ui.pm-theme-civic .arl-hero p { max-width: 720px; margin: 0; color: #d5e4df; font-size: .74rem; line-height: 1.7; }
body.pmidt-ui.pm-theme-civic .arl-seal { min-width: 205px; display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; background: rgba(8,34,37,.3); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .arl-seal-ring { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; color: #e4bc73; border: 1px solid rgba(228,188,115,.7); border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(228,188,115,.08); }
body.pmidt-ui.pm-theme-civic .arl-seal small,
body.pmidt-ui.pm-theme-civic .arl-seal strong { display: block; }
body.pmidt-ui.pm-theme-civic .arl-seal small { color: #abcac0; font-size: .57rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-seal strong { max-width: 120px; margin-top: .18rem; overflow: hidden; color: #fff; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }

body.pmidt-ui.pm-theme-civic .arl-route-console { position: relative; margin: .72rem 0; padding: .62rem .62rem .62rem .88rem; background: #fff; border: 1px solid var(--arl-line); border-radius: 5px 9px 9px 5px; box-shadow: 0 7px 17px rgba(30,65,62,.07); }
body.pmidt-ui.pm-theme-civic .arl-route-rail { position: absolute; inset-block: .62rem; inset-inline-start: 0; width: 5px; background: var(--arl-forest); }
body.pmidt-ui.pm-theme-civic .arl-route-rail span { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; background: #ddb66f; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%,-50%); }
body.pmidt-ui.pm-theme-civic .arl-mode-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; }
body.pmidt-ui.pm-theme-civic .arl-mode-card { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 39px minmax(0,1fr) 14px; align-items: center; gap: .65rem; padding: .65rem .7rem; color: var(--arl-ink); text-align: start; background: #fbfcfa; border: 1px solid #dbe4df; border-radius: 6px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
body.pmidt-ui.pm-theme-civic .arl-mode-card:hover { transform: translateY(-2px); border-color: #9abcb2; box-shadow: 0 7px 16px rgba(30,77,69,.1); }
body.pmidt-ui.pm-theme-civic .arl-mode-card:focus-visible,
body.pmidt-ui.pm-theme-civic .arl-page .btn:focus-visible,
body.pmidt-ui.pm-theme-civic .arl-page .form-control:focus-visible,
body.pmidt-ui.pm-theme-civic .arl-page .form-select:focus-visible { outline: 3px solid rgba(178,122,44,.35) !important; outline-offset: 2px; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .arl-mode-card.is-active { color: #fff; background: var(--arl-navy); border-color: var(--arl-navy); box-shadow: 0 8px 19px rgba(23,59,66,.18); }
body.pmidt-ui.pm-theme-civic .arl-mode-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--arl-steel); background: #eaf1f3; border: 1px solid #d3e0e3; border-radius: 5px; font-size: .98rem; }
body.pmidt-ui.pm-theme-civic .arl-mode-card.is-active .arl-mode-icon { color: #f0c57b; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
body.pmidt-ui.pm-theme-civic .arl-mode-copy strong,
body.pmidt-ui.pm-theme-civic .arl-mode-copy small { display: block; }
body.pmidt-ui.pm-theme-civic .arl-mode-copy strong { font-size: .73rem; font-weight: 850; line-height: 1.35; }
body.pmidt-ui.pm-theme-civic .arl-mode-copy small { margin-top: .2rem; overflow: hidden; color: var(--arl-muted); font-size: .57rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-mode-card.is-active .arl-mode-copy small { color: #c2d8d3; }
body.pmidt-ui.pm-theme-civic .arl-mode-arrow { color: #8ba09b; font-size: .64rem; }
body.pmidt-ui.pm-theme-civic .arl-mode-card.is-active .arl-mode-arrow { color: #fff; }
body.pmidt-ui.pm-theme-civic .arl-mode-report .arl-mode-icon { color: #865d20; background: #f8efdf; border-color: #ead9ba; }

body.pmidt-ui.pm-theme-civic .arl-command-bar { display: grid; grid-template-columns: minmax(190px,.8fr) minmax(260px,1.2fr) auto; align-items: end; gap: .85rem; margin-bottom: .72rem; padding: .8rem .9rem; background: #fcfbf7; border: 1px solid #dddcd2; border-inline-start: 4px solid var(--arl-steel); border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .arl-command-label { display: flex; align-items: center; gap: .6rem; padding-bottom: .08rem; }
body.pmidt-ui.pm-theme-civic .arl-command-icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; color: var(--arl-steel); background: #e8f0f3; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-command-label strong,
body.pmidt-ui.pm-theme-civic .arl-command-label small { display: block; }
body.pmidt-ui.pm-theme-civic .arl-command-label strong { font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .arl-command-label small { margin-top: .18rem; color: var(--arl-muted); font-size: .56rem; line-height: 1.35; }
body.pmidt-ui.pm-theme-civic .arl-search-field { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .arl-search-field label { margin: 0; color: #40595d; font-size: .64rem; font-weight: 850; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-search-field .form-control { width: 100% !important; min-height: 38px; margin: 0; color: var(--arl-ink); background: #fff; border: 1px solid #cdd9d6; border-radius: 5px; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .arl-command-actions { display: flex; gap: .38rem; }
body.pmidt-ui.pm-theme-civic .arl-command-actions .btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: .42rem .72rem; border-radius: 5px; font-size: .64rem; font-weight: 850; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-find-btn { color: #fff; background: var(--arl-forest); border: 1px solid var(--arl-forest); }
body.pmidt-ui.pm-theme-civic .arl-print-btn { color: var(--arl-navy); background: #eaf1ef; border: 1px solid #bfd1cc; }
body.pmidt-ui.pm-theme-civic .arl-list-btn { color: #744f17; background: #f7ecd9; border: 1px solid #e4cda6; }

body.pmidt-ui.pm-theme-civic .arl-filter-stage:empty { display: none; }
body.pmidt-ui.pm-theme-civic .arl-filter-stage { margin-bottom: .72rem; }
body.pmidt-ui.pm-theme-civic .arl-content-stage { min-height: 455px; overflow: hidden; background: #fff; border: 1px solid var(--arl-line); border-radius: 6px 6px 11px 11px; box-shadow: 0 13px 28px rgba(27,64,60,.08); }
body.pmidt-ui.pm-theme-civic .arl-stage-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .82rem 1rem; background: linear-gradient(90deg,#edf5f1,#fff); border-bottom: 1px solid var(--arl-line); border-inline-start: 5px solid var(--arl-forest); }
body.pmidt-ui.pm-theme-civic .arl-stage-kicker { color: var(--arl-steel); font-size: .56rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-stage-head h2 { margin: .2rem 0 0; color: var(--arl-navy); font-size: 1rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .arl-stage-status { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .55rem; color: #49675e; background: #e9f2ed; border: 1px solid #d0e1d8; border-radius: 5px; font-size: .6rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-stage-status i { color: var(--arl-sage); }
body.pmidt-ui.pm-theme-civic .arl-stage-body { min-height: 386px; padding: .85rem; overflow-x: auto; }
body.pmidt-ui.pm-theme-civic .arl-empty-state,
body.pmidt-ui.pm-theme-civic .arl-loading-state,
body.pmidt-ui.pm-theme-civic .arl-error-state { min-height: 350px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem; text-align: center; background: radial-gradient(circle at center,#f0f6f2 0,transparent 64%); }
body.pmidt-ui.pm-theme-civic .arl-empty-seal { width: 58px; height: 58px; display: grid; place-items: center; color: var(--arl-steel); background: #edf3f3; border: 1px solid #cadbdc; border-radius: 50%; box-shadow: 0 0 0 8px rgba(232,240,238,.55); font-size: 1.25rem; }
body.pmidt-ui.pm-theme-civic .arl-empty-state h3 { margin: 1.1rem 0 .35rem; color: var(--arl-navy); font-size: .91rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .arl-empty-state p { max-width: 580px; margin: 0; color: var(--arl-muted); font-size: .7rem; line-height: 1.65; }
body.pmidt-ui.pm-theme-civic .arl-empty-flow { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; color: #6c817c; font-size: .58rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-empty-flow i { color: #a6b7b2; }
body.pmidt-ui.pm-theme-civic .arl-loading-state { flex-direction: row; gap: .75rem; text-align: start; }
body.pmidt-ui.pm-theme-civic .arl-loader { width: 31px; height: 31px; flex: 0 0 31px; border: 3px solid #d6e3de; border-top-color: var(--arl-forest); border-radius: 50%; animation: arl-spin .75s linear infinite; }
body.pmidt-ui.pm-theme-civic .arl-loading-state strong,
body.pmidt-ui.pm-theme-civic .arl-error-state strong { color: var(--arl-navy); font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .arl-loading-state p,
body.pmidt-ui.pm-theme-civic .arl-error-state p { margin: .24rem 0 0; color: var(--arl-muted); font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .arl-error-state { flex-direction: row; gap: .75rem; color: var(--arl-brick); text-align: start; }
body.pmidt-ui.pm-theme-civic .arl-error-state > i { font-size: 1.55rem; }

body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-shell { margin: 0; padding: .75rem; background: #fbfcf9; border: 1px solid var(--arl-line); border-inline-start: 4px solid var(--arl-amber); border-radius: 6px; box-shadow: 0 6px 14px rgba(31,65,62,.055); }
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .45rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row b,
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row label { color: #40595d; font-size: .63rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .form-control,
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .form-select { min-width: 130px; min-height: 37px; margin: 0 !important; color: var(--arl-ink); background: #fff; border: 1px solid #ccd8d4; border-radius: 5px; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .btn { min-height: 37px; margin: 0; background: var(--arl-forest); border-color: var(--arl-forest); border-radius: 5px; font-size: .66rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-summary-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .55rem; margin-top: .8rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-summary-card { padding: .65rem; text-align: center; background: #f7faf8; border: 1px solid #d7e2dd; border-top: 3px solid var(--arl-steel); border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-summary-label { margin-bottom: .35rem; color: #526b6d; font-size: .63rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-summary-value { width: 100%; padding: .38rem; color: var(--arl-navy); text-align: center; background: #fff; border: 1px solid #d3dfda; border-radius: 4px; font-size: .74rem; font-weight: 850; }

body.pmidt-ui.pm-theme-civic .arl-page .arl-grid,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-grid { row-gap: .75rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-card,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-card { overflow: hidden; border: 1px solid #d5e0db; border-radius: 7px; box-shadow: 0 6px 15px rgba(29,64,60,.07) !important; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-card .card-header,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-card .card-header { padding: .72rem .78rem; border: 0; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-head-primary { color: #fff; background: linear-gradient(110deg,var(--arl-steel),#355f7b); border-inline-start: 5px solid #ddbc7b; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-head-danger { color: #fff; background: linear-gradient(110deg,#85483f,var(--arl-brick)); border-inline-start: 5px solid #d8a966; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-title,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-title { color: #fff; font-size: .83rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-subtitle,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-subtitle { color: #edf3f2; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .arl-page .card-body { padding: .75rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-meta,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-meta { gap: .7rem; margin-bottom: .44rem; padding-bottom: .44rem; border-bottom: 1px dashed #dce5e0; font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-label,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-label { min-width: 112px; color: #47666b; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-value,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-value { color: var(--arl-ink); }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-edit,
body.pmidt-ui.pm-theme-civic .arl-page .arl-readonly-inline { width: 100%; padding: .3rem .4rem; color: var(--arl-ink); background: #f6f9f7; border: 1px solid #d1deda; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-footer { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; padding: .55rem .7rem; background: #f3f7f5; border-top: 1px solid #dce5e1; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-footer .btn { border-radius: 4px; font-size: .63rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-status,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-status { padding: .3rem .48rem; border-radius: 4px; font-size: .57rem; }

body.pmidt-ui.pm-theme-civic .arl-page .table-responsive { border: 1px solid #d7e1dd; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-page .table { min-width: 680px; margin-bottom: 0; color: var(--arl-ink); font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .arl-page .table thead th { padding: .62rem .5rem; color: #fff; background: var(--arl-navy); border-color: rgba(255,255,255,.1); font-size: .64rem; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-page .table tbody td { padding: .52rem .5rem; border-color: #e0e7e3; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .arl-page .table tbody tr:nth-child(even) td { background: #f8faf8; }
body.pmidt-ui.pm-theme-civic .arl-page #gridContainer { min-width: 720px; color: var(--arl-ink); font-family: Tahoma,Arial,system-ui,sans-serif; }
body.pmidt-ui.pm-theme-civic .arl-page .dx-datagrid-headers { color: #fff; background: var(--arl-navy); }
body.pmidt-ui.pm-theme-civic .arl-page .dx-datagrid-headers .dx-datagrid-text-content { color: #fff; font-weight: 800; }

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog),
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; border: 1px solid #bdcec8 !important; border-radius: 8px !important; box-shadow: 0 22px 55px rgba(18,49,52,.27) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-content,
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) .ui-dialog-content { width: 100% !important; max-width: 100% !important; max-height: calc(100vh - 72px) !important; overflow: auto !important; background: #f5f7f3 !important; }
body.pmidt-ui.pm-theme-civic #repoContainer,
body.pmidt-ui.pm-theme-civic #pdfContainer { width: 100%; max-width: 100%; max-height: calc(100vh - 90px); overflow: auto; }
body.pmidt-ui.pm-theme-civic #pdfContainer embed { width: 100% !important; height: calc(100vh - 105px) !important; min-height: 420px; }

@keyframes arl-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
    body.pmidt-ui.pm-theme-civic .arl-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .arl-command-bar { grid-template-columns: 1fr 1.25fr; }
    body.pmidt-ui.pm-theme-civic .arl-command-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 680px) {
    body.pmidt-ui.pm-theme-civic .arl-page { padding: .45rem; border-radius: 9px; }
    body.pmidt-ui.pm-theme-civic .arl-hero { min-height: auto; align-items: flex-start; flex-direction: column; gap: .9rem; padding: 1.05rem; }
    body.pmidt-ui.pm-theme-civic .arl-seal { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .arl-mode-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-mode-card { min-height: 64px; }
    body.pmidt-ui.pm-theme-civic .arl-command-bar { grid-template-columns: 1fr; align-items: stretch; padding: .7rem; }
    body.pmidt-ui.pm-theme-civic .arl-search-field { grid-template-columns: 1fr; gap: .3rem; }
    body.pmidt-ui.pm-theme-civic .arl-command-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-command-actions .arl-find-btn { grid-column: 1 / -1; }
    body.pmidt-ui.pm-theme-civic .arl-stage-head { padding: .7rem; }
    body.pmidt-ui.pm-theme-civic .arl-stage-status { display: none; }
    body.pmidt-ui.pm-theme-civic .arl-stage-body { min-height: 330px; padding: .5rem; }
    body.pmidt-ui.pm-theme-civic .arl-empty-state,
    body.pmidt-ui.pm-theme-civic .arl-loading-state,
    body.pmidt-ui.pm-theme-civic .arl-error-state { min-height: 300px; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .form-control,
    body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .form-select,
    body.pmidt-ui.pm-theme-civic .arl-page .arl-filter-row .btn { width: 100% !important; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-meta,
    body.pmidt-ui.pm-theme-civic .arl-page .arl-from-meta { flex-direction: column; gap: .2rem; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-value,
    body.pmidt-ui.pm-theme-civic .arl-page .arl-from-value { width: 100%; text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .arl-mode-card { transition: none; }
    body.pmidt-ui.pm-theme-civic .arl-loader { animation-duration: 1.8s; }
}

/* AuditReferralLetter production refinement: official docket control room */
body.pmidt-ui.pm-theme-civic .arl-page,
body.pmidt-ui.pm-theme-civic .arl-page * { letter-spacing: 0 !important; }
body.pmidt-ui.pm-theme-civic .arl-page {
    width: 100%; max-width: 1580px; margin: .45rem auto 1.25rem; padding: .65rem;
    color: #263b40; background: #f1f5f5; border: 1px solid #d8e2e1; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.pmidt-ui.pm-theme-civic .arl-masthead {
    min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    position: relative; overflow: hidden; padding: 1rem 1.2rem; color: #fff;
    background: #183f47; border: 1px solid #12343b; border-bottom: 4px solid #bb8230; border-radius: 7px 7px 3px 3px;
    box-shadow: 0 8px 18px rgba(24,63,71,.14);
}
body.pmidt-ui.pm-theme-civic .arl-masthead::after {
    content: "DOCKET"; position: absolute; inset-inline-end: 28%; bottom: -17px; color: rgba(255,255,255,.04);
    font-size: 4.7rem; font-weight: 900; line-height: 1; pointer-events: none;
}
body.pmidt-ui.pm-theme-civic .arl-masthead-copy,
body.pmidt-ui.pm-theme-civic .arl-section-mark { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .arl-eyebrow { display: flex; align-items: center; gap: .4rem; color: #c3ddd8; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-eyebrow i { color: #efc274; }
body.pmidt-ui.pm-theme-civic .arl-masthead h1 { margin: .28rem 0 .18rem; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
body.pmidt-ui.pm-theme-civic .arl-masthead p { margin: 0; color: #d8e7e4; font-size: .75rem; line-height: 1.5; }
body.pmidt-ui.pm-theme-civic .arl-section-mark {
    min-width: 210px; max-width: 290px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: .65rem;
    padding: .55rem .7rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
}
body.pmidt-ui.pm-theme-civic .arl-section-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #f1c477; background: rgba(11,43,48,.35); border: 1px solid rgba(241,196,119,.42); border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-section-mark small,
body.pmidt-ui.pm-theme-civic .arl-section-mark strong { display: block; }
body.pmidt-ui.pm-theme-civic .arl-section-mark small { color: #acd0c9; font-size: .58rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-section-mark strong { margin-top: .14rem; overflow: hidden; color: #fff; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

body.pmidt-ui.pm-theme-civic .arl-routing-instrument { display: grid; grid-template-columns: 175px minmax(0,1fr); margin: .65rem 0; background: #fff; border: 1px solid #ccd9d7; border-radius: 5px; box-shadow: 0 5px 13px rgba(31,70,69,.06); }
body.pmidt-ui.pm-theme-civic .arl-routing-head { display: flex; justify-content: center; flex-direction: column; padding: .7rem .8rem; background: #eef4f3; border-inline-start: 4px solid #b77b28; border-inline-end: 1px solid #d6e1df; }
body.pmidt-ui.pm-theme-civic .arl-routing-head span { display: flex; align-items: center; gap: .4rem; color: #224d51; font-size: .7rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .arl-routing-head span i { color: #a86f20; }
body.pmidt-ui.pm-theme-civic .arl-routing-head small { margin-top: .18rem; color: #687c7e; font-size: .58rem; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card {
    min-width: 0; min-height: 66px; display: grid; grid-template-columns: 26px 34px minmax(0,1fr) 12px; align-items: center; gap: .45rem;
    position: relative; padding: .52rem .58rem; color: #294246; text-align: start; background: #fff; border: 0; border-inline-end: 1px solid #d7e2df; border-radius: 0;
    box-shadow: none; transition: background .15s ease, box-shadow .15s ease;
}
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card:last-child { border-inline-end: 0; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card::after { content: ""; height: 3px; position: absolute; inset-inline: 0; bottom: 0; background: transparent; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card:hover { z-index: 1; transform: none; background: #f0f7f5; border-color: #d7e2df; box-shadow: inset 0 0 0 1px #bad0ca; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card.is-active { z-index: 2; color: #fff; background: #23645b; box-shadow: inset 0 -3px 0 #e0ad59; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card.is-active::after { background: #e0ad59; }
body.pmidt-ui.pm-theme-civic .arl-step-number { color: #a27027; font-size: .57rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .arl-mode-card.is-active .arl-step-number { color: #f2cf91; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-icon { width: 34px; height: 34px; color: #426f88; background: #eaf1f3; border: 1px solid #d3e0e3; border-radius: 4px; font-size: .85rem; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-report .arl-mode-icon { color: #83591d; background: #f8edd9; border-color: #ead4ad; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .is-active .arl-mode-icon { color: #f1c97f; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-copy strong { font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-copy small { margin-top: .12rem; color: #6d7e80; font-size: .57rem; white-space: normal; }
body.pmidt-ui.pm-theme-civic .arl-routing-instrument .is-active .arl-mode-copy small { color: #d2e4df; }

body.pmidt-ui.pm-theme-civic .arl-command-bar { grid-template-columns: minmax(170px,.72fr) minmax(250px,1.25fr) auto; gap: .7rem; margin-bottom: .65rem; padding: .68rem .75rem; background: #f8faf9; border: 1px solid #d3dedc; border-inline-start: 4px solid #477b98; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-command-label strong { color: #27474d; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .arl-command-label small { font-size: .59rem; }
body.pmidt-ui.pm-theme-civic .arl-command-icon { width: 34px; height: 34px; flex-basis: 34px; color: #3d718e; background: #e8f0f4; border: 1px solid #d2dfe4; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .arl-search-field { grid-template-columns: 82px minmax(0,1fr); }
body.pmidt-ui.pm-theme-civic .arl-search-field .form-control { min-height: 39px; border-radius: 4px; font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .arl-command-actions .btn { min-height: 39px; border-radius: 4px; font-size: .66rem; }
body.pmidt-ui.pm-theme-civic .arl-find-btn { background: #23645b; border-color: #23645b; }
body.pmidt-ui.pm-theme-civic .arl-print-btn { color: #315d71; background: #e9f1f4; border-color: #c5d8df; }
body.pmidt-ui.pm-theme-civic .arl-list-btn { color: #714c17; background: #f8eedc; border-color: #e5cfa7; }

body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-fields { display: grid; grid-template-columns: minmax(0,1fr); gap: .65rem; min-width: 0; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-fields:has(#arlInsuranceSearchType:not([hidden])) { grid-template-columns: 130px minmax(0,1fr); }
body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-fields:has(#arlInsuranceSearchType:not([hidden])) .arl-search-field { grid-template-columns: minmax(0,1fr); gap: .25rem; }
body.pmidt-ui.pm-theme-civic .arl-page #arlInsuranceSearchType[hidden],
body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-result[hidden] { display: none; }
body.pmidt-ui.pm-theme-civic .arl-page #arlSearchType { appearance: auto; padding-inline-end: .35rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-result { margin: 0 0 .65rem; padding: .4rem .7rem; border-inline-start: 3px solid var(--arl-amber); color: var(--arl-forest); font-size: .76rem; font-weight: 700; overflow-wrap: anywhere; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-insurance-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .8rem; max-width: 100%; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-insurance-choices .btn { min-height: 39px; max-width: 100%; border-radius: 4px; font-size: .76rem; white-space: normal; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-mode-empty p,
body.pmidt-ui.pm-theme-civic .arl-page .arl-loading-state > div,
body.pmidt-ui.pm-theme-civic .arl-page .arl-error-state > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 680px) {
    body.pmidt-ui.pm-theme-civic .arl-page .arl-lookup-fields:has(#arlInsuranceSearchType:not([hidden])) { grid-template-columns: minmax(0,1fr); }
}

body.pmidt-ui.pm-theme-civic .arl-content-stage { min-height: 420px; border-radius: 5px 5px 8px 8px; box-shadow: 0 9px 20px rgba(28,65,65,.07); }
body.pmidt-ui.pm-theme-civic .arl-stage-head { min-height: 58px; padding: .66rem .82rem; background: #f4f8f7; border-inline-start-color: #23645b; }
body.pmidt-ui.pm-theme-civic .arl-stage-kicker { color: #49778e; font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .arl-stage-head h2 { font-size: .94rem; }
body.pmidt-ui.pm-theme-civic .arl-stage-status { border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .arl-stage-body { min-height: 352px; padding: .7rem; }
body.pmidt-ui.pm-theme-civic .arl-empty-state,
body.pmidt-ui.pm-theme-civic .arl-loading-state,
body.pmidt-ui.pm-theme-civic .arl-error-state { min-height: 325px; background: repeating-linear-gradient(0deg,#fff 0 29px,#edf2f1 29px 30px); }
body.pmidt-ui.pm-theme-civic .arl-empty-seal { width: 52px; height: 52px; color: #477b98; background: #f1f6f7; border-radius: 6px; box-shadow: 0 0 0 6px rgba(232,240,240,.65); }
body.pmidt-ui.pm-theme-civic .arl-empty-state h3 { font-size: .86rem; }

body.pmidt-ui.pm-theme-civic .arl-payment-entry,
body.pmidt-ui.pm-theme-civic .arl-register-section,
body.pmidt-ui.pm-theme-civic .arl-insurance-register,
body.pmidt-ui.pm-theme-civic .arl-report-surface { overflow: hidden; background: #fff; border: 1px solid #d4e0dd; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-register-section { margin-top: .65rem; }
body.pmidt-ui.pm-theme-civic .arl-partial-head,
body.pmidt-ui.pm-theme-civic .arl-register-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .58rem .72rem; background: #f0f6f4; border-bottom: 1px solid #d6e2df; border-inline-start: 4px solid #23645b; }
body.pmidt-ui.pm-theme-civic .arl-partial-head { justify-content: flex-start; }
body.pmidt-ui.pm-theme-civic .arl-partial-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; color: #fff; background: #477b98; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .arl-partial-head small,
body.pmidt-ui.pm-theme-civic .arl-partial-head strong,
body.pmidt-ui.pm-theme-civic .arl-register-head small,
body.pmidt-ui.pm-theme-civic .arl-register-head strong { display: block; }
body.pmidt-ui.pm-theme-civic .arl-partial-head small,
body.pmidt-ui.pm-theme-civic .arl-register-head small { color: #587579; font-size: .57rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .arl-partial-head strong,
body.pmidt-ui.pm-theme-civic .arl-register-head strong { margin-top: .12rem; color: #24474b; font-size: .73rem; }
body.pmidt-ui.pm-theme-civic .arl-partial-note,
body.pmidt-ui.pm-theme-civic .arl-register-state { margin-inline-start: auto; padding: .3rem .42rem; color: #5e6f70; background: #fff; border: 1px solid #d6e1df; border-radius: 4px; font-size: .58rem; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-partial-note i,
body.pmidt-ui.pm-theme-civic .arl-register-state i { margin-inline-end: .25rem; color: #b47926; }
body.pmidt-ui.pm-theme-civic .arl-payment-fields { display: grid; grid-template-columns: 1.05fr .55fr .65fr 1.8fr 1.3fr .7fr .62fr auto; align-items: end; gap: .55rem; padding: .72rem; }
body.pmidt-ui.pm-theme-civic .arl-field { min-width: 0; display: grid; gap: .3rem; margin: 0; color: #405b60; font-size: .63rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-employee-field { min-width: 0; }
body.pmidt-ui.pm-theme-civic .arl-employee-field .arl-field { width: 100%; }
body.pmidt-ui.pm-theme-civic .arl-payment-fields .form-control,
body.pmidt-ui.pm-theme-civic .arl-payment-fields .form-select { width: 100% !important; min-width: 0; min-height: 37px; margin: 0 !important; color: #263b40; background: #fff; border: 1px solid #c8d7d4; border-radius: 4px; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .arl-payment-fields #payreq { border-inline-start: 3px solid #477b98; }
body.pmidt-ui.pm-theme-civic .arl-entry-actions { display: flex; gap: .35rem; }
body.pmidt-ui.pm-theme-civic .arl-entry-actions .btn { min-height: 37px; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .55rem; border-radius: 4px; font-size: .64rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .arl-add-btn { color: #fff; background: #23645b; border-color: #23645b; }
body.pmidt-ui.pm-theme-civic .arl-reset-btn { color: #66501e; background: #f7edd9; border-color: #e5d0a8; }
body.pmidt-ui.pm-theme-civic .arl-table-shell { width: 100%; max-width: 100%; overflow-x: auto; border: 0 !important; border-radius: 0 !important; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-table-shell .table { min-width: 840px; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-table-shell .table thead th { background: #204d54; font-size: .64rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-table-shell .table tbody tr:hover td { background: #edf6f3; }
body.pmidt-ui.pm-theme-civic .arl-insurance-register .arl-table-shell { min-height: 250px; max-height: calc(100vh - 355px); overflow: auto; scrollbar-gutter: stable; }
body.pmidt-ui.pm-theme-civic .arl-insurance-register .arl-table-shell .table { table-layout: auto; }
body.pmidt-ui.pm-theme-civic .arl-insurance-register .arl-table-shell .table thead th { position: sticky; z-index: 2; top: 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.18); }
body.pmidt-ui.pm-theme-civic .arl-insurance-register .arl-table-shell .table tbody td { padding: .42rem .38rem; line-height: 1.35; }
body.pmidt-ui.pm-theme-civic .arl-row-processed td { color: #8e403b; background: #fcf4f2 !important; }
body.pmidt-ui.pm-theme-civic .arl-row-actions { min-width: 205px; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .arl-row-actions .btn { min-height: 30px; margin: .08rem; padding: .28rem .4rem; border-radius: 4px; font-size: .61rem; }
body.pmidt-ui.pm-theme-civic .arl-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .65rem; padding: .65rem .72rem; background: #eaf3ef; border: 1px solid #cedfd8; border-inline-start: 4px solid #23645b; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .arl-save-bar > span { display: flex; align-items: center; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .arl-save-bar > span > i { color: #23645b; font-size: 1rem; }
body.pmidt-ui.pm-theme-civic .arl-save-bar strong,
body.pmidt-ui.pm-theme-civic .arl-save-bar small { display: block; }
body.pmidt-ui.pm-theme-civic .arl-save-bar strong { color: #28584f; font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .arl-save-bar small { margin-top: .1rem; color: #657879; font-size: .58rem; }
body.pmidt-ui.pm-theme-civic .arl-save-btn { min-width: 140px; min-height: 39px; color: #fff; background: #23645b; border-color: #23645b; border-radius: 4px; font-size: .68rem; font-weight: 900; }

body.pmidt-ui.pm-theme-civic .arl-record-register { margin: -.3rem; row-gap: 0; }
body.pmidt-ui.pm-theme-civic .arl-record-register > [class*="col-"] { flex: 0 0 50%; width: 50%; padding: .3rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-record { display: grid; grid-template-columns: 170px minmax(0,1fr); grid-template-rows: 1fr auto; overflow: hidden; background: #fff; border: 1px solid #d2dfdc; border-radius: 5px; box-shadow: 0 4px 11px rgba(31,68,66,.055) !important; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-record .card-header { grid-row: 1 / 3; display: flex; justify-content: flex-start; flex-direction: column; gap: .45rem; padding: .7rem; border: 0; border-inline-start: 4px solid #d6a558; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-head-primary { background: #47758d; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-head-danger { background: #875047; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-record-complete .arl-card-head-danger { background: #386a5b; }
body.pmidt-ui.pm-theme-civic .arl-ref-head-top,
body.pmidt-ui.pm-theme-civic .arl-from-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .35rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-title,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-title { margin: 0; color: #fff; font-size: .77rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-subtitle,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-subtitle { color: #edf5f3; font-size: .62rem; line-height: 1.45; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-status,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-status { padding: .25rem .35rem; border-radius: 4px; font-size: .54rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-record .card-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 0 .7rem; padding: .58rem .68rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-meta,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-meta { display: grid; grid-template-columns: minmax(92px,.7fr) minmax(0,1fr); gap: .35rem; margin: 0; padding: .38rem 0; border-bottom: 1px dashed #dce5e2; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-label,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-label { min-width: 0; color: #4a686d; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-value,
body.pmidt-ui.pm-theme-civic .arl-page .arl-from-value { min-width: 0; overflow-wrap: anywhere; color: #263b40; text-align: start; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-ref-edit { min-height: 30px; padding: .25rem .35rem; background: #f6f9f8; border-radius: 3px; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-footer { min-height: 44px; grid-column: 2; padding: .42rem .62rem; background: #f4f7f6; }
body.pmidt-ui.pm-theme-civic .arl-page .arl-card-footer .btn { min-height: 31px; font-size: .61rem; }
body.pmidt-ui.pm-theme-civic .arl-report-grid { width: 100%; overflow-x: auto; padding: .55rem; }
body.pmidt-ui.pm-theme-civic .arl-report-grid #gridContainer { min-width: 900px; }
body.pmidt-ui.pm-theme-civic .arl-page .dx-datagrid { border: 1px solid #d3dfdc; }
body.pmidt-ui.pm-theme-civic .arl-page .dx-datagrid-headers { background: #204d54; }
body.pmidt-ui.pm-theme-civic .arl-page .dx-toolbar { background: #eef4f3; border-bottom: 1px solid #d2dfdc; }

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-titlebar,
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) .ui-dialog-titlebar { color: #fff; background: #204d54; border: 0; border-radius: 6px 6px 0 0; }

/* Employee permits: compact and consistent ARL sizing across all permit screens */
body.pmidt-ui.pm-theme-civic .permit-page .arl-routing-instrument { margin: .6rem 0 .68rem; }
body.pmidt-ui.pm-theme-civic .permit-page .arl-command-bar { margin-bottom: .62rem; }
body.pmidt-ui.pm-theme-civic .permit-page .arl-content-stage { min-height: auto; }
body.pmidt-ui.pm-theme-civic .permit-page .arl-stage-head { min-height: 52px; padding: .6rem .76rem; }
body.pmidt-ui.pm-theme-civic .permit-page .arl-stage-body { min-height: auto; padding: .66rem .76rem; }
body.pmidt-ui.pm-theme-civic .permit-page .table td,
body.pmidt-ui.pm-theme-civic .permit-page .table th { vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .permit-page .btn { min-height: 36px; }
body.pmidt-ui.pm-theme-civic .permit-page .btn.btn-sm { min-height: 30px; }

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .permit-page .arl-stage-head { min-height: auto; }
    body.pmidt-ui.pm-theme-civic .permit-page .arl-stage-body { padding: .6rem; }
}

@media (max-width: 1180px) {
    body.pmidt-ui.pm-theme-civic .arl-payment-fields { grid-template-columns: repeat(4,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .arl-field-description { grid-column: span 2; }
    body.pmidt-ui.pm-theme-civic .arl-entry-actions { justify-content: flex-end; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-record { grid-template-columns: 150px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-record .card-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-routing-head { min-height: 46px; border-inline-end: 0; border-bottom: 1px solid #d6e1df; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card:nth-child(2) { border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card:nth-child(-n+2) { border-bottom: 1px solid #d7e2df; }
    body.pmidt-ui.pm-theme-civic .arl-record-register > [class*="col-"] { flex-basis: 100%; width: 100%; }
}
@media (max-width: 680px) {
    body.pmidt-ui.pm-theme-civic .arl-page { margin-top: .2rem; padding: .35rem; }
    body.pmidt-ui.pm-theme-civic .arl-masthead { min-height: auto; align-items: flex-start; flex-direction: column; gap: .7rem; padding: .82rem; }
    body.pmidt-ui.pm-theme-civic .arl-masthead h1 { font-size: 1.18rem; }
    body.pmidt-ui.pm-theme-civic .arl-section-mark { width: 100%; max-width: none; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card { min-height: 62px; grid-template-columns: 23px 32px minmax(0,1fr) 10px; padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-icon { width: 32px; height: 32px; }
    body.pmidt-ui.pm-theme-civic .arl-command-bar { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-search-field { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-command-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .arl-command-actions .arl-find-btn { grid-column: 1 / -1; }
    body.pmidt-ui.pm-theme-civic .arl-stage-status { display: inline-flex; }
    body.pmidt-ui.pm-theme-civic .arl-payment-fields { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .arl-field-description,
    body.pmidt-ui.pm-theme-civic .arl-employee-field { grid-column: 1 / -1; }
    body.pmidt-ui.pm-theme-civic .arl-entry-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-entry-actions .btn { justify-content: center; }
    body.pmidt-ui.pm-theme-civic .arl-partial-note { display: none; }
    body.pmidt-ui.pm-theme-civic .arl-save-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .arl-save-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-record { grid-template-columns: 1fr; grid-template-rows: auto; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-record .card-header { grid-row: auto; border-inline-start: 0; border-top: 4px solid #d6a558; }
    body.pmidt-ui.pm-theme-civic .arl-page .arl-record .card-footer { grid-column: 1; }
}
@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card { border-inline-end: 0; border-bottom: 1px solid #d7e2df; }
    body.pmidt-ui.pm-theme-civic .arl-routing-instrument .arl-mode-card:last-child { border-bottom: 0; }
    body.pmidt-ui.pm-theme-civic .arl-stage-head { align-items: flex-start; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .arl-payment-fields { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .arl-payment-fields > * { grid-column: 1 !important; }
}
@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .arl-page *,
    body.pmidt-ui.pm-theme-civic .arl-page *::before,
    body.pmidt-ui.pm-theme-civic .arl-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Relateves family: authoritative routing and flat civic action palette */
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) :is(.btn-primary,.btn-success) {
    color: #fff !important;
    background: #23645b !important;
    border-color: #1c554d !important;
    border-radius: 5px;
    box-shadow: none !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) :is(.btn-primary,.btn-success):hover:not(:disabled) {
    color: #fff !important;
    background: #194f48 !important;
    border-color: #15443e !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .btn-warning {
    color: #50380f !important;
    background: #e2b861 !important;
    border-color: #c6963e !important;
    border-radius: 5px;
    box-shadow: none !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .btn-warning:hover:not(:disabled) {
    color: #3d2a0b !important;
    background: #d4a74c !important;
    border-color: #b7832f !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .btn-danger {
    color: #fff !important;
    background: #984b42 !important;
    border-color: #813d36 !important;
    border-radius: 5px;
    box-shadow: none !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .btn-danger:hover:not(:disabled) {
    color: #fff !important;
    background: #7f3c35 !important;
    border-color: #6d332d !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) :is(.btn-primary,.btn-success,.btn-warning,.btn-danger):focus-visible {
    outline: 3px solid rgba(183,123,40,.38) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) :is(.btn-primary,.btn-success,.btn-warning,.btn-danger):disabled,
body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) :is(.btn-primary,.btn-success,.btn-warning,.btn-danger).disabled {
    opacity: .55;
    box-shadow: none !important;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-head { border-inline-end: 0; border-bottom: 1px solid #d6e1df; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-card { border-inline-end: 1px solid #d7e2df; border-bottom: 0; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-card:nth-child(2n) { border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-card:nth-child(-n+2) { border-bottom: 1px solid #d7e2df; }
}
@media (max-width: 700px) {
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-card { border-inline-end: 0; border-bottom: 1px solid #d7e2df; }
    body.pmidt-ui.pm-theme-civic :is(.relatives-page,.rmw-page,.raw-page,.ros-page) .arl-routing-instrument .arl-mode-card:last-child { border-bottom: 0; }
}

/* ========================================================================== 
   Sick Leave administration workspace — scoped redesign
   ========================================================================== */
body.pmidt-ui.pm-theme-civic .sickleave-page {
    --sl-forest: #184f49;
    --sl-teal: #256c67;
    --sl-blue: #547786;
    --sl-amber: #b47b26;
    --sl-ink: #263c40;
    --sl-muted: #617578;
    --sl-line: #d6e2df;
    --sl-canvas: #f3f7f4;
    width: 100%; margin: .75rem 0 1.5rem; padding: .8rem; direction: rtl;
    color: var(--sl-ink); background: linear-gradient(145deg,#f8f5ec 0,#eef6f3 48%,#f1f5f7 100%);
    border: 1px solid #dce6e2; border-radius: 12px; font-family: Tahoma,Arial,system-ui,sans-serif;
}
body.pmidt-ui.pm-theme-civic .sickleave-ops-header {
    min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.45rem 1.65rem; position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(112deg,#153f3b 0%,#205d57 66%,#315f65 100%); border-radius: 9px 9px 4px 4px;
    box-shadow: 0 13px 30px rgba(24,79,73,.17);
}
body.pmidt-ui.pm-theme-civic .sickleave-ops-header::after { content: ""; width: 220px; height: 220px; position: absolute; inset-block-start: -110px; inset-inline-end: 40%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025),0 0 0 72px rgba(255,255,255,.02); pointer-events: none; }
body.pmidt-ui.pm-theme-civic .sickleave-title-block { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .sickleave-eyebrow { display: inline-flex; align-items: center; gap: .45rem; color: #bcd8d1; font-size: .62rem; font-weight: 800; letter-spacing: .07em; }
body.pmidt-ui.pm-theme-civic .sickleave-title-block h1 { margin: .4rem 0 .35rem; color: #fff; font-size: 1.48rem; font-weight: 900; line-height: 1.3; }
body.pmidt-ui.pm-theme-civic .sickleave-title-block p { max-width: 660px; margin: 0; color: #d5e4e0; font-size: .77rem; line-height: 1.7; }
body.pmidt-ui.pm-theme-civic .sickleave-safe-status { min-width: 185px; display: grid; grid-template-columns: 9px 1fr 30px; align-items: center; gap: .65rem; padding: .7rem .8rem; position: relative; z-index: 1; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.17); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .sickleave-status-dot { width: 8px; height: 8px; background: #79c9a4; border-radius: 50%; box-shadow: 0 0 0 4px rgba(121,201,164,.12); }
body.pmidt-ui.pm-theme-civic .sickleave-safe-status strong, body.pmidt-ui.pm-theme-civic .sickleave-safe-status small { display: block; }
body.pmidt-ui.pm-theme-civic .sickleave-safe-status strong { color: #fff; font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .sickleave-safe-status small { margin-top: .15rem; color: #bcd1cc; font-size: .58rem; }
body.pmidt-ui.pm-theme-civic .sickleave-safe-status > i { color: #d7b56f; font-size: 1.1rem; text-align: center; }

body.pmidt-ui.pm-theme-civic .sickleave-progress { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 1rem; margin: .65rem 0; padding: .55rem 1rem; background: rgba(255,255,255,.86); border: 1px solid var(--sl-line); border-inline-start: 5px solid var(--sl-blue); }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step { min-width: 155px; display: grid; grid-template-columns: 28px 20px 1fr; align-items: center; column-gap: .4rem; color: var(--sl-muted); }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step > span { width: 28px; height: 28px; display: grid; place-items: center; color: #6d8285; background: #edf2f1; border: 1px solid #d9e3e0; border-radius: 50%; font-size: .57rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step > i { color: #789296; font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step strong, body.pmidt-ui.pm-theme-civic .sickleave-progress-step small { display: block; grid-column: 3; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step strong { align-self: end; color: var(--sl-ink); font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step small { align-self: start; margin-top: .1rem; font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step.is-current > span { color: #fff; background: var(--sl-teal); border-color: var(--sl-teal); box-shadow: 0 0 0 4px #e4f0ec; }
body.pmidt-ui.pm-theme-civic .sickleave-progress-step.is-current > i { color: var(--sl-teal); }
body.pmidt-ui.pm-theme-civic .sickleave-progress-arrow { color: #9cb0ad; font-size: .65rem; }

body.pmidt-ui.pm-theme-civic .sickleave-creation-card, body.pmidt-ui.pm-theme-civic .sickleave-registry-card { overflow: hidden; background: #fff; border: 1px solid var(--sl-line); box-shadow: 0 10px 25px rgba(27,72,68,.07); }
body.pmidt-ui.pm-theme-civic .sickleave-creation-card { border-radius: 8px 8px 4px 4px; }
body.pmidt-ui.pm-theme-civic .sickleave-registry-card { margin-top: .75rem; border-radius: 4px 4px 9px 9px; }
body.pmidt-ui.pm-theme-civic .sickleave-section-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: linear-gradient(90deg,#f1f8f5,#fff); border-bottom: 1px solid var(--sl-line); border-inline-start: 5px solid var(--sl-teal); }
body.pmidt-ui.pm-theme-civic .sickleave-records-head { border-inline-start-color: var(--sl-blue); background: linear-gradient(90deg,#f1f5f7,#fff); }
body.pmidt-ui.pm-theme-civic .sickleave-section-heading { display: flex; align-items: center; gap: .7rem; }
body.pmidt-ui.pm-theme-civic .sickleave-section-icon { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; color: #fff; background: var(--sl-teal); border-radius: 7px; box-shadow: 0 5px 12px rgba(37,108,103,.16); }
body.pmidt-ui.pm-theme-civic .sickleave-records-head .sickleave-section-icon { background: var(--sl-blue); }
body.pmidt-ui.pm-theme-civic .sickleave-section-heading small { color: var(--sl-teal); font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
body.pmidt-ui.pm-theme-civic .sickleave-section-heading h2 { margin: .08rem 0; color: var(--sl-ink); font-size: .91rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .sickleave-section-heading p { margin: 0; color: var(--sl-muted); font-size: .63rem; }
body.pmidt-ui.pm-theme-civic .sickleave-section-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .58rem; color: #496965; background: #eaf3ef; border: 1px solid #d2e2dc; border-radius: 5px; font-size: .61rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-grid-status { color: #4f6973; background: #eef3f5; border-color: #d5e0e4; }
body.pmidt-ui.pm-theme-civic .sickleave-creation-body { padding: 1rem; }
body.pmidt-ui.pm-theme-civic .sickleave-search-row { display: grid; grid-template-columns: minmax(250px,420px) auto; align-items: end; gap: .7rem; padding: .8rem; background: #f6f9f7; border: 1px solid #dae5e1; border-inline-start: 4px solid var(--sl-blue); border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .sickleave-search-field { display: grid; gap: .32rem; margin: 0; color: var(--sl-ink); font-size: .69rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-search-field em { margin-inline-start: .35rem; color: #7b8d90; font-size: .55rem; font-style: normal; font-weight: 500; }
body.pmidt-ui.pm-theme-civic .sickleave-input-wrap { position: relative; }
body.pmidt-ui.pm-theme-civic .sickleave-input-wrap > i { position: absolute; z-index: 1; inset-inline-start: .75rem; top: 50%; color: var(--sl-blue); transform: translateY(-50%); }
body.pmidt-ui.pm-theme-civic .sickleave-input-wrap .form-control { padding-inline-start: 2.15rem !important; }
body.pmidt-ui.pm-theme-civic .sickleave-search-field > small { color: #6a7d80; font-size: .59rem; font-weight: 500; }
body.pmidt-ui.pm-theme-civic .sickleave-search-field > small i { margin-inline-end: .25rem; color: var(--sl-amber); transform: rotate(90deg); }
body.pmidt-ui.pm-theme-civic .sickleave-page .form-control { width: 100% !important; min-width: 0; min-height: 39px; margin: 0 !important; color: var(--sl-ink); background: #fff; border: 1px solid #cbdad6; border-radius: 5px; font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .sickleave-page .form-control:focus { border-color: var(--sl-teal); box-shadow: 0 0 0 3px rgba(37,108,103,.14); }
body.pmidt-ui.pm-theme-civic .sickleave-page .form-control[readonly] { color: #506467; background: #f1f4f3; }
body.pmidt-ui.pm-theme-civic .sickleave-page button:focus-visible, body.pmidt-ui.pm-theme-civic .sickleave-page .form-control:focus-visible { outline: 3px solid rgba(180,123,38,.35); outline-offset: 2px; }
body.pmidt-ui.pm-theme-civic .sickleave-reset-btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .8rem; color: #6a531e; background: #f7edda; border: 1px solid #e5d3ae; border-radius: 5px; font-size: .67rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-reset-btn:hover { color: #584313; background: #f0dfbd; }
body.pmidt-ui.pm-theme-civic .sickleave-form-zone { margin-top: .75rem; padding: .8rem; background: #fff; border: 1px solid var(--sl-line); border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .sickleave-zone-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; padding-bottom: .55rem; color: var(--sl-teal); border-bottom: 1px dashed #d7e2df; }
body.pmidt-ui.pm-theme-civic .sickleave-zone-label > i { width: 29px; height: 29px; display: grid; place-items: center; background: #e9f3ef; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .sickleave-zone-label strong, body.pmidt-ui.pm-theme-civic .sickleave-zone-label small { display: block; }
body.pmidt-ui.pm-theme-civic .sickleave-zone-label strong { color: var(--sl-ink); font-size: .71rem; }
body.pmidt-ui.pm-theme-civic .sickleave-zone-label small { margin-top: .1rem; color: var(--sl-muted); font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .sickleave-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr .55fr 1fr 1fr; align-items: end; gap: .65rem; }
body.pmidt-ui.pm-theme-civic .sickleave-field { min-width: 0; display: grid; gap: .35rem; margin: 0; color: #435d60; font-size: .67rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-field > span i { width: 17px; color: var(--sl-blue); }
body.pmidt-ui.pm-theme-civic .sickleave-field-date > span i { color: var(--sl-amber); }
body.pmidt-ui.pm-theme-civic .sickleave-field-end .form-control { color: #72541c; background: #faf4e7; border-color: #e7d5b3; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding: .7rem .8rem; background: #edf5f1; border: 1px solid #d4e3dc; border-inline-start: 4px solid var(--sl-teal); border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar > div { display: flex; align-items: center; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar > div > i { color: var(--sl-teal); font-size: 1rem; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar strong, body.pmidt-ui.pm-theme-civic .sickleave-save-bar small { display: block; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar strong { color: var(--sl-forest); font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .sickleave-save-bar small { margin-top: .1rem; color: var(--sl-muted); font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .sickleave-save-btn { min-width: 140px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: #fff; background: var(--sl-teal); border: 1px solid var(--sl-teal); border-radius: 5px; font-size: .71rem; font-weight: 900; box-shadow: 0 6px 13px rgba(37,108,103,.17); }
body.pmidt-ui.pm-theme-civic .sickleave-save-btn:hover { color: #fff; background: var(--sl-forest); border-color: var(--sl-forest); transform: translateY(-1px); }
body.pmidt-ui.pm-theme-civic .sickleave-grid-shell { max-width: 100%; padding: .75rem; overflow-x: auto; background: #f8faf9; }
body.pmidt-ui.pm-theme-civic .sickleave-register { min-width: 0; color: var(--sl-ink); background: #fff; border: 1px solid #d7e2df; }
body.pmidt-ui.pm-theme-civic .sickleave-register.is-loading { opacity: .58; pointer-events: none; }
body.pmidt-ui.pm-theme-civic .sickleave-register-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); align-items: end; gap: .65rem; padding: .65rem; background: #eef4f2; border-bottom: 1px solid #d3e0dc; }
body.pmidt-ui.pm-theme-civic .sickleave-filter-field { min-width: 0; display: grid; gap: .27rem; margin: 0; color: #38565a; font-size: .67rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-filter-field input, body.pmidt-ui.pm-theme-civic .sickleave-filter-field select { width: 100%; min-width: 0; min-height: 38px; padding: .45rem; color: var(--sl-ink); background: #fff; border: 1px solid #c7d8d3; border-radius: 4px; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-toolbar { min-height: 62px; display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; padding: .65rem; background: #eef4f2; border-bottom: 1px solid #d3e0dc; }
body.pmidt-ui.pm-theme-civic .sickleave-register-search { min-width: 0; display: grid; gap: .27rem; margin: 0; color: #38565a; font-size: .67rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-register-search > span:last-child { position: relative; }
body.pmidt-ui.pm-theme-civic .sickleave-register-search i { position: absolute; inset-inline-start: .7rem; top: 50%; color: var(--sl-blue); transform: translateY(-50%); }
body.pmidt-ui.pm-theme-civic .sickleave-register-search input { width: 100%; min-height: 38px; padding: .45rem 2rem .45rem .7rem; color: var(--sl-ink); background: #fff; border: 1px solid #c7d8d3; border-radius: 4px; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-clear, body.pmidt-ui.pm-theme-civic .sickleave-export-btn,
body.pmidt-ui.pm-theme-civic .sickleave-register-pager button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .42rem .7rem; border: 1px solid #c7d8d3; border-radius: 4px; font-size: .67rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-register-clear { width: 38px; padding: 0; color: #6f7f81; background: #fff; }
body.pmidt-ui.pm-theme-civic .sickleave-export-btn { color: #fff; background: #397c92; border-color: #397c92; }
body.pmidt-ui.pm-theme-civic .sickleave-page-size { display: grid; gap: .27rem; margin: 0; color: #4b6265; font-size: .62rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-page-size select { min-width: 72px; min-height: 38px; padding: .35rem; background: #fff; border: 1px solid #c7d8d3; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .sickleave-register-count { min-height: 38px; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; color: #536b6e; background: #f8fbfa; border: 1px solid #d7e2df; border-radius: 4px; font-size: .64rem; font-weight: 800; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table-wrap { max-height: 440px; overflow: auto; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table { width: 100%; min-width: 1420px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table th { position: sticky; z-index: 3; top: 0; padding: 0; color: #fff; background: var(--sl-forest); border-inline-end: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table th > button { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .55rem .48rem; color: inherit; background: transparent; border: 0; font: inherit; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table .sickleave-static-head { padding: .55rem .48rem; text-align: center; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table th button[aria-sort="ascending"] i::before { content: "\f0de"; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table th button[aria-sort="descending"] i::before { content: "\f0dd"; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table td { padding: .5rem .48rem; color: #3d5559; background: #fff; border-inline-end: 1px solid #e4ebe8; border-bottom: 1px solid #e0e9e6; text-align: center; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table tbody tr:nth-child(even) td { background: #f7faf8; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table tbody tr:hover td { background: #eaf4f0; }
body.pmidt-ui.pm-theme-civic .sickleave-native-table .sickleave-actions-head,
body.pmidt-ui.pm-theme-civic .sickleave-native-table .sickleave-row-actions { position: sticky; z-index: 4; inset-inline-end: 0; min-width: 92px; box-shadow: -5px 0 10px rgba(27,72,68,.08); }
body.pmidt-ui.pm-theme-civic .sickleave-record-id { color: #397c92; }
body.pmidt-ui.pm-theme-civic .sickleave-employee-code { direction: ltr; display: inline-block; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-type-badge, body.pmidt-ui.pm-theme-civic .sickleave-status-badge { display: inline-flex; padding: .27rem .42rem; color: #285d56; background: #e7f2ee; border: 1px solid #cce0d9; border-radius: 4px; font-size: .64rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .sickleave-status-badge { color: #4d6470; background: #edf3f5; border-color: #d5e1e5; }
body.pmidt-ui.pm-theme-civic .sickleave-note { max-width: 180px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .sickleave-row-actions { display: table-cell; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .sickleave-row-actions button { width: 34px; height: 34px; margin: 0 .1rem; border: 1px solid #cbdcd7; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .sickleave-row-actions [data-sickleave-edit] { color: #286b61; background: #e8f3ef; }
body.pmidt-ui.pm-theme-civic .sickleave-row-actions [data-sickleave-delete] { color: #9a4c45; background: #f8ecea; border-color: #e7cbc7; }
body.pmidt-ui.pm-theme-civic .sickleave-register-empty { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .35rem; color: #708286; }
body.pmidt-ui.pm-theme-civic .sickleave-register-empty i { color: #7da1a6; font-size: 1.5rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-empty strong { color: #334f53; font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-empty span { font-size: .66rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-pager { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .7rem; padding: .55rem; color: #576d70; background: #f4f7f6; border-top: 1px solid #dde6e3; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .sickleave-register-pager button { color: #315d59; background: #fff; }
body.pmidt-ui.pm-theme-civic .sickleave-register-pager button:disabled { opacity: .45; cursor: not-allowed; }

body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog { width: min(760px,calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; color: var(--sl-ink); background: #f7faf9; border: 1px solid #bad0ca; border-radius: 7px; box-shadow: 0 25px 70px rgba(19,55,55,.28); }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog::backdrop { background: rgba(18,45,49,.55); }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell { margin: 0; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell > header { display: grid; grid-template-columns: 36px minmax(0,1fr) 34px; align-items: center; gap: .55rem; padding: .7rem .8rem; color: #fff; background: #183f47; border-bottom: 3px solid #bb8230; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-mark { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header small, body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header strong, body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header em { display: block; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header small { color: #bcd8d1; font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header strong { font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header em { margin-top: .12rem; color: #d5e4e0; font-size: .62rem; font-style: normal; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell header button { width: 34px; height: 34px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; padding: .85rem; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-grid label { min-width: 0; display: grid; gap: .3rem; margin: 0; color: #3d595d; font-size: .68rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-grid input, body.pmidt-ui.pm-theme-civic .sickleave-edit-grid select, body.pmidt-ui.pm-theme-civic .sickleave-edit-grid textarea { width: 100%; min-height: 39px; padding: .45rem .55rem; color: #263d42; background: #fff; border: 1px solid #c7d9d4; border-radius: 4px; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-note { grid-column: 1 / -1; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell > footer { display: flex; justify-content: flex-end; gap: .45rem; padding: .65rem .85rem; background: #edf4f2; border-top: 1px solid #d5e3df; }
body.pmidt-ui.pm-theme-civic .sickleave-edit-dialog-shell > footer button { min-width: 100px; min-height: 39px; border-radius: 4px; font-size: .69rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .sickleave-dialog-cancel { color: #586d70; background: #fff; border: 1px solid #cbd9d6; }
body.pmidt-ui.pm-theme-civic .sickleave-dialog-save { color: #fff; background: #23645b; border: 1px solid #23645b; }

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .sickleave-detail-grid { grid-template-columns: 1.5fr 1fr .6fr; }
    body.pmidt-ui.pm-theme-civic .sickleave-field-date { grid-column: span 1; }
    body.pmidt-ui.pm-theme-civic .sickleave-field-end { grid-column: span 2; }
}
@media (max-width: 640px) {
    body.pmidt-ui.pm-theme-civic .sickleave-page { margin: .35rem 0 1rem; padding: .4rem; border-radius: 8px; }
    body.pmidt-ui.pm-theme-civic .sickleave-ops-header { min-height: auto; align-items: flex-start; flex-direction: column; padding: 1rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-title-block h1 { font-size: 1.2rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-safe-status { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .sickleave-progress { justify-content: space-between; gap: .3rem; overflow-x: auto; padding: .5rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-progress-step { min-width: 83px; grid-template-columns: 24px 1fr; column-gap: .3rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-progress-step > span { width: 24px; height: 24px; }
    body.pmidt-ui.pm-theme-civic .sickleave-progress-step > i { display: none; }
    body.pmidt-ui.pm-theme-civic .sickleave-progress-step strong, body.pmidt-ui.pm-theme-civic .sickleave-progress-step small { grid-column: 2; }
    body.pmidt-ui.pm-theme-civic .sickleave-section-head { align-items: flex-start; padding: .7rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-section-chip { display: none; }
    body.pmidt-ui.pm-theme-civic .sickleave-creation-body { padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-search-row { grid-template-columns: 1fr; padding: .65rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-reset-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .sickleave-detail-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .sickleave-field, body.pmidt-ui.pm-theme-civic .sickleave-field-date, body.pmidt-ui.pm-theme-civic .sickleave-field-end { grid-column: 1; }
    body.pmidt-ui.pm-theme-civic .sickleave-save-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .sickleave-save-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .sickleave-grid-shell { padding: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .sickleave-page *, body.pmidt-ui.pm-theme-civic .sickleave-page *::before, body.pmidt-ui.pm-theme-civic .sickleave-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Sickleave shell aligned with the AuditReferralLetter docket. */
body.pmidt-ui.pm-theme-civic .sickleave-page.arl-page {
    width: 100%; max-width: 1580px; margin: .45rem auto 1.25rem; padding: .65rem;
    color: var(--arl-ink); background: #f1f5f5; border: 1px solid #d8e2e1; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-ops-header.arl-masthead {
    min-height: 94px; padding: 1rem 1.2rem; color: #fff; background: #183f47;
    border: 1px solid #12343b; border-bottom: 4px solid #bb8230; border-radius: 7px 7px 3px 3px;
    box-shadow: 0 8px 18px rgba(24,63,71,.14);
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-ops-header.arl-masthead::after {
    content: "LEAVE"; width: auto; height: auto; inset-block-start: auto; inset-inline-end: 30%; bottom: -17px;
    color: rgba(255,255,255,.04); border: 0; border-radius: 0; box-shadow: none;
    font-size: 4.7rem; font-weight: 900; line-height: 1;
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-eyebrow.arl-eyebrow { margin: 0; color: #c3ddd8; font-size: .66rem; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-title-block h1 { margin: .28rem 0 .18rem; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-title-block p { margin: 0; color: #d8e7e4; font-size: .75rem; line-height: 1.5; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-safe-status.arl-section-mark {
    min-width: 210px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .65rem;
    padding: .55rem .7rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
}

body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress.arl-routing-instrument {
    min-height: 0; display: grid; grid-template-columns: 175px minmax(0,1fr); align-items: stretch; justify-content: stretch;
    gap: 0; margin: .65rem 0; padding: 0; background: #fff; border: 1px solid #ccd9d7; border-inline-start: 1px solid #ccd9d7;
    border-radius: 5px; box-shadow: 0 5px 13px rgba(31,70,69,.06);
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress .arl-routing-head {
    display: flex; justify-content: center; flex-direction: column; padding: .7rem .8rem;
    background: #eef4f3; border-inline-start: 4px solid #b77b28; border-inline-end: 1px solid #d6e1df;
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card {
    min-width: 0; min-height: 66px; display: grid; grid-template-columns: 26px 34px minmax(0,1fr) 12px;
    align-items: center; gap: .45rem; padding: .52rem .58rem; color: #52696c; background: #fff;
    border: 0; border-inline-end: 1px solid #d7e2df; border-radius: 0; box-shadow: none;
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card:last-child { border-inline-end: 0; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card.is-current { color: #fff; background: #23645b; box-shadow: inset 0 -3px 0 #e0ad59; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-step-number {
    width: 26px; height: 26px; display: grid; place-items: center; color: inherit; background: rgba(255,255,255,.08); border: 1px solid currentColor; border-radius: 4px; font-size: .58rem;
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-icon {
    width: 34px; height: 34px; display: grid; place-items: center; color: inherit; background: #edf4f2; border: 1px solid #d7e3df; border-radius: 4px; font-size: .85rem;
}
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card.is-current > .arl-mode-icon { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-copy { width: auto; height: auto; display: block; color: inherit; background: transparent; border: 0; border-radius: 0; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-copy strong,
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-copy small { display: block; grid-column: auto; color: inherit; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-copy strong { font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-copy small { margin-top: .12rem; font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-arrow { display: inline-block; padding: 0; color: #8ba09d; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card.is-current > .arl-mode-arrow { color: #d7e8e4; }

body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-creation-card.arl-content-stage,
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-registry-card.arl-content-stage { border: 1px solid var(--arl-line); border-radius: 5px 5px 8px 8px; box-shadow: 0 9px 20px rgba(28,65,65,.07); }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-section-head.arl-stage-head { min-height: 62px; padding: .66rem .82rem; background: #f4f8f7; border-inline-start-color: #23645b; }
body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-records-head.arl-stage-head { border-inline-start-color: #397c92; }

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .sickleave-register-toolbar { grid-template-columns: minmax(220px,1fr) 38px auto; }
    body.pmidt-ui.pm-theme-civic .sickleave-export-btn, body.pmidt-ui.pm-theme-civic .sickleave-register-count { grid-row: 2; }
}
@media (max-width: 640px) {
    body.pmidt-ui.pm-theme-civic .sickleave-page.arl-page { margin-top: .2rem; padding: .35rem; border-radius: 8px; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-ops-header.arl-masthead { min-height: auto; gap: .7rem; padding: .82rem; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-safe-status.arl-section-mark { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress.arl-routing-instrument { grid-template-columns: 1fr; overflow: visible; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress .arl-routing-head { min-height: 46px; border-inline-end: 0; border-bottom: 1px solid #d6e1df; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card { min-width: 0; grid-template-columns: 26px 34px minmax(0,1fr) 12px; border-inline-end: 0; border-bottom: 1px solid #d7e2df; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card:last-child { border-bottom: 0; }
    body.pmidt-ui.pm-theme-civic .sickleave-page .sickleave-progress-step.arl-mode-card > .arl-mode-icon { display: grid; }
    body.pmidt-ui.pm-theme-civic .sickleave-register-toolbar { grid-template-columns: minmax(0,1fr) 38px; align-items: end; }
    body.pmidt-ui.pm-theme-civic .sickleave-page-size, body.pmidt-ui.pm-theme-civic .sickleave-export-btn, body.pmidt-ui.pm-theme-civic .sickleave-register-count { grid-column: 1 / -1; grid-row: auto; }
    body.pmidt-ui.pm-theme-civic .sickleave-export-btn, body.pmidt-ui.pm-theme-civic .sickleave-register-count { width: 100%; }
    body.pmidt-ui.pm-theme-civic .sickleave-edit-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .sickleave-edit-note { grid-column: auto; }
}

/* ============================================================
   Patient Visit — calm clinical consultation workspace
   ============================================================ */
body.pmidt-ui.pm-theme-civic .patient-visit-page {
    --pv-forest: #174f4b; --pv-teal: #236d69; --pv-blue: #397c92; --pv-mist: #edf6f4;
    --pv-ivory: #fbfaf6; --pv-line: #d6e3df; --pv-ink: #263d42; --pv-muted: #667a7d;
    --pv-amber: #b47b2a; margin: .65rem 0 1.25rem; padding: .75rem; color: var(--pv-ink);
    background: linear-gradient(145deg,#fbfaf5 0%,#f0f7f6 48%,#edf5f7 100%); border: 1px solid #dde8e4;
    border-radius: 12px; font-family: Tahoma,Arial,system-ui,sans-serif;
}
body.pmidt-ui.pm-theme-civic .patient-visit-ops-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1.15rem 1.35rem; color: #fff; background: linear-gradient(112deg,#123f3c,#1b5b57 62%,#2f7482); border-radius: 9px 9px 3px 3px; box-shadow: 0 12px 28px rgba(24,73,70,.18); position: relative; overflow: hidden; }
body.pmidt-ui.pm-theme-civic .patient-visit-ops-header::after { content: "+"; position: absolute; inset-inline-end: 29%; top: -38px; color: rgba(255,255,255,.055); font-size: 9rem; font-weight: 300; transform: rotate(12deg); }
body.pmidt-ui.pm-theme-civic .patient-visit-title-block { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .patient-visit-eyebrow { display: block; margin-bottom: .38rem; color: #b9ddda; font-size: .61rem; font-weight: 900; letter-spacing: .11em; }
body.pmidt-ui.pm-theme-civic .patient-visit-eyebrow i { margin-inline-end: .35rem; color: #e5ba6b; }
body.pmidt-ui.pm-theme-civic .patient-visit-page #titles { margin: 0; color: #fff !important; font-size: 1.58rem !important; font-weight: 850; letter-spacing: -.02em; }
body.pmidt-ui.pm-theme-civic .patient-visit-title-block p { max-width: 650px; margin: .36rem 0 0; color: #d5e7e5; font-size: .72rem; line-height: 1.6; }
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status { min-width: 188px; display: grid; grid-template-columns: 9px 1fr 26px; align-items: center; gap: .65rem; padding: .62rem .72rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .patient-visit-status-dot { width: 8px; height: 8px; background: #78d3aa; border-radius: 50%; box-shadow: 0 0 0 4px rgba(120,211,170,.12); }
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status strong, body.pmidt-ui.pm-theme-civic .patient-visit-safe-status small { display: block; }
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status strong { font-size: .69rem; } body.pmidt-ui.pm-theme-civic .patient-visit-safe-status small { margin-top: .14rem; color: #c5dbd9; font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status > i { color: #dfb568; font-size: 1rem; }

body.pmidt-ui.pm-theme-civic .patient-visit-progress { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; padding: .72rem 1rem; background: #fff; border: 1px solid var(--pv-line); border-top: 0; box-shadow: 0 7px 18px rgba(37,74,72,.055); }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step { min-width: 0; display: grid; grid-template-columns: 26px 22px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: .35rem; color: var(--pv-muted); }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step > span { width: 25px; height: 25px; grid-row: 1 / 3; display: grid; place-items: center; color: #557274; background: #eef5f3; border: 1px solid #d7e5e1; border-radius: 5px; font-size: .58rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step > i { grid-row: 1 / 3; color: #6d9996; font-size: .82rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step strong { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; } body.pmidt-ui.pm-theme-civic .patient-visit-progress-step small { color: #839294; font-size: .55rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step.is-current { color: var(--pv-forest); } body.pmidt-ui.pm-theme-civic .patient-visit-progress-step.is-current > span { color: #fff; background: var(--pv-blue); border-color: var(--pv-blue); }
body.pmidt-ui.pm-theme-civic .patient-visit-progress-arrow { padding: 0 .5rem; color: #b6c7c4; font-size: .65rem; }

body.pmidt-ui.pm-theme-civic .patient-visit-workspace { overflow: hidden; background: #fff; border: 1px solid var(--pv-line); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 15px 34px rgba(29,75,72,.08); }
body.pmidt-ui.pm-theme-civic .patient-visit-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem 1rem; background: linear-gradient(90deg,#edf7f5,#fff); border-bottom: 1px solid var(--pv-line); border-inline-start: 5px solid var(--pv-blue); }
body.pmidt-ui.pm-theme-civic .patient-visit-stage-head span { color: var(--pv-blue); font-size: .56rem; font-weight: 900; letter-spacing: .1em; } body.pmidt-ui.pm-theme-civic .patient-visit-stage-head h2 { margin: .16rem 0 0; color: var(--pv-ink); font-size: .9rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .patient-visit-stage-chip { padding: .37rem .55rem; color: #506c6c !important; background: #eaf4f1; border: 1px solid #d4e4df; border-radius: 5px; letter-spacing: 0 !important; }
body.pmidt-ui.pm-theme-civic #patientvisit > .w-100 { padding: .7rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-desk-grid { width: 100%; height: auto !important; display: grid !important; grid-template-columns: minmax(0,1.4fr) minmax(330px,.9fr); gap: .7rem; margin: 0 !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-primary-pane, body.pmidt-ui.pm-theme-civic .patient-visit-history-pane { min-width: 0; padding: .6rem; background: #f7faf9; border: 1px solid #dce7e3; border-radius: 8px; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-pane { background: #f5f8f9; border-top: 3px solid var(--pv-blue); }
body.pmidt-ui.pm-theme-civic .patient-visit-section-title, body.pmidt-ui.pm-theme-civic .patient-visit-history-title { min-height: 43px; display: flex; align-items: center; gap: .45rem; margin: 0 !important; padding: .55rem .7rem !important; color: var(--pv-forest) !important; background: #eaf5f2 !important; border: 1px solid #d9e8e3 !important; border-inline-start: 4px solid var(--pv-teal) !important; font-family: Tahoma,Arial,system-ui,sans-serif !important; font-size: .75rem !important; font-weight: 850 !important; text-align: start !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-section-title:not(:first-of-type) { margin-top: .65rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-section-title > span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--pv-teal); border-radius: 50%; font-size: .56rem; } body.pmidt-ui.pm-theme-civic .patient-visit-section-title > i { color: var(--pv-blue); }
body.pmidt-ui.pm-theme-civic .patient-visit-section-title small, body.pmidt-ui.pm-theme-civic .patient-visit-history-title small { margin-inline-start: auto; color: #718587; font-size: .57rem; font-weight: 500; }
body.pmidt-ui.pm-theme-civic .patient-visit-section-body, body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body { width: 100% !important; margin: 0 0 .65rem !important; padding: .65rem !important; background: #fff; border: 1px solid var(--pv-line); border-top: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-field-grid { width: 100%; grid-template-columns: 1fr .55fr 1.55fr 1.2fr; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-employee-fields { width: 100%; margin: 0 !important; padding: 0 !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-employee-fields > .col-md-12, body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-employee-fields .row { width: 100%; margin: 0; padding: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body { display: grid !important; grid-template-columns: 1fr 1fr; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body #changebody, body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body #disease { max-width: none; display: grid !important; grid-template-columns: minmax(0,1fr) 38px; gap: .3rem; padding: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-subtitle { grid-column: 1 / -1; margin: .15rem 0 -.2rem; color: var(--pv-forest); font-size: .67rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .patient-visit-notes-grid { width: 100%; grid-column: 1 / -1; display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 0 !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page #vist1, body.pmidt-ui.pm-theme-civic .patient-visit-page #vist2 { width: 100% !important; height: 125px !important; margin: 0 !important; resize: vertical; border-radius: 6px !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-drug-entry { display: grid !important; grid-template-columns: 1.5fr .85fr 38px; gap: .4rem; margin: 0; padding: .65rem; background: #fff; border: 1px solid var(--pv-line); border-top: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-drug-entry .form-control { width: 100% !important; margin: 0 !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-table-shell { max-height: 205px !important; height: auto !important; overflow: auto !important; margin: 0 !important; background: #fff; border: 1px solid var(--pv-line); border-top: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .table { min-width: 520px; margin: 0; box-shadow: none; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .table th { padding: .58rem .5rem !important; color: #fff !important; background: var(--pv-forest) !important; border-color: rgba(255,255,255,.12) !important; font-size: .65rem; white-space: nowrap; text-align: center; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .table td { padding: .52rem !important; color: #3d5357; border-color: #e0e9e6; font-size: .68rem; vertical-align: middle; } body.pmidt-ui.pm-theme-civic .patient-visit-page .table tr:nth-child(even) td { background: #f7faf9; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-title { border-inline-start-color: var(--pv-blue) !important; } body.pmidt-ui.pm-theme-civic .patient-visit-history-title > i { color: var(--pv-blue); }
body.pmidt-ui.pm-theme-civic .patient-visit-history-content { min-height: 240px; max-height: 340px; overflow: auto; background: #fff; border: 1px solid var(--pv-line); border-top: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty { min-height: 238px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .38rem; padding: 1.3rem; color: var(--pv-muted); text-align: center; background: radial-gradient(circle,#edf7f6,transparent 70%); }
body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty i { color: #79a4aa; font-size: 1.55rem; } body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty strong { color: var(--pv-ink); font-size: .72rem; } body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty span { font-size: .63rem; line-height: 1.55; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-detail { margin-top: .65rem; overflow: auto; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-detail .alert-info { margin: .45rem 0 0 !important; padding: .55rem !important; color: var(--pv-forest); background: #e9f4f2; border: 1px solid var(--pv-line); font: 800 .7rem Tahoma,Arial,sans-serif !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-review-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .7rem; padding: .7rem .85rem; background: #edf6f3; border: 1px solid #d4e5df; border-inline-start: 4px solid var(--pv-teal); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .patient-visit-review-copy strong, body.pmidt-ui.pm-theme-civic .patient-visit-review-copy span { display: block; } body.pmidt-ui.pm-theme-civic .patient-visit-review-copy strong { color: var(--pv-forest); font-size: .72rem; } body.pmidt-ui.pm-theme-civic .patient-visit-review-copy span { margin-top: .18rem; color: var(--pv-muted); font-size: .6rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-review-actions { display: flex; gap: .4rem; } body.pmidt-ui.pm-theme-civic .patient-visit-review-actions .btn { min-width: 100px; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .form-control, body.pmidt-ui.pm-theme-civic .patient-visit-page select { min-height: 37px !important; color: var(--pv-ink) !important; background: #fff !important; border: 1px solid #cbdcd7 !important; border-radius: 6px !important; font-size: .72rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .form-control:focus, body.pmidt-ui.pm-theme-civic .patient-visit-page select:focus, body.pmidt-ui.pm-theme-civic .patient-visit-page .btn:focus-visible { border-color: var(--pv-blue) !important; outline: 3px solid rgba(57,124,146,.2) !important; outline-offset: 1px; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .btn { border-radius: 5px !important; font-size: .68rem !important; font-weight: 800; } body.pmidt-ui.pm-theme-civic .patient-visit-page .btn-primary, body.pmidt-ui.pm-theme-civic .patient-visit-page .btn-info { color: #fff !important; background: var(--pv-blue) !important; border-color: var(--pv-blue) !important; } body.pmidt-ui.pm-theme-civic .patient-visit-page .btn-success { background: var(--pv-teal) !important; border-color: var(--pv-teal) !important; } body.pmidt-ui.pm-theme-civic .patient-visit-page .btn-warning { color: #6e4812 !important; background: #f3e3c5 !important; border-color: #e4c993 !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(.patient-visit-dialog) { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; border: 1px solid #c8dcd7 !important; border-radius: 9px !important; box-shadow: 0 24px 62px rgba(18,59,59,.25) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(.patient-visit-dialog) .ui-dialog-titlebar { color: #fff; background: var(--pv-forest,#174f4b); border: 0; } body.pmidt-ui.pm-theme-civic .ui-dialog:has(.patient-visit-dialog) .ui-dialog-content { max-width: 100% !important; max-height: calc(100vh - 72px) !important; overflow: auto !important; background: #f7faf9 !important; }

@media (max-width: 1050px) { body.pmidt-ui.pm-theme-civic .patient-visit-desk-grid { grid-template-columns: 1fr; } body.pmidt-ui.pm-theme-civic .patient-visit-history-content { min-height: 200px; } body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty { min-height: 198px; } }
@media (max-width: 700px) { body.pmidt-ui.pm-theme-civic .patient-visit-page { padding: .45rem; } body.pmidt-ui.pm-theme-civic .patient-visit-ops-header { align-items: flex-start; flex-direction: column; padding: 1rem; } body.pmidt-ui.pm-theme-civic .patient-visit-safe-status { width: 100%; } body.pmidt-ui.pm-theme-civic .patient-visit-progress { display: flex; overflow-x: auto; gap: .55rem; padding: .6rem; } body.pmidt-ui.pm-theme-civic .patient-visit-progress-step { min-width: 155px; } body.pmidt-ui.pm-theme-civic .patient-visit-progress-arrow { transform: rotate(0deg); } body.pmidt-ui.pm-theme-civic .patient-visit-stage-chip { display: none; } body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-field-grid { grid-template-columns: 1fr 80px; } body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-field:not(.pharmacy-field-code):not(.pharmacy-field-age) { grid-column: 1 / -1; } body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body { grid-template-columns: 1fr; } body.pmidt-ui.pm-theme-civic .patient-visit-assessment-body > * { grid-column: 1 !important; } body.pmidt-ui.pm-theme-civic .patient-visit-notes-grid { grid-template-columns: 1fr; } body.pmidt-ui.pm-theme-civic .patient-visit-drug-entry { grid-template-columns: 1fr 42px; } body.pmidt-ui.pm-theme-civic .patient-visit-drug-entry #drugname { grid-column: 1 / -1; } body.pmidt-ui.pm-theme-civic .patient-visit-review-bar { align-items: stretch; flex-direction: column; } body.pmidt-ui.pm-theme-civic .patient-visit-review-actions { flex-direction: column; } body.pmidt-ui.pm-theme-civic .patient-visit-review-actions .btn { width: 100%; } body.pmidt-ui.pm-theme-civic .patient-visit-section-title small { width: 100%; margin-inline-start: 0; } }
@media (prefers-reduced-motion: reduce) { body.pmidt-ui.pm-theme-civic .patient-visit-page *, body.pmidt-ui.pm-theme-civic .patient-visit-page *::before, body.pmidt-ui.pm-theme-civic .patient-visit-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Patient Visit refinement: loaded history, dialog interiors and clinical legibility */
body.pmidt-ui.pm-theme-civic .patient-visit-title-block p,
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status strong,
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step strong,
body.pmidt-ui.pm-theme-civic .patient-visit-section-title,
body.pmidt-ui.pm-theme-civic .patient-visit-history-title,
body.pmidt-ui.pm-theme-civic .patient-visit-page .form-control,
body.pmidt-ui.pm-theme-civic .patient-visit-page select,
body.pmidt-ui.pm-theme-civic .patient-visit-page .btn,
body.pmidt-ui.pm-theme-civic .patient-visit-page .table td { font-size: .75rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-safe-status small,
body.pmidt-ui.pm-theme-civic .patient-visit-progress-step small,
body.pmidt-ui.pm-theme-civic .patient-visit-section-title small,
body.pmidt-ui.pm-theme-civic .patient-visit-history-title small,
body.pmidt-ui.pm-theme-civic .patient-visit-inline-empty span,
body.pmidt-ui.pm-theme-civic .patient-visit-review-copy span { font-size: .7rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .table th { font-size: .73rem !important; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .pharmacy-field { font-size: .72rem !important; }

body.pmidt-ui.pm-theme-civic .patient-visit-history-card { margin-bottom: .65rem; overflow: hidden; background: #fff; border: 1px solid var(--pv-line,#d6e3df); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header { min-height: 46px; display: flex; align-items: center; gap: .6rem; padding: .58rem .7rem; color: var(--pv-forest,#174f4b); background: linear-gradient(90deg,#e9f4f3,#f8fbfb); border-bottom: 1px solid var(--pv-line,#d6e3df); border-inline-start: 4px solid var(--pv-blue,#397c92); }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header > i { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--pv-blue,#397c92); border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header strong,
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header small { display: block; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header strong { font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card > header small { margin-top: .15rem; color: #677d80; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card-body { padding: .65rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-card #vist11 { width: 100% !important; min-height: 120px; resize: vertical; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-table-shell { max-height: 300px !important; border: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-content > .col-md-5 { max-width: none; margin: 0 !important; padding: .65rem; background: #f4f8f7; }
body.pmidt-ui.pm-theme-civic .patient-visit-history-content #prevMedPartial { width: 100%; padding: 0; overflow-x: auto; }

body.pmidt-ui.pm-theme-civic .patient-visit-dialog form { margin: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .6rem; padding: .8rem; background: #fff; border: 1px solid #d5e4df; border-inline-start: 4px solid #397c92; border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form-two { grid-template-columns: repeat(2,minmax(0,1fr)) auto; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-field { min-width: 0; display: grid; gap: .32rem; margin: 0; color: #38565a; font: 800 .75rem Tahoma,Arial,system-ui,sans-serif; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-field .form-control { width: 100% !important; min-width: 0; min-height: 39px; margin: 0 !important; color: #263d42; background: #fff; border: 1px solid #c7d9d4; border-radius: 6px; font: .75rem Tahoma,Arial,system-ui,sans-serif; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-field .form-control:focus { border-color: #397c92; outline: 3px solid rgba(57,124,146,.18); outline-offset: 1px; box-shadow: none; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form .btn { min-height: 39px; padding-inline: .85rem; border-radius: 5px; font-size: .75rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-list { max-height: min(330px,45vh) !important; height: auto !important; margin-top: .65rem; overflow: auto !important; background: #fff; border: 1px solid #d5e4df; border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell { width: 100%; overflow-x: auto; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell .table { min-width: 390px; margin: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell th { padding: .58rem .5rem; color: #fff; background: #174f4b; border-color: rgba(255,255,255,.12); font-size: .73rem; text-align: center; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell td { padding: .52rem; color: #344d51; border-color: #e0e9e6; font-size: .75rem; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell tr:nth-child(even) td { background: #f6faf8; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog-table-shell .btn { min-width: 34px; min-height: 32px; border-radius: 5px; }

body.pmidt-ui.pm-theme-civic .patient-visit-upload-card { overflow: hidden; background: #fff; border: 1px solid #d5e4df; border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; color: #174f4b; background: #eaf4f2; border-bottom: 1px solid #d5e4df; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header > i { color: #a85449; font-size: 1.1rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header strong,
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header small { display: block; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header strong { font-size: .78rem; } body.pmidt-ui.pm-theme-civic .patient-visit-upload-card > header small { margin-top: .14rem; color: #687e80; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-body { padding: .8rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-picker { display: grid; gap: .4rem; color: #3c585b; font-size: .75rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-actions { display: flex; justify-content: flex-end; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #e0e9e6; }
body.pmidt-ui.pm-theme-civic .patient-visit-upload-card .btn { min-height: 39px; border-radius: 5px; font-size: .75rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .patient-visit-dialog embed { width: 100% !important; height: min(700px,calc(100vh - 100px)) !important; }

@media (max-width: 620px) {
    body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form,
    body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form-two { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .patient-visit-dialog-form .btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .patient-visit-upload-actions { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .patient-visit-upload-actions .btn { width: 100%; }
}

/* Patient Visit shell aligned with the AuditReferralLetter docket. */
body.pmidt-ui.pm-theme-civic .patient-visit-page.arl-page {
    width: 100%; max-width: 1580px; margin: .45rem auto 1.25rem; padding: .65rem;
    color: var(--arl-ink); background: #f1f5f5; border: 1px solid #d8e2e1; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-ops-header.arl-masthead {
    min-height: 94px; padding: 1rem 1.2rem; color: #fff; background: #183f47;
    border: 1px solid #12343b; border-bottom: 4px solid #bb8230; border-radius: 7px 7px 3px 3px;
    box-shadow: 0 8px 18px rgba(24,63,71,.14);
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-ops-header.arl-masthead::after {
    content: "CLINICAL"; inset-inline-end: 25%; top: auto; bottom: -15px; width: auto; height: auto;
    color: rgba(255,255,255,.04); border: 0; transform: none; font-size: 4.1rem; font-weight: 900; line-height: 1;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-eyebrow.arl-eyebrow { margin: 0; color: #c3ddd8; font-size: .66rem; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page #patientVisitPageTitle { margin: .28rem 0 .18rem; color: #fff !important; font-size: 1.45rem !important; font-weight: 900; line-height: 1.25; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-title-block p { margin: 0; color: #d8e7e4; font-size: .75rem; line-height: 1.5; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-safe-status.arl-section-mark {
    min-width: 210px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .65rem;
    padding: .55rem .7rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-safe-status.arl-section-mark strong { font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-safe-status.arl-section-mark small { margin-top: .14rem; color: #c5dbd9; font-size: .57rem; }

body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress.arl-routing-instrument {
    display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 0; margin: .65rem 0; padding: 0;
    background: #fff; border: 1px solid #ccd9d7; border-radius: 5px; box-shadow: 0 5px 13px rgba(31,70,69,.06);
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress .arl-routing-head {
    display: flex; justify-content: center; flex-direction: column; padding: .7rem .8rem;
    background: #eef4f3; border-inline-start: 4px solid #b77b28; border-inline-end: 1px solid #d6e1df;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card {
    min-width: 0; min-height: 66px; display: grid; grid-template-columns: 26px 34px minmax(0,1fr) 12px;
    grid-template-rows: auto; align-items: center; gap: .45rem; padding: .52rem .58rem; color: #52696c;
    background: #fff; border: 0; border-inline-end: 1px solid #d7e2df; border-radius: 0; box-shadow: none;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card:last-child { border-inline-end: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card.is-current { color: #fff; background: #23645b; box-shadow: inset 0 -3px 0 #e0ad59; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-step-number {
    width: 26px; height: 26px; grid-row: auto; display: grid; place-items: center; border-radius: 4px; font-size: .58rem;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-mode-icon {
    width: 34px; height: 34px; grid-row: auto; display: grid; place-items: center; border-radius: 4px; font-size: .85rem;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-mode-copy {
    width: auto; height: auto; grid-row: auto; display: block; color: inherit; background: transparent; border: 0; border-radius: 0;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-mode-arrow {
    grid-row: auto; padding: 0; color: #8ba09d; font-size: .65rem;
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card.is-current > .arl-mode-arrow { color: #d7e8e4; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-mode-copy strong { font-size: .69rem !important; white-space: normal; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card > .arl-mode-copy small { margin-top: .12rem; font-size: .57rem !important; }

body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-workspace.arl-content-stage {
    overflow: hidden; background: #fff; border: 1px solid var(--arl-line); border-radius: 5px 5px 8px 8px;
    box-shadow: 0 9px 20px rgba(28,65,65,.07);
}
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-stage-head.arl-stage-head { min-height: 58px; padding: .66rem .82rem; background: #f4f8f7; border-inline-start-color: #23645b; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-stage-head.arl-stage-head .arl-stage-kicker { color: #49778e; font-size: .57rem; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-stage-head.arl-stage-head #titles { margin: .16rem 0 0; color: var(--arl-navy) !important; font-size: .94rem !important; font-weight: 850; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-stage-chip.arl-stage-status { display: inline-flex; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-stage-body.arl-stage-body { min-height: 440px; padding: 0; overflow-x: auto; }

@media (max-width: 1050px) {
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card:nth-child(2) { border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card:nth-child(-n+2) { border-bottom: 1px solid #d7e2df; }
}
@media (max-width: 700px) {
    body.pmidt-ui.pm-theme-civic .patient-visit-page.arl-page { margin-top: .2rem; padding: .35rem; border-radius: 8px; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-ops-header.arl-masthead { min-height: auto; gap: .7rem; padding: .82rem; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-safe-status.arl-section-mark { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress.arl-routing-instrument { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress .arl-routing-head { min-height: 46px; border-inline-end: 0; border-bottom: 1px solid #d6e1df; }
}
@media (max-width: 520px) {
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card { border-inline-end: 0; border-bottom: 1px solid #d7e2df; }
    body.pmidt-ui.pm-theme-civic .patient-visit-page .patient-visit-progress-step.arl-mode-card:last-child { border-bottom: 0; }
}

/* ========================================================================== */
/* Pharmacy Dispensing Console — production workspace redesign (2026-07-13)  */
/* ========================================================================== */
body.pmidt-ui.pm-theme-civic .pharmacy-page {
    --pharmacy-forest: #123f3a;
    --pharmacy-teal: #1c5b52;
    --pharmacy-emerald: #2f806b;
    --pharmacy-mint: #e4f2eb;
    --pharmacy-mint-soft: #f2f8f3;
    --pharmacy-amber: #b6802d;
    --pharmacy-amber-soft: #f8eedb;
    --pharmacy-canvas: #f2f6ef;
    --pharmacy-ink: #243b38;
    --pharmacy-muted: #62746f;
    --pharmacy-line: #d5e2da;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: clamp(.7rem, 1.5vw, 1.45rem);
    color: var(--pharmacy-ink);
    font-family: Tahoma, Arial, system-ui, sans-serif;
    background:
        radial-gradient(circle at 88% 3%, rgba(47,128,107,.1), transparent 25rem),
        linear-gradient(45deg, rgba(28,91,82,.025) 25%, transparent 25%, transparent 75%, rgba(28,91,82,.025) 75%) 0 0 / 28px 28px,
        var(--pharmacy-canvas);
    border-radius: 16px;
}

body.pmidt-ui.pm-theme-civic .pharmacy-ops-header {
    min-height: 138px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.7rem);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(116deg, #103b37, #175148 70%, #26705e);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px 14px 6px 6px;
    box-shadow: 0 14px 32px rgba(18,63,58,.2);
}

body.pmidt-ui.pm-theme-civic .pharmacy-ops-header::after {
    content: "";
    width: 176px;
    height: 72px;
    position: absolute;
    inset-inline-end: 17%;
    top: -28px;
    border: 23px solid rgba(255,255,255,.045);
    border-radius: 60px;
    transform: rotate(-28deg);
    pointer-events: none;
}

body.pmidt-ui.pm-theme-civic .pharmacy-ops-heading { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .pharmacy-eyebrow { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; color: #b8ded1; font-size: .69rem; font-weight: 800; letter-spacing: .065em; }
body.pmidt-ui.pm-theme-civic .pharmacy-ops-header .pm-page-title { margin: 0 !important; color: #fff !important; font-size: clamp(1.65rem,2.4vw,2.25rem) !important; line-height: 1.15; letter-spacing: -.02em; }
body.pmidt-ui.pm-theme-civic .pharmacy-ops-heading p { max-width: 770px; margin: .55rem 0 0; color: #d7e9e2; font-size: .88rem; line-height: 1.7; }
body.pmidt-ui.pm-theme-civic .pharmacy-ready { min-width: 190px; display: flex; align-items: center; gap: .7rem; padding: .72rem .9rem; position: relative; z-index: 1; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; }
body.pmidt-ui.pm-theme-civic .pharmacy-ready-dot { width: 10px; height: 10px; flex: 0 0 10px; background: #76d59d; border: 2px solid rgba(255,255,255,.58); border-radius: 50%; box-shadow: 0 0 0 5px rgba(118,213,157,.12); }
body.pmidt-ui.pm-theme-civic .pharmacy-ready strong,
body.pmidt-ui.pm-theme-civic .pharmacy-ready small { display: block; }
body.pmidt-ui.pm-theme-civic .pharmacy-ready strong { color: #fff; font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-ready small { margin-top: .14rem; color: #bcd9d0; font-size: .65rem; }

body.pmidt-ui.pm-theme-civic .pharmacy-mode-section { display: grid; grid-template-columns: minmax(190px,.62fr) minmax(500px,1.7fr) auto; align-items: stretch; gap: .7rem; margin: .8rem 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-heading { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; background: #fff; border: 1px solid var(--pharmacy-line); border-inline-start: 4px solid var(--pharmacy-emerald); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .pharmacy-step-number { color: var(--pharmacy-emerald); font-size: 1.15rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-heading span:not(.pharmacy-step-number) { display: block; color: var(--pharmacy-ink); font-size: .77rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-heading small { display: block; margin-top: .2rem; color: var(--pharmacy-muted); font-size: .61rem; line-height: 1.4; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-selector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card { min-width: 0; min-height: 82px; display: grid; grid-template-columns: 43px minmax(0,1fr) 18px; align-items: center; gap: .7rem; padding: .78rem .8rem; position: relative; overflow: hidden; text-align: start; color: var(--pharmacy-ink); background: #fff; border: 1px solid var(--pharmacy-line); border-radius: 8px; box-shadow: 0 5px 14px rgba(30,75,67,.055); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card::before { content: ""; width: 4px; position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--pharmacy-emerald); }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card-contractor::before { background: var(--pharmacy-amber); }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card:hover { transform: translateY(-2px); border-color: #a7c9bc; box-shadow: 0 9px 21px rgba(30,75,67,.11); }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card:focus-visible,
body.pmidt-ui.pm-theme-civic .pharmacy-context-action:focus-visible,
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn:focus-visible { outline: 3px solid rgba(182,128,45,.38) !important; outline-offset: 2px; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card.is-active { color: #fff; background: var(--pharmacy-teal); border-color: var(--pharmacy-teal); box-shadow: 0 9px 23px rgba(28,91,82,.2); }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card.is-active::before { width: 7px; background: #d6aa5e; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--pharmacy-teal); background: var(--pharmacy-mint); border: 1px solid #cbe2d6; border-radius: 8px; font-size: 1.05rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card-contractor .pharmacy-mode-icon { color: #875d1a; background: var(--pharmacy-amber-soft); border-color: #ead7b2; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card.is-active .pharmacy-mode-icon { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-copy { min-width: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-copy strong { display: block; font-size: .77rem; line-height: 1.3; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-copy small { display: block; margin-top: .25rem; overflow: hidden; color: var(--pharmacy-muted); font-size: .61rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card.is-active .pharmacy-mode-copy small { color: #c7ddd6; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-marker { color: #8ca29c; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-mode-card.is-active .pharmacy-mode-marker { color: #fff; }
body.pmidt-ui.pm-theme-civic .pharmacy-context-action { min-width: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem; padding: .65rem .8rem; color: #714b12; background: var(--pharmacy-amber-soft); border: 1px solid #e6d0a8; border-radius: 8px; font-size: .68rem; font-weight: 800; transition: background .18s ease, transform .18s ease; }
body.pmidt-ui.pm-theme-civic .pharmacy-context-action:hover { transform: translateY(-2px); background: #f2e1c1; }
body.pmidt-ui.pm-theme-civic .pharmacy-context-action i { font-size: 1rem; }

body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-workspace { min-height: 475px; padding: 0 !important; overflow: hidden; background: #fff; border: 1px solid var(--pharmacy-line); border-radius: 6px 6px 13px 13px; box-shadow: 0 16px 36px rgba(31,73,66,.09); }
body.pmidt-ui.pm-theme-civic .pharmacy-stage-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; background: linear-gradient(90deg,#f4faf6,#fff); border-bottom: 1px solid var(--pharmacy-line); border-inline-start: 5px solid var(--pharmacy-emerald); }
body.pmidt-ui.pm-theme-civic .pharmacy-stage-label { color: var(--pharmacy-emerald); font-size: .59rem; font-weight: 900; letter-spacing: .1em; }
body.pmidt-ui.pm-theme-civic .pharmacy-stage-head h2 { margin: .18rem 0 0; color: var(--pharmacy-ink); font-size: 1.04rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .pharmacy-stage-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .62rem; color: #49645e; background: #eaf4ef; border: 1px solid #d3e5dc; border-radius: 6px; font-size: .65rem; font-weight: 700; }
body.pmidt-ui.pm-theme-civic .pharmacy-stage-body { min-height: 395px; padding: 1rem; overflow: hidden; }
body.pmidt-ui.pm-theme-civic #pharmacyemployee { min-height: 360px; margin: 0 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-empty-state { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; background: radial-gradient(circle at center,#eff8f2,transparent 62%); }
body.pmidt-ui.pm-theme-civic .pharmacy-empty-icon { width: 60px; height: 60px; display: grid; place-items: center; color: var(--pharmacy-emerald); background: var(--pharmacy-mint); border: 1px solid #c9e1d5; border-radius: 50%; font-size: 1.4rem; box-shadow: 0 0 0 9px rgba(228,242,235,.5); }
body.pmidt-ui.pm-theme-civic .pharmacy-empty-state h3 { margin: 1.2rem 0 .4rem; color: var(--pharmacy-ink); font-size: 1rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .pharmacy-empty-state p { max-width: 520px; margin: 0; color: var(--pharmacy-muted); font-size: .76rem; line-height: 1.65; }
body.pmidt-ui.pm-theme-civic .pharmacy-flow-hint { display: flex; align-items: center; gap: .6rem; margin-top: 1.15rem; color: #688079; font-size: .62rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .pharmacy-flow-hint i { color: #9bb1aa; font-size: .55rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-loading-state,
body.pmidt-ui.pm-theme-civic .pharmacy-error-state { width: 100%; min-height: 350px; display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--pharmacy-ink); }
body.pmidt-ui.pm-theme-civic .pharmacy-loading-state strong,
body.pmidt-ui.pm-theme-civic .pharmacy-error-state strong { display: block; font-size: .86rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-loading-state p,
body.pmidt-ui.pm-theme-civic .pharmacy-error-state p { margin: .25rem 0 0; color: var(--pharmacy-muted); font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-loader { width: 31px; height: 31px; display: inline-block; flex: 0 0 31px; border: 3px solid #d6e7de; border-top-color: var(--pharmacy-emerald,#2f806b); border-radius: 50%; animation: pharmacy-spin .75s linear infinite; }
body.pmidt-ui.pm-theme-civic .pharmacy-error-state { color: #934a41; }
body.pmidt-ui.pm-theme-civic .pharmacy-error-state > i { font-size: 1.75rem; }

/* Injected dispensing workflow */
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-pane { min-height: 610px; max-height: none; padding: .65rem; overflow: visible; background: #f7faf7; border: 1px solid #dbe6df; border-radius: 8px; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-history-pane { background: #f4f8f6; }
body.pmidt-ui.pm-theme-civic .pharmacy-work-section { margin-bottom: .65rem; overflow: hidden; background: #fff; border: 1px solid #dae6df; border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-section-title { min-height: 44px; display: flex; align-items: center; gap: .45rem; margin: 0 !important; padding: .55rem .72rem !important; text-align: start !important; color: var(--pharmacy-forest) !important; background: var(--pharmacy-mint-soft) !important; border: 0 !important; border-bottom: 1px solid #dbe8e0 !important; border-inline-start: 4px solid var(--pharmacy-emerald) !important; border-radius: 0 !important; font-family: Tahoma,Arial,system-ui,sans-serif !important; font-size: .74rem !important; font-weight: 850 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-section-title > span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--pharmacy-emerald); border-radius: 50%; font-size: .59rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-section-title > i { color: var(--pharmacy-emerald); font-size: .9rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-section-title small { margin-inline-start: auto; color: var(--pharmacy-muted); font-size: .58rem; font-weight: 500; }
body.pmidt-ui.pm-theme-civic .pharmacy-history-title { min-height: 50px !important; border-inline-start-color: var(--pharmacy-amber) !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-history-title > i { color: var(--pharmacy-amber); }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-form-area { width: 100% !important; display: block !important; margin: 0 !important; padding: .65rem !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-employee-fields,
body.pmidt-ui.pm-theme-civic .pharmacy-drug-fields { width: 100%; margin: 0 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-field-grid { display: grid; grid-template-columns: 1.05fr .55fr 1.65fr 1.35fr; gap: .5rem; padding: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-field { display: grid; align-content: end; gap: .3rem; margin: 0; color: #49615c; font-size: .61rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .pharmacy-field > span { display: block; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-control,
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-select { width: 100% !important; min-width: 0 !important; min-height: 38px !important; margin: 0 !important; color: var(--pharmacy-ink) !important; background: #fff !important; border: 1px solid #cddcd4 !important; border-radius: 6px !important; font-size: .73rem !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-control[readonly] { color: #526762 !important; background: #f3f6f4 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page #doesage1 { color: #72501b !important; background: var(--pharmacy-amber-soft) !important; border-color: #e6d2ad !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-control:focus,
body.pmidt-ui.pm-theme-civic .pharmacy-page .form-select:focus { border-color: var(--pharmacy-emerald) !important; box-shadow: 0 0 0 3px rgba(47,128,107,.14) !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page #drugsInStore { padding-top: .55rem !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pm-table-shell,
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-table-panel { width: 100% !important; max-height: 250px !important; height: auto !important; display: block !important; margin: 0 !important; padding: 0 !important; overflow: auto !important; background: #fff; border: 1px solid #d6e2da !important; border-radius: 0 0 6px 6px !important; box-shadow: none !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-history-table { max-height: 520px !important; border-radius: 0 0 6px 6px !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table { min-width: 590px; margin: 0; border-radius: 0; box-shadow: none; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table thead th { padding: .65rem .55rem !important; color: #fff !important; background: var(--pharmacy-teal) !important; border-color: rgba(255,255,255,.11) !important; font-size: .66rem !important; font-weight: 850; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table tbody td { padding: .55rem !important; color: #344c47; border-color: #e1e9e4; font-size: .69rem; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table tbody tr:nth-child(even) td { background: #f8faf8; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table tbody tr:hover td { background: #edf6f1; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .table .form-control { min-height: 32px !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn { border-radius: 5px !important; font-size: .68rem !important; font-weight: 800 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-primary,
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-success { color: #fff !important; background: var(--pharmacy-emerald) !important; border-color: var(--pharmacy-emerald) !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-primary:hover,
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-success:hover { background: var(--pharmacy-forest) !important; border-color: var(--pharmacy-forest) !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-info { color: #fff !important; background: var(--pharmacy-teal) !important; border-color: var(--pharmacy-teal) !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .btn-danger { color: #fff !important; background: #a75449 !important; border-color: #a75449 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-add-batch { display: inline-flex; align-items: center; gap: .35rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-print-action { width: 34px; height: 32px; display: inline-grid; place-items: center; padding: 0 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-inline-empty { min-height: 505px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .35rem; padding: 1.5rem; color: var(--pharmacy-muted); text-align: center; }
body.pmidt-ui.pm-theme-civic .pharmacy-inline-empty i { margin-bottom: .35rem; color: #86aa9d; font-size: 1.65rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-inline-empty strong { color: var(--pharmacy-ink); font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-inline-empty span { font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; padding: .72rem .85rem; background: #eef6f1; border: 1px solid #d4e4db; border-inline-start: 4px solid var(--pharmacy-emerald); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .pharmacy-save-bar strong,
body.pmidt-ui.pm-theme-civic .pharmacy-save-bar span { display: block; }
body.pmidt-ui.pm-theme-civic .pharmacy-save-bar strong { color: var(--pharmacy-forest); font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-save-bar span { margin-top: .18rem; color: var(--pharmacy-muted); font-size: .61rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-save-btn { min-width: 155px !important; min-height: 40px; display: inline-flex !important; align-items: center; justify-content: center; gap: .4rem; margin: 0 !important; }

/* Pharmacy dialogs and DevExpress directory */
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog),
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#conEmpDialog) { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; border: 1px solid #c9dbd2 !important; border-radius: 10px !important; box-shadow: 0 24px 60px rgba(18,63,58,.25) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-content,
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#conEmpDialog) .ui-dialog-content { max-width: 100% !important; max-height: calc(100vh - 70px) !important; overflow: auto !important; background: #f6faf7 !important; }
body.pmidt-ui.pm-theme-civic .pharmacy-dialog-loading { min-height: 210px; display: flex; align-items: center; justify-content: center; gap: .75rem; color: #47635d; font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-dialog-error { padding: 1rem; color: #8f493f; background: #fbefed; border: 1px solid #edcec9; border-radius: 6px; font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory { color: var(--pharmacy-ink,#243b38); font-family: Tahoma,Arial,system-ui,sans-serif; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; padding: .7rem .8rem; background: #e9f4ee; border-inline-start: 4px solid #2f806b; border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header i { color: #1c5b52; font-size: 1.1rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header strong,
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header span { display: block; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header strong { font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-directory > header span { margin-top: .15rem; color: #62746f; font-size: .62rem; }

@keyframes pharmacy-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-section { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-heading { min-height: 64px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-context-action { min-height: 48px; flex-direction: row; }
    body.pmidt-ui.pm-theme-civic .pharmacy-field-grid { grid-template-columns: 1fr .55fr 1.4fr; }
    body.pmidt-ui.pm-theme-civic .pharmacy-field-grid .pharmacy-field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-pane { min-height: auto; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-history-pane { margin-top: .15rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-inline-empty { min-height: 210px; }
}

@media (max-width: 640px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-page { padding: .5rem; border-radius: 10px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-ops-header { min-height: auto; align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.1rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-ready { width: 100%; min-width: 0; padding: .55rem .7rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-selector { grid-template-columns: 1fr; gap: .45rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-card { min-height: 67px; grid-template-columns: 37px minmax(0,1fr) 16px; padding: .6rem .7rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-icon { width: 37px; height: 37px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-stage-head { min-height: 64px; padding: .72rem .8rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-stage-chip { display: none; }
    body.pmidt-ui.pm-theme-civic .pharmacy-stage-body { min-height: 330px; padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-empty-state,
    body.pmidt-ui.pm-theme-civic .pharmacy-loading-state,
    body.pmidt-ui.pm-theme-civic .pharmacy-error-state { min-height: 290px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-pane { padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-section-title { align-items: flex-start !important; flex-wrap: wrap; }
    body.pmidt-ui.pm-theme-civic .pharmacy-section-title small { width: 100%; margin-inline-start: 0; padding-inline-start: 2.85rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-field-grid { grid-template-columns: 1fr 90px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-field-grid .pharmacy-field:not(.pharmacy-field-code):not(.pharmacy-field-age) { grid-column: 1 / -1; }
    body.pmidt-ui.pm-theme-civic .pharmacy-drug-fields > .pharmacy-field { width: 100%; margin-bottom: .5rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-save-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-save-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .pharmacy-flow-hint { gap: .35rem; }
    body.pmidt-ui.pm-theme-civic .ui-dialog { max-width: calc(100vw - 16px) !important; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .pharmacy-mode-card,
    body.pmidt-ui.pm-theme-civic .pharmacy-context-action { transition: none; }
    body.pmidt-ui.pm-theme-civic .pharmacy-loader { animation-duration: 1.8s; }
}

/* Pharmacy shell aligned with the AuditReferralLetter docket. */
body.pmidt-ui.pm-theme-civic .pharmacy-page.arl-page {
    width: 100%; max-width: 1580px; margin: .45rem auto 1.25rem; padding: .65rem;
    color: var(--arl-ink); background: #f1f5f5; border: 1px solid #d8e2e1; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ops-header.arl-masthead {
    min-height: 94px; padding: 1rem 1.2rem; color: #fff; background: #183f47;
    border: 1px solid #12343b; border-bottom: 4px solid #bb8230; border-radius: 7px 7px 3px 3px;
    box-shadow: 0 8px 18px rgba(24,63,71,.14);
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ops-header.arl-masthead::after {
    content: "DOCKET"; width: auto; height: auto; inset-inline-end: 28%; top: auto; bottom: -17px;
    color: rgba(255,255,255,.04); border: 0; border-radius: 0; transform: none;
    font-size: 4.7rem; font-weight: 900; line-height: 1;
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-eyebrow.arl-eyebrow { margin: 0; color: #c3ddd8; font-size: .66rem; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ops-header.arl-masthead h1 { margin: .28rem 0 .18rem; color: #fff; font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ops-heading p { margin: 0; color: #d8e7e4; font-size: .75rem; line-height: 1.5; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ready.arl-section-mark {
    min-width: 210px; max-width: 290px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .65rem;
    padding: .55rem .7rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
}

body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-routing-instrument.arl-routing-instrument {
    display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 0; margin: .65rem 0;
    background: #fff; border: 1px solid #ccd9d7; border-radius: 5px; box-shadow: 0 5px 13px rgba(31,70,69,.06);
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-heading.arl-routing-head {
    display: flex; justify-content: center; flex-direction: column; padding: .7rem .8rem;
    background: #eef4f3; border: 0; border-inline-start: 4px solid #b77b28; border-inline-end: 1px solid #d6e1df; border-radius: 0;
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.arl-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.has-context-action { grid-template-columns: repeat(3,minmax(0,1fr)); }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-card.arl-mode-card,
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-context-action.arl-mode-card {
    min-width: 0; min-height: 66px; display: grid; grid-template-columns: 26px 34px minmax(0,1fr) 12px; align-items: center; gap: .45rem;
    padding: .52rem .58rem; color: #294246; text-align: start; background: #fff; border: 0; border-inline-end: 1px solid #d7e2df;
    border-radius: 0; box-shadow: none; transition: background .15s ease, box-shadow .15s ease;
}
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-card.arl-mode-card::before { display: none; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector:not(.has-context-action) #contractors,
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.has-context-action #conemplist { border-inline-end: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-card.arl-mode-card:hover,
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-context-action.arl-mode-card:hover { z-index: 1; transform: none; background: #f0f7f5; box-shadow: inset 0 0 0 1px #bad0ca; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-card.arl-mode-card.is-active { color: #fff; background: #23645b; box-shadow: inset 0 -3px 0 #e0ad59; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-icon.arl-mode-icon { width: 34px; height: 34px; border-radius: 4px; font-size: .85rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-copy.arl-mode-copy strong { font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-copy.arl-mode-copy small { margin-top: .12rem; font-size: .57rem; white-space: normal; }

body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-workspace.arl-content-stage { min-height: 420px; border: 1px solid var(--arl-line); border-radius: 5px 5px 8px 8px; box-shadow: 0 9px 20px rgba(28,65,65,.07); }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-stage-head.arl-stage-head { min-height: 58px; padding: .66rem .82rem; background: #f4f8f7; border-inline-start-color: #23645b; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-stage-label.arl-stage-kicker { color: #49778e; font-size: .57rem; letter-spacing: 0; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-stage-head.arl-stage-head h2 { color: var(--arl-navy); font-size: .94rem; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-stage-chip.arl-stage-status { display: inline-flex; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-stage-body.arl-stage-body { min-height: 352px; padding: .7rem; overflow-x: auto; }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-empty-state.arl-empty-state { min-height: 325px; background: repeating-linear-gradient(0deg,#fff 0 29px,#edf2f1 29px 30px); }
body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-empty-icon.arl-empty-seal { width: 52px; height: 52px; color: #477b98; background: #f1f6f7; border-radius: 6px; box-shadow: 0 0 0 6px rgba(232,240,240,.65); }

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-routing-instrument.arl-routing-instrument { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-heading.arl-routing-head { min-height: 46px; border-inline-end: 0; border-bottom: 1px solid #d6e1df; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.has-context-action { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.has-context-action #contractors { border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page #conemplist:not([hidden]) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body.pmidt-ui.pm-theme-civic .pharmacy-page.arl-page { margin-top: .2rem; padding: .35rem; border-radius: 8px; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ops-header.arl-masthead { min-height: auto; gap: .7rem; padding: .82rem; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-ready.arl-section-mark { width: 100%; max-width: none; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.arl-mode-grid,
    body.pmidt-ui.pm-theme-civic .pharmacy-page .pharmacy-mode-selector.has-context-action { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pharmacy-page #conemplist:not([hidden]) { grid-column: auto; }
}

/* ========================================================================== 
   AuditTransfer — controlled two-way referral desk (scoped)
   ========================================================================== */
body.pmidt-ui.pm-theme-civic .atr-page {
    --atr-navy: #173b42; --atr-forest: #20574f; --atr-steel: #4b7391;
    --atr-sage: #5f806c; --atr-amber: #b17a2d; --atr-brick: #9b5047;
    --atr-ink: #26393d; --atr-muted: #64777b; --atr-line: #d6e1dd;
    width: 100%; margin: .75rem auto 1.5rem; padding: .75rem;
    color: var(--atr-ink); background: linear-gradient(145deg,#f7f2e8 0%,#eff6f2 53%,#edf3f5 100%);
    border: 1px solid #dce4df; border-radius: 12px; font-family: Tahoma,Arial,system-ui,sans-serif;
}
body.pmidt-ui.pm-theme-civic .atr-page button, body.pmidt-ui.pm-theme-civic .atr-page input,
body.pmidt-ui.pm-theme-civic .atr-page select { font-family: inherit; }
body.pmidt-ui.pm-theme-civic .atr-hero { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 1.6rem; position: relative; overflow: hidden; color: #fff; background: linear-gradient(112deg,#153b41,#1e574f 65%,#315e63); border-radius: 9px 9px 4px 4px; box-shadow: 0 13px 29px rgba(20,60,61,.18); }
body.pmidt-ui.pm-theme-civic .atr-hero::after { content: ""; width: 240px; height: 240px; position: absolute; inset-block-start: -110px; inset-inline-end: 34%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025),0 0 0 75px rgba(255,255,255,.018); }
body.pmidt-ui.pm-theme-civic .atr-hero-copy, body.pmidt-ui.pm-theme-civic .atr-security { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .atr-eyebrow { display: flex; align-items: center; gap: .45rem; color: #bad8d0; font-size: .62rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .atr-hero h1 { margin: .38rem 0 .35rem; color: #fff; font-size: clamp(1.35rem,2.5vw,1.9rem); font-weight: 900; letter-spacing: -.025em; }
body.pmidt-ui.pm-theme-civic .atr-hero p { max-width: 700px; margin: 0; color: #d3e3df; font-size: .75rem; line-height: 1.7; }
body.pmidt-ui.pm-theme-civic .atr-security { min-width: 190px; display: grid; grid-template-columns: 9px 1fr 28px; align-items: center; gap: .65rem; padding: .7rem .8rem; background: rgba(7,31,34,.28); border: 1px solid rgba(255,255,255,.17); border-radius: 7px; }
body.pmidt-ui.pm-theme-civic .atr-security-dot { width: 8px; height: 8px; background: #7dcca6; border-radius: 50%; box-shadow: 0 0 0 4px rgba(125,204,166,.12); }
body.pmidt-ui.pm-theme-civic .atr-security strong, body.pmidt-ui.pm-theme-civic .atr-security small { display: block; }
body.pmidt-ui.pm-theme-civic .atr-security strong { color: #fff; font-size: .69rem; } body.pmidt-ui.pm-theme-civic .atr-security small { margin-top: .14rem; color: #b9d0cb; font-size: .58rem; }
body.pmidt-ui.pm-theme-civic .atr-security > i { color: #e1b96f; font-size: 1.05rem; }

body.pmidt-ui.pm-theme-civic .atr-route-console { margin: .7rem 0; padding: .75rem; background: #fff; border: 1px solid var(--atr-line); border-inline-start: 5px solid var(--atr-forest); border-radius: 5px 8px 8px 5px; box-shadow: 0 8px 20px rgba(30,68,64,.07); }
body.pmidt-ui.pm-theme-civic .atr-route-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; padding: 0 .15rem .55rem; border-bottom: 1px dashed #dbe4e0; }
body.pmidt-ui.pm-theme-civic .atr-route-heading span, body.pmidt-ui.pm-theme-civic .atr-stage-head > div > span { color: var(--atr-forest); font-size: .56rem; font-weight: 900; letter-spacing: .11em; }
body.pmidt-ui.pm-theme-civic .atr-route-heading h2 { margin: .12rem 0 0; font-size: .88rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .atr-route-heading > small { color: var(--atr-muted); font-size: .59rem; }
body.pmidt-ui.pm-theme-civic .atr-route-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
body.pmidt-ui.pm-theme-civic .atr-route-card { min-width: 0; min-height: 96px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .8rem; position: relative; overflow: hidden; color: var(--atr-ink); text-align: start; background: #fbfcfb; border: 1px solid #d8e2de; border-radius: 7px; box-shadow: 0 5px 13px rgba(32,68,64,.055); transition: transform .17s ease,border-color .17s ease,box-shadow .17s ease,background .17s ease; }
body.pmidt-ui.pm-theme-civic .atr-route-card::before { content: ""; width: 5px; position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--atr-steel); }
body.pmidt-ui.pm-theme-civic .atr-route-outbound::before { background: var(--atr-amber); }
body.pmidt-ui.pm-theme-civic .atr-route-card:hover { transform: translateY(-2px); border-color: #9fbab2; box-shadow: 0 9px 19px rgba(31,73,67,.11); }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active { color: #fff; background: var(--atr-navy); border-color: var(--atr-navy); box-shadow: 0 9px 21px rgba(23,59,66,.2); }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active::before { width: 7px; background: #dfb568; }
body.pmidt-ui.pm-theme-civic .atr-route-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--atr-steel); background: #eaf1f5; border: 1px solid #d1e0e8; border-radius: 7px; font-size: 1.12rem; }
body.pmidt-ui.pm-theme-civic .atr-route-outbound .atr-route-icon { color: #7b5a21; background: #f7eedc; border-color: #ead8b5; }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active .atr-route-icon { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
body.pmidt-ui.pm-theme-civic .atr-route-copy small, body.pmidt-ui.pm-theme-civic .atr-route-copy strong, body.pmidt-ui.pm-theme-civic .atr-route-copy em { display: block; }
body.pmidt-ui.pm-theme-civic .atr-route-copy small { color: var(--atr-steel); font-size: .54rem; font-weight: 900; letter-spacing: .08em; }
body.pmidt-ui.pm-theme-civic .atr-route-outbound .atr-route-copy small { color: #966b24; }
body.pmidt-ui.pm-theme-civic .atr-route-copy strong { margin: .16rem 0; font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .atr-route-copy em { color: var(--atr-muted); font-size: .6rem; font-style: normal; line-height: 1.4; }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active .atr-route-copy small, body.pmidt-ui.pm-theme-civic .atr-route-card.is-active .atr-route-copy em { color: #c5dad5; }
body.pmidt-ui.pm-theme-civic .atr-route-path { display: flex; align-items: center; gap: .35rem; padding: .36rem .48rem; color: #536d72; background: #edf2f2; border-radius: 4px; font-size: .57rem; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .atr-route-path i { color: var(--atr-steel); } body.pmidt-ui.pm-theme-civic .atr-route-card.is-active .atr-route-path { color: #fff; background: rgba(255,255,255,.1); }

body.pmidt-ui.pm-theme-civic .atr-command-bar { display: grid; grid-template-columns: minmax(145px,.7fr) minmax(250px,1.4fr) auto auto; align-items: end; gap: .65rem; margin-bottom: .7rem; padding: .72rem; background: #fff; border: 1px solid var(--atr-line); border-inline-start: 5px solid var(--atr-steel); box-shadow: 0 6px 16px rgba(31,68,68,.06); }
body.pmidt-ui.pm-theme-civic .atr-command-context { min-height: 40px; display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; background: #eef4f5; border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .atr-command-context > i { color: var(--atr-steel); font-size: 1rem; } body.pmidt-ui.pm-theme-civic .atr-command-context small, body.pmidt-ui.pm-theme-civic .atr-command-context strong { display: block; }
body.pmidt-ui.pm-theme-civic .atr-command-context small { color: #71848a; font-size: .5rem; font-weight: 900; } body.pmidt-ui.pm-theme-civic .atr-command-context strong { margin-top: .12rem; font-size: .64rem; }
body.pmidt-ui.pm-theme-civic .atr-search-field { display: grid; gap: .3rem; margin: 0; color: #40595d; font-size: .65rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .atr-input-wrap { position: relative; } body.pmidt-ui.pm-theme-civic .atr-input-wrap > i { position: absolute; inset-inline-start: .7rem; top: 50%; z-index: 1; color: var(--atr-steel); transform: translateY(-50%); }
body.pmidt-ui.pm-theme-civic .atr-page .form-control, body.pmidt-ui.pm-theme-civic .atr-page .form-select { width: 100% !important; min-width: 0; min-height: 39px; margin: 0 !important; color: var(--atr-ink); background: #fff; border: 1px solid #cad9d6; border-radius: 5px; font-size: .74rem; }
body.pmidt-ui.pm-theme-civic .atr-input-wrap .form-control { padding-inline-start: 2rem; }
body.pmidt-ui.pm-theme-civic .atr-page .form-control:focus, body.pmidt-ui.pm-theme-civic .atr-page .form-select:focus { border-color: var(--atr-steel); box-shadow: 0 0 0 3px rgba(75,115,145,.14); }
body.pmidt-ui.pm-theme-civic .atr-all-payments { align-self: end; } body.pmidt-ui.pm-theme-civic .atr-all-payments label { min-height: 39px; align-items: center; gap: .45rem; margin: 0; padding: .38rem .55rem; color: #6d541e; background: #f8efdc; border: 1px solid #e7d5ae; border-radius: 5px; cursor: pointer; font-size: .61rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-all-payments label:not(.d-none) { display: flex; } body.pmidt-ui.pm-theme-civic .atr-all-payments label small { display: block; margin-top: .08rem; color: #8b7548; font-size: .51rem; font-weight: 500; }
body.pmidt-ui.pm-theme-civic .atr-command-actions { display: flex; gap: .4rem; }
body.pmidt-ui.pm-theme-civic .atr-command-actions .btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .45rem .75rem; border-radius: 5px; font-size: .67rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .atr-find-btn { color: #fff; background: var(--atr-steel); border-color: var(--atr-steel); } body.pmidt-ui.pm-theme-civic .atr-print-btn { color: #fff; background: var(--atr-forest); border-color: var(--atr-forest); }

body.pmidt-ui.pm-theme-civic .atr-stage { min-height: 430px; overflow: hidden; background: #fff; border: 1px solid var(--atr-line); border-radius: 5px 5px 10px 10px; box-shadow: 0 13px 28px rgba(29,68,64,.08); }
body.pmidt-ui.pm-theme-civic .atr-stage-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: linear-gradient(90deg,#f1f7f5,#fff); border-bottom: 1px solid var(--atr-line); border-inline-start: 5px solid var(--atr-forest); }
body.pmidt-ui.pm-theme-civic .atr-stage-head h2 { margin: .12rem 0 0; color: var(--atr-ink); font-size: .96rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .atr-stage-chip { display: inline-flex; align-items: center; gap: .38rem; padding: .37rem .56rem; color: #526b70; background: #eef3f3; border: 1px solid #d8e2e1; border-radius: 5px; font-size: .59rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-stage-chip.is-inbound { color: #3f627b; background: #e9f1f6; border-color: #d0dfe8; } body.pmidt-ui.pm-theme-civic .atr-stage-chip.is-outbound { color: #685325; background: #f5eedf; border-color: #e5d7b8; }
body.pmidt-ui.pm-theme-civic .atr-stage-body { min-height: 360px; max-height: 620px; padding: .8rem; overflow: auto; }
body.pmidt-ui.pm-theme-civic .atr-empty-state { min-height: 335px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; text-align: center; background: radial-gradient(circle at center,#edf6f2,transparent 63%); }
body.pmidt-ui.pm-theme-civic .atr-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; color: var(--atr-forest); background: #e4f1eb; border: 1px solid #cadeD5; border-radius: 50%; box-shadow: 0 0 0 9px rgba(228,241,235,.5); font-size: 1.35rem; }
body.pmidt-ui.pm-theme-civic .atr-empty-state h3 { margin: 1.1rem 0 .35rem; font-size: .91rem; font-weight: 900; } body.pmidt-ui.pm-theme-civic .atr-empty-state p { max-width: 500px; margin: 0; color: var(--atr-muted); font-size: .72rem; line-height: 1.65; }
body.pmidt-ui.pm-theme-civic .atr-empty-state > div { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; color: #61797a; font-size: .6rem; font-weight: 850; } body.pmidt-ui.pm-theme-civic .atr-empty-state > div i { color: var(--atr-amber); }
body.pmidt-ui.pm-theme-civic .atr-loading-state, body.pmidt-ui.pm-theme-civic .atr-error-state { min-height: 335px; display: flex; align-items: center; justify-content: center; gap: .85rem; }
body.pmidt-ui.pm-theme-civic .atr-loader { width: 31px; height: 31px; flex: 0 0 31px; border: 3px solid #d5e5df; border-top-color: var(--atr-forest); border-radius: 50%; animation: atr-spin .75s linear infinite; }
body.pmidt-ui.pm-theme-civic .atr-loading-state strong, body.pmidt-ui.pm-theme-civic .atr-error-state strong { display: block; font-size: .79rem; } body.pmidt-ui.pm-theme-civic .atr-loading-state p, body.pmidt-ui.pm-theme-civic .atr-error-state p { margin: .2rem 0 0; color: var(--atr-muted); font-size: .66rem; }
body.pmidt-ui.pm-theme-civic .atr-error-state > i { color: var(--atr-brick); font-size: 1.55rem; }

/* Dynamically injected AuditTransfer content */
body.pmidt-ui.pm-theme-civic .atr-stage-body .atr-partial-head { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.05rem -.05rem .65rem; padding: .65rem .75rem; background: #eef6f2; border-inline-start: 4px solid var(--atr-sage); border-bottom: 1px solid #d7e4dd; }
body.pmidt-ui.pm-theme-civic .atr-partial-head > div { display: flex; align-items: center; gap: .6rem; } body.pmidt-ui.pm-theme-civic .atr-partial-head > div > i { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--atr-sage); border-radius: 6px; }
body.pmidt-ui.pm-theme-civic .atr-partial-head small, body.pmidt-ui.pm-theme-civic .atr-partial-head strong { display: block; } body.pmidt-ui.pm-theme-civic .atr-partial-head small { color: var(--atr-sage); font-size: .51rem; font-weight: 900; } body.pmidt-ui.pm-theme-civic .atr-partial-head strong { margin-top: .1rem; font-size: .73rem; } body.pmidt-ui.pm-theme-civic .atr-partial-head em { color: var(--atr-muted); font-size: .58rem; font-style: normal; }
body.pmidt-ui.pm-theme-civic .atr-payment-form { display: grid; grid-template-columns: .8fr 1.5fr .8fr 1.25fr .9fr 1.35fr 1fr auto; align-items: end; gap: .45rem; padding: .65rem; background: #f7f9f8; border: 1px solid #dbe4e0; }
body.pmidt-ui.pm-theme-civic .atr-payment-form label { min-width: 0; display: grid; gap: .28rem; margin: 0; color: #465e62; font-size: .59rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-add-payment { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; color: #fff; background: var(--atr-steel); border-color: var(--atr-steel); border-radius: 5px; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .atr-table-scroll, body.pmidt-ui.pm-theme-civic .atr-stage-body > div > .m-2[style*="overflow"] { max-width: 100%; overflow: auto !important; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table { min-width: 820px; margin: 0; color: var(--atr-ink); background: #fff; border-color: #dbe4e0; font-family: Tahoma,Arial,system-ui,sans-serif; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table thead th { padding: .6rem .5rem; color: #fff !important; background: var(--atr-navy) !important; border-color: rgba(255,255,255,.12) !important; font-size: .63rem; font-weight: 850; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table tbody td { padding: .52rem; color: #334a4d; background: #fff; border-color: #e0e8e4; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table tbody tr:nth-child(even) td { background: #f7faf8; } body.pmidt-ui.pm-theme-civic .atr-stage-body table tbody tr:hover td { background: #edf5f1; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .card { overflow: hidden; border: 1px solid var(--atr-line); border-radius: 7px; box-shadow: 0 7px 17px rgba(29,68,64,.08); }
body.pmidt-ui.pm-theme-civic .atr-stage-body .card-header { color: #fff; background: var(--atr-steel) !important; border: 0; } body.pmidt-ui.pm-theme-civic .atr-stage-body .card-header[style*="red"] { background: var(--atr-brick) !important; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .card-header h3 { margin: .1rem 0; color: #fff; font-size: .72rem; } body.pmidt-ui.pm-theme-civic .atr-stage-body .card-body { color: #3d5357; font-size: .68rem; line-height: 1.7; } body.pmidt-ui.pm-theme-civic .atr-stage-body .card-footer { flex-wrap: wrap; gap: .3rem; background: #f3f7f5 !important; border-top-color: #dbe5e0; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .btn { border-radius: 5px; font-size: .65rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-safe-action-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .65rem; padding: .65rem .75rem; background: #edf5f1; border: 1px solid #d4e3dc; border-inline-start: 4px solid var(--atr-sage); }
body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > div { display: flex; align-items: center; gap: .55rem; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > div > i { color: var(--atr-sage); font-size: 1rem; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar strong, body.pmidt-ui.pm-theme-civic .atr-safe-action-bar small { display: block; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar strong { font-size: .66rem; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar small { margin-top: .1rem; color: var(--atr-muted); font-size: .55rem; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > .btn { min-width: 120px; min-height: 38px; }

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; border: 1px solid #cbdad5 !important; border-radius: 9px !important; box-shadow: 0 24px 60px rgba(18,58,57,.25) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-content { max-width: 100% !important; max-height: calc(100vh - 68px) !important; overflow: auto !important; background: #f6f9f7 !important; }
body.pmidt-ui.pm-theme-civic .atr-page button:focus-visible, body.pmidt-ui.pm-theme-civic .atr-page .form-control:focus-visible, body.pmidt-ui.pm-theme-civic .atr-page .form-select:focus-visible { outline: 3px solid rgba(177,122,45,.38) !important; outline-offset: 2px; box-shadow: none !important; }
@keyframes atr-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) { body.pmidt-ui.pm-theme-civic .atr-command-bar { grid-template-columns: 1fr 1.5fr auto; } body.pmidt-ui.pm-theme-civic .atr-all-payments { grid-column: 1 / 2; } body.pmidt-ui.pm-theme-civic .atr-command-actions { grid-column: 3; grid-row: 1; } body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 700px) {
    body.pmidt-ui.pm-theme-civic .atr-page { padding: .5rem; }
    body.pmidt-ui.pm-theme-civic .atr-hero { min-height: auto; align-items: flex-start; flex-direction: column; padding: 1.05rem; }
    body.pmidt-ui.pm-theme-civic .atr-security { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .atr-route-heading { align-items: flex-start; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .atr-route-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-route-card { min-height: 84px; grid-template-columns: 40px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .atr-route-icon { width: 40px; height: 40px; } body.pmidt-ui.pm-theme-civic .atr-route-path { grid-column: 2; justify-self: start; }
    body.pmidt-ui.pm-theme-civic .atr-command-bar { grid-template-columns: 1fr; align-items: stretch; }
    body.pmidt-ui.pm-theme-civic .atr-command-context, body.pmidt-ui.pm-theme-civic .atr-search-field, body.pmidt-ui.pm-theme-civic .atr-all-payments, body.pmidt-ui.pm-theme-civic .atr-command-actions { grid-column: 1; grid-row: auto; }
    body.pmidt-ui.pm-theme-civic .atr-command-actions .btn { flex: 1; }
    body.pmidt-ui.pm-theme-civic .atr-stage-head { padding: .7rem .75rem; } body.pmidt-ui.pm-theme-civic .atr-stage-chip { display: none; } body.pmidt-ui.pm-theme-civic .atr-stage-body { padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: 1fr 1fr; } body.pmidt-ui.pm-theme-civic .atr-payment-form .atr-field-wide { grid-column: 1 / -1; } body.pmidt-ui.pm-theme-civic .atr-add-payment { width: 100%; }
    body.pmidt-ui.pm-theme-civic .atr-partial-head, body.pmidt-ui.pm-theme-civic .atr-safe-action-bar { align-items: stretch; flex-direction: column; } body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > .btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) { max-width: calc(100vw - 14px) !important; }
}
@media (prefers-reduced-motion: reduce) { body.pmidt-ui.pm-theme-civic .atr-route-card { transition: none; } body.pmidt-ui.pm-theme-civic .atr-loader { animation-duration: 1.8s; } }

/* AuditTransfer production refinement: compact official handoff docket */
body.pmidt-ui.pm-theme-civic .atr-page,
body.pmidt-ui.pm-theme-civic .atr-page * { box-sizing: border-box; letter-spacing: 0 !important; }
body.pmidt-ui.pm-theme-civic .atr-page {
    --atr-navy: #183f47; --atr-teal: #24645b; --atr-steel: #477892; --atr-amber: #b77b28;
    --atr-brick: #984b42; --atr-ink: #263b40; --atr-muted: #64797d; --atr-line: #d4dfdd;
    max-width: 1580px; margin: .45rem auto 1.2rem; padding: .65rem; overflow-x: hidden;
    color: var(--atr-ink); background: #f1f5f5; border: 1px solid #d7e2e1; border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
body.pmidt-ui.pm-theme-civic .atr-masthead {
    min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    position: relative; overflow: hidden; padding: .9rem 1.15rem; color: #fff; background: var(--atr-navy);
    border: 1px solid #12343b; border-bottom: 4px solid var(--atr-amber); border-radius: 7px 7px 3px 3px;
    box-shadow: 0 8px 18px rgba(24,63,71,.14);
}
body.pmidt-ui.pm-theme-civic .atr-masthead::after {
    content: "TRANSFER"; position: absolute; inset-inline-end: 24%; bottom: -18px; color: rgba(255,255,255,.045);
    font-size: 4.4rem; font-weight: 900; line-height: 1; pointer-events: none;
}
body.pmidt-ui.pm-theme-civic .atr-masthead-copy,
body.pmidt-ui.pm-theme-civic .atr-security { position: relative; z-index: 1; }
body.pmidt-ui.pm-theme-civic .atr-eyebrow { color: #c5ddd8; font-size: .66rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .atr-eyebrow i { color: #efc273; }
body.pmidt-ui.pm-theme-civic .atr-masthead h1 { margin: .26rem 0 .15rem; color: #fff; font-size: 1.42rem; font-weight: 900; line-height: 1.25; }
body.pmidt-ui.pm-theme-civic .atr-masthead p { margin: 0; color: #d8e7e4; font-size: .74rem; line-height: 1.5; }
body.pmidt-ui.pm-theme-civic .atr-security {
    min-width: 205px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: .65rem;
    padding: .52rem .68rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
}
body.pmidt-ui.pm-theme-civic .atr-security-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #f1c477; background: rgba(11,43,48,.35); border: 1px solid rgba(241,196,119,.42); border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .atr-security small { color: #acd0c9; font-size: .58rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .atr-security strong { margin-top: .12rem; font-size: .72rem; }

body.pmidt-ui.pm-theme-civic .atr-routing-instrument {
    display: grid; grid-template-columns: 185px minmax(0,1fr); margin: .65rem 0; overflow: hidden;
    background: #fff; border: 1px solid #cad8d6; border-radius: 5px; box-shadow: 0 5px 13px rgba(31,70,69,.06);
}
body.pmidt-ui.pm-theme-civic .atr-route-heading {
    grid-row: 1 / 3; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: .2rem;
    margin: 0; padding: .75rem .8rem; background: #eef4f3; border: 0; border-inline-start: 4px solid var(--atr-amber); border-inline-end: 1px solid #d5e1df;
}
body.pmidt-ui.pm-theme-civic .atr-route-heading span { display: flex; align-items: center; gap: .38rem; color: #234d52; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .atr-route-heading span i { color: #a86f20; }
body.pmidt-ui.pm-theme-civic .atr-route-heading h2 { margin: .08rem 0; font-size: .79rem; }
body.pmidt-ui.pm-theme-civic .atr-route-heading > small { color: #687c7e; font-size: .58rem; line-height: 1.45; }
body.pmidt-ui.pm-theme-civic .atr-route-grid { grid-column: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; border-bottom: 1px solid #d5e1df; }
body.pmidt-ui.pm-theme-civic .atr-route-card {
    min-height: 67px; grid-template-columns: 26px 36px minmax(0,1fr) auto; gap: .5rem; padding: .5rem .62rem;
    background: #fff; border: 0; border-inline-end: 1px solid #d7e2df; border-radius: 0; box-shadow: none;
    transition: background .15s ease, box-shadow .15s ease;
}
body.pmidt-ui.pm-theme-civic .atr-route-card:last-child { border-inline-end: 0; }
body.pmidt-ui.pm-theme-civic .atr-route-card::before { width: 0; inset-block: auto; inset-inline: 0; bottom: 0; height: 3px; }
body.pmidt-ui.pm-theme-civic .atr-route-card:hover { transform: none; background: #f0f7f5; border-color: #d7e2df; box-shadow: inset 0 0 0 1px #bad0ca; }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active { z-index: 1; color: #fff; background: var(--atr-teal); border-color: var(--atr-teal); box-shadow: inset 0 -3px 0 #e0ad59; }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active::before { width: auto; height: 3px; background: #e0ad59; }
body.pmidt-ui.pm-theme-civic .atr-route-step { color: #9b6b27; font-size: .57rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .atr-route-card.is-active .atr-route-step { color: #f2cf91; }
body.pmidt-ui.pm-theme-civic .atr-route-icon { width: 36px; height: 36px; color: var(--atr-steel); border-radius: 4px; font-size: .9rem; }
body.pmidt-ui.pm-theme-civic .atr-route-copy small { font-size: .54rem; }
body.pmidt-ui.pm-theme-civic .atr-route-copy strong { margin: .08rem 0; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .atr-route-copy em { font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .atr-route-path { padding: .3rem .42rem; border-radius: 3px; font-size: .55rem; }

body.pmidt-ui.pm-theme-civic .atr-command-bar {
    grid-column: 2; grid-template-columns: minmax(155px,.65fr) minmax(230px,1.2fr) auto auto; gap: .55rem;
    margin: 0; padding: .52rem .62rem; border: 0; border-inline-start: 0; box-shadow: none; background: #f8faf9;
}
body.pmidt-ui.pm-theme-civic .atr-command-context { min-height: 37px; padding: .35rem .5rem; border: 1px solid #d9e3e1; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-command-context small { font-size: .52rem; }
body.pmidt-ui.pm-theme-civic .atr-command-context strong { font-size: .64rem; }
body.pmidt-ui.pm-theme-civic .atr-search-field { gap: .2rem; font-size: .61rem; }
body.pmidt-ui.pm-theme-civic .atr-page .form-control,
body.pmidt-ui.pm-theme-civic .atr-page .form-select { min-height: 37px; border-radius: 4px; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .atr-all-payments label { min-height: 37px; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-command-actions .btn { min-height: 37px; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-find-btn { background: var(--atr-teal); border-color: var(--atr-teal); }
body.pmidt-ui.pm-theme-civic .atr-print-btn { color: #315d71; background: #e9f1f4; border-color: #c5d8df; }

body.pmidt-ui.pm-theme-civic .atr-stage { min-height: 390px; border-radius: 5px 5px 8px 8px; box-shadow: 0 9px 20px rgba(28,65,65,.07); }
body.pmidt-ui.pm-theme-civic .atr-stage-head { min-height: 56px; padding: .62rem .8rem; background: #f4f8f7; border-inline-start-color: var(--atr-teal); }
body.pmidt-ui.pm-theme-civic .atr-stage-head > div > span { color: var(--atr-steel); font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .atr-stage-head h2 { margin-top: .1rem; font-size: .92rem; }
body.pmidt-ui.pm-theme-civic .atr-stage-chip { border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-stage-body { min-height: 330px; max-height: min(68vh,720px); padding: .65rem; overflow: auto; overscroll-behavior: contain; }
body.pmidt-ui.pm-theme-civic .atr-empty-state,
body.pmidt-ui.pm-theme-civic .atr-loading-state,
body.pmidt-ui.pm-theme-civic .atr-error-state { min-height: 305px; background: repeating-linear-gradient(0deg,#fff 0 29px,#edf2f1 29px 30px); }
body.pmidt-ui.pm-theme-civic .atr-empty-icon { width: 52px; height: 52px; color: var(--atr-steel); background: #f1f6f7; border-radius: 6px; box-shadow: 0 0 0 6px rgba(232,240,240,.65); }

body.pmidt-ui.pm-theme-civic .atr-builder,
body.pmidt-ui.pm-theme-civic .atr-result-register,
body.pmidt-ui.pm-theme-civic .atr-allpay-register { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--atr-line); border-radius: 5px; }
body.pmidt-ui.pm-theme-civic .atr-partial-head { min-height: 49px; margin: 0; padding: .52rem .65rem; background: #edf5f2; border-bottom: 1px solid #d5e2dd; border-inline-start-color: var(--atr-teal); }
body.pmidt-ui.pm-theme-civic .atr-partial-head > div > i { width: 31px; height: 31px; background: var(--atr-teal); border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-partial-head small { color: var(--atr-teal); font-size: .54rem; }
body.pmidt-ui.pm-theme-civic .atr-partial-head strong { font-size: .71rem; }
body.pmidt-ui.pm-theme-civic .atr-partial-head em { font-size: .59rem; }
body.pmidt-ui.pm-theme-civic .atr-partial-head-amber { border-inline-start-color: var(--atr-amber); background: #faf5e9; }
body.pmidt-ui.pm-theme-civic .atr-partial-head-amber > div > i { background: var(--atr-amber); }
body.pmidt-ui.pm-theme-civic .atr-partial-head-amber small { color: #8a5c1c; }
body.pmidt-ui.pm-theme-civic .atr-partial-head-steel { border-inline-start-color: var(--atr-steel); background: #edf3f6; }
body.pmidt-ui.pm-theme-civic .atr-partial-head-steel > div > i { background: var(--atr-steel); }
body.pmidt-ui.pm-theme-civic .atr-partial-head-steel small { color: var(--atr-steel); }
body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: .8fr 1.45fr .72fr 1.15fr .85fr 1.25fr .85fr auto; padding: .58rem; border: 0; border-bottom: 1px solid var(--atr-line); background: #f8faf9; }
body.pmidt-ui.pm-theme-civic .atr-payment-form label { font-size: .59rem; }
body.pmidt-ui.pm-theme-civic .atr-add-payment { min-height: 37px; gap: .3rem; background: var(--atr-steel); border-color: var(--atr-steel); }
body.pmidt-ui.pm-theme-civic .atr-register-head { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .48rem .62rem; background: #fff; border-bottom: 1px solid var(--atr-line); }
body.pmidt-ui.pm-theme-civic .atr-register-head > div { display: flex; align-items: center; gap: .48rem; }
body.pmidt-ui.pm-theme-civic .atr-register-head i { color: var(--atr-steel); font-size: .95rem; }
body.pmidt-ui.pm-theme-civic .atr-register-head small,
body.pmidt-ui.pm-theme-civic .atr-register-head strong { display: block; }
body.pmidt-ui.pm-theme-civic .atr-register-head small { color: var(--atr-steel); font-size: .52rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .atr-register-head strong { font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .atr-register-head > span { color: var(--atr-muted); font-size: .57rem; }
body.pmidt-ui.pm-theme-civic .atr-table-scroll { width: 100%; max-width: 100%; overflow: auto !important; overscroll-behavior: contain; }
body.pmidt-ui.pm-theme-civic .atr-temp-register { max-height: min(31vh,300px); }
body.pmidt-ui.pm-theme-civic .atr-result-scroll { max-height: min(55vh,560px); }
body.pmidt-ui.pm-theme-civic .atr-allpay-scroll { max-height: min(55vh,570px); }
body.pmidt-ui.pm-theme-civic .atr-stage-body table { width: 100%; min-width: 840px; border-collapse: separate; border-spacing: 0; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table thead th { position: sticky; top: 0; z-index: 3; padding: .55rem .48rem; background: var(--atr-navy) !important; }
body.pmidt-ui.pm-theme-civic .atr-stage-body table tbody td { padding: .48rem; }
body.pmidt-ui.pm-theme-civic .atr-row-complete td { color: #6c4c48 !important; background: #fbf2f0 !important; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .btn { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border-radius: 4px; }
body.pmidt-ui.pm-theme-civic .atr-accept-btn { white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .atr-safe-action-bar { position: sticky; bottom: 0; z-index: 4; margin: 0; padding: .58rem .7rem; background: #edf5f2; border: 0; border-top: 1px solid #d4e3dc; border-inline-start: 4px solid var(--atr-teal); }
body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > .btn { min-width: 140px; }

body.pmidt-ui.pm-theme-civic .atr-register-filter { display: grid; grid-template-columns: 90px minmax(180px,320px); align-items: center; gap: .55rem; padding: .55rem .65rem; background: #f8faf9; border-bottom: 1px solid var(--atr-line); }
body.pmidt-ui.pm-theme-civic .atr-register-filter label { margin: 0; color: #425d62; font-size: .63rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .atr-allpay-register table { min-width: 1180px; }
body.pmidt-ui.pm-theme-civic .atr-situation-select { width: 145px !important; }
body.pmidt-ui.pm-theme-civic .atr-reason-select { width: 240px !important; }
body.pmidt-ui.pm-theme-civic .atr-reason-amount { width: 105px !important; margin-top: .3rem !important; }
body.pmidt-ui.pm-theme-civic .atr-allpay-save { border-inline-start-color: var(--atr-amber); }

body.pmidt-ui.pm-theme-civic .atr-docket-list { max-height: min(58vh,610px); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; padding: .55rem; overflow: auto; overscroll-behavior: contain; background: #f5f8f7; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .atr-docket { margin: 0; border-radius: 5px; box-shadow: 0 4px 11px rgba(28,65,65,.07); }
body.pmidt-ui.pm-theme-civic .atr-stage-body .atr-docket .card-header { min-height: 51px; display: grid; grid-template-columns: .8fr 1fr auto; align-items: center; gap: .55rem; padding: .5rem .62rem; background: var(--atr-steel) !important; border-inline-start: 4px solid #d9b36e; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .atr-docket-received .card-header { background: var(--atr-teal) !important; }
body.pmidt-ui.pm-theme-civic .atr-docket .card-header small,
body.pmidt-ui.pm-theme-civic .atr-docket .card-header strong { display: block; color: #fff; }
body.pmidt-ui.pm-theme-civic .atr-docket .card-header small { color: #dbe9e7; font-size: .51rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-docket .card-header strong { margin-top: .08rem; font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .atr-status { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .42rem; color: #fff; background: rgba(0,0,0,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 3px; font-size: .55rem; font-weight: 800; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .atr-docket .card-body { position: relative; padding: .58rem .65rem .75rem; }
body.pmidt-ui.pm-theme-civic .atr-docket-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .38rem .65rem; margin: 0; }
body.pmidt-ui.pm-theme-civic .atr-docket-meta div { min-width: 0; padding-bottom: .28rem; border-bottom: 1px dashed #dde6e3; }
body.pmidt-ui.pm-theme-civic .atr-docket-meta .atr-meta-wide { grid-column: span 2; }
body.pmidt-ui.pm-theme-civic .atr-docket-meta dt { color: #6a7d80; font-size: .52rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-docket-meta dd { margin: .1rem 0 0; overflow: hidden; color: #2f474c; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .atr-situation { display: inline-flex; align-items: center; gap: .28rem; margin-top: .48rem; padding: .25rem .4rem; border-radius: 3px; font-size: .57rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .atr-situation.is-released { color: #28614e; background: #e5f1eb; border: 1px solid #c7ded3; }
body.pmidt-ui.pm-theme-civic .atr-situation.is-exception { color: #824139; background: #f7e9e6; border: 1px solid #e6c9c3; }
body.pmidt-ui.pm-theme-civic .atr-stage-body .atr-docket .card-footer { display: flex; justify-content: flex-end; gap: .32rem; padding: .45rem .55rem; background: #f1f5f4 !important; }
body.pmidt-ui.pm-theme-civic .atr-docket-actions .btn { margin: 0 !important; }

body.pmidt-ui.pm-theme-civic .atr-upload-dialog { color: var(--atr-ink,#263b40); background: #fff; border: 1px solid #d2dfdc; border-radius: 5px; font-family: Tahoma,Arial,system-ui,sans-serif; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog > header { display: flex; align-items: center; gap: .55rem; padding: .58rem .65rem; background: #edf4f3; border-bottom: 1px solid #d2dfdc; border-inline-start: 4px solid #477892; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog > header > i { color: #477892; font-size: 1rem; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog header strong,
body.pmidt-ui.pm-theme-civic .atr-upload-dialog header small { display: block; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog header strong { font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog header small { margin-top: .12rem; color: #667b7e; font-size: .58rem; }
body.pmidt-ui.pm-theme-civic .atr-upload-body { padding: .7rem; }
body.pmidt-ui.pm-theme-civic .atr-upload-picker { display: grid; gap: .4rem; color: #405b60; font-size: .64rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .atr-upload-actions { display: flex; justify-content: flex-end; margin-top: .65rem; padding-top: .6rem; border-top: 1px solid #dce5e2; }
body.pmidt-ui.pm-theme-civic .atr-upload-dialog .btn { min-height: 37px; display: inline-flex; align-items: center; gap: .35rem; border-radius: 4px; font-size: .65rem; font-weight: 800; }

body.pmidt-ui.pm-theme-civic #repoDialog.atr-report-dialog,
body.pmidt-ui.pm-theme-civic #repoContainer { width: 100% !important; max-width: 100% !important; max-height: calc(100vh - 82px) !important; overflow: auto !important; }
body.pmidt-ui.pm-theme-civic #repoContainer embed,
body.pmidt-ui.pm-theme-civic #repoContainer iframe { width: 100% !important; height: calc(100vh - 105px) !important; min-height: 340px; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) { width: min(1000px,calc(100vw - 24px)) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-content { width: 100% !important; }

@media (max-width: 1100px) {
    body.pmidt-ui.pm-theme-civic .atr-routing-instrument { grid-template-columns: 165px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .atr-command-bar { grid-template-columns: minmax(140px,.7fr) minmax(210px,1.2fr) auto; }
    body.pmidt-ui.pm-theme-civic .atr-all-payments { grid-column: 1; }
    body.pmidt-ui.pm-theme-civic .atr-command-actions { grid-column: 3; grid-row: 1; }
    body.pmidt-ui.pm-theme-civic .atr-route-path { display: none; }
    body.pmidt-ui.pm-theme-civic .atr-route-card { grid-template-columns: 25px 36px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body.pmidt-ui.pm-theme-civic .atr-page { padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .atr-masthead { min-height: auto; align-items: flex-start; flex-direction: column; gap: .75rem; padding: .85rem; }
    body.pmidt-ui.pm-theme-civic .atr-security { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .atr-routing-instrument { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-route-heading { grid-column: 1; grid-row: auto; border-inline-end: 0; border-bottom: 1px solid #d5e1df; }
    body.pmidt-ui.pm-theme-civic .atr-route-grid,
    body.pmidt-ui.pm-theme-civic .atr-command-bar { grid-column: 1; }
    body.pmidt-ui.pm-theme-civic .atr-route-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-route-card { border-bottom: 1px solid #d7e2df; border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic .atr-command-bar { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-command-context,
    body.pmidt-ui.pm-theme-civic .atr-search-field,
    body.pmidt-ui.pm-theme-civic .atr-all-payments,
    body.pmidt-ui.pm-theme-civic .atr-command-actions { grid-column: 1; grid-row: auto; }
    body.pmidt-ui.pm-theme-civic .atr-command-actions .btn { flex: 1; }
    body.pmidt-ui.pm-theme-civic .atr-stage-body { max-height: 72vh; padding: .42rem; }
    body.pmidt-ui.pm-theme-civic .atr-docket-list { grid-template-columns: 1fr; max-height: 62vh; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: 1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-register-head > span { display: none; }
    body.pmidt-ui.pm-theme-civic .atr-safe-action-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .atr-safe-action-bar > .btn { width: 100%; }
}
@media (max-width: 480px) {
    body.pmidt-ui.pm-theme-civic .atr-masthead h1 { font-size: 1.2rem; }
    body.pmidt-ui.pm-theme-civic .atr-route-card { grid-template-columns: 24px 34px minmax(0,1fr); padding-inline: .48rem; }
    body.pmidt-ui.pm-theme-civic .atr-route-icon { width: 34px; height: 34px; }
    body.pmidt-ui.pm-theme-civic .atr-payment-form { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-payment-form .atr-field-wide { grid-column: auto; }
    body.pmidt-ui.pm-theme-civic .atr-register-filter { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .atr-docket .card-header { grid-template-columns: 1fr 1fr !important; }
    body.pmidt-ui.pm-theme-civic .atr-status { grid-column: 1 / -1; justify-self: start; }
    body.pmidt-ui.pm-theme-civic .atr-docket-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .atr-docket-actions { justify-content: stretch !important; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .atr-docket-actions .btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .atr-upload-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .atr-route-card { transition: none; }
    body.pmidt-ui.pm-theme-civic .atr-loader { animation-duration: 1.8s; }
}

/* Insurance Audit workdesk */
body.pmidt-ui.pm-theme-civic .iaw-page {
    --iaw-ink: #1f3f45;
    --iaw-teal: #2b696f;
    --iaw-teal-deep: #1b4f55;
    --iaw-amber: #b98942;
    --iaw-line: #cfddd9;
    --iaw-panel: #f6fbf9;
    width: calc(100% - 18px);
    max-width: 1900px;
    height: calc(100dvh - 154px);
    min-height: 560px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.42rem;
    margin: 0.3rem auto 0;
    padding: 0.5rem;
    overflow: hidden;
    direction: rtl;
}

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.iaw-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.iaw-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
}

body.pmidt-ui.pm-theme-civic .iaw-page .adt-hero {
    min-height: 78px;
    padding: 0.7rem 1rem;
    background: linear-gradient(112deg, var(--iaw-teal-deep), var(--iaw-teal) 70%, #2c5c62);
    border-radius: 9px 9px 4px 4px;
}

body.pmidt-ui.pm-theme-civic .iaw-page .adt-hero p {
    font-size: 0.74rem;
}

body.pmidt-ui.pm-theme-civic .iaw-desk {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    margin-top: 0;
    background: #ffffff;
    border: 1px solid var(--iaw-line);
    box-shadow: 0 10px 24px rgba(31, 63, 69, 0.08);
}

body.pmidt-ui.pm-theme-civic .iaw-page .adt-desk-head {
    min-height: 54px;
    padding: 0.5rem 0.8rem;
    background: linear-gradient(90deg, #eef7f5, #f8fbfa);
    border-bottom: 1px solid var(--iaw-line);
}

body.pmidt-ui.pm-theme-civic .iaw-command-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

body.pmidt-ui.pm-theme-civic .iaw-desk > .adt-desk-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

body.pmidt-ui.pm-theme-civic .iaw-command-row .btn {
    min-height: 38px;
    padding: 0.4rem 0.72rem;
    font-size: 0.76rem;
    font-weight: 800;
}

body.pmidt-ui.pm-theme-civic .iaw-command-row .btn.iaw-tab-active,
body.pmidt-ui.pm-theme-civic .iaw-command-row .btn[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--iaw-teal), #3a7d84);
    border-color: rgba(58, 125, 132, 0.6);
}

body.pmidt-ui.pm-theme-civic .iaw-surface {
    min-height: 0;
    height: 100%;
    max-height: none;
    padding: 0.75rem;
    border: 1px solid var(--iaw-line);
    background: linear-gradient(180deg, #fff, var(--iaw-panel));
    overflow: hidden;
}

body.pmidt-ui.pm-theme-civic .iaw-state {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #c8dad6;
    border-radius: 8px;
    color: #4f6a6e;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    background: #f8fcfb;
}

body.pmidt-ui.pm-theme-civic .iaw-state-loading {
    color: #345d63;
}

body.pmidt-ui.pm-theme-civic .iaw-state-error {
    color: #8a4a42;
    border-color: #d8b9b3;
    background: #fff7f6;
}

body.pmidt-ui.pm-theme-civic .ia-grid-shell,
body.pmidt-ui.pm-theme-civic .ia-table-shell,
body.pmidt-ui.pm-theme-civic .ia-pdf-panel,
body.pmidt-ui.pm-theme-civic .ia-detail-shell,
body.pmidt-ui.pm-theme-civic .ia-benefit-shell,
body.pmidt-ui.pm-theme-civic .ia-accept-table-shell {
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--iaw-line);
    background: #fff;
}

body.pmidt-ui.pm-theme-civic .ia-accept-grid {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
    gap: 0.75rem;
}

body.pmidt-ui.pm-theme-civic .ia-review-grid {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

body.pmidt-ui.pm-theme-civic .ia-review-panel {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--iaw-line);
    box-shadow: 0 5px 14px rgba(23, 59, 64, .07);
}

body.pmidt-ui.pm-theme-civic .ia-review-panel-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .7rem;
    background: #f1f6f4;
    border-bottom: 1px solid var(--iaw-line);
    border-inline-start: 4px solid var(--iaw-teal);
}

body.pmidt-ui.pm-theme-civic .ia-document-panel-head { border-inline-start-color: var(--iaw-amber); }
body.pmidt-ui.pm-theme-civic .ia-review-panel-code { display: block; color: #61787c; font-size: .64rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .ia-review-panel-head h3 { margin: .1rem 0 0; color: var(--iaw-ink); font-size: .9rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ia-review-panel-state { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .48rem; color: var(--iaw-teal-deep); background: #e5f0ed; border: 1px solid #c5dcd6; font-size: .68rem; font-weight: 850; white-space: nowrap; }

body.pmidt-ui.pm-theme-civic .ia-register-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem;
    background: #f1f6f4;
    border-bottom: 1px solid var(--iaw-line);
    border-inline-start: 4px solid var(--iaw-teal);
}

body.pmidt-ui.pm-theme-civic .ia-register-summary,
body.pmidt-ui.pm-theme-civic .ia-register-summary > div,
body.pmidt-ui.pm-theme-civic .ia-register-search,
body.pmidt-ui.pm-theme-civic .ia-primary-actions,
body.pmidt-ui.pm-theme-civic .ia-action-button,
body.pmidt-ui.pm-theme-civic .ia-rejection-decision summary {
    display: flex;
    align-items: center;
}

body.pmidt-ui.pm-theme-civic .ia-register-summary { min-width: 190px; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .ia-register-summary > div { align-items: flex-start; flex-direction: column; line-height: 1.35; }
body.pmidt-ui.pm-theme-civic .ia-register-summary h3 { margin: 0; color: var(--iaw-teal-deep); font-size: .78rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ia-register-summary span { color: #61787c; font-size: .6875rem; }
body.pmidt-ui.pm-theme-civic .ia-register-summary span b { color: var(--iaw-teal); font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .ia-register-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; color: #fff !important; background: var(--iaw-teal); border-radius: 3px; }

body.pmidt-ui.pm-theme-civic .ia-register-search {
    width: min(315px, 48%);
    min-width: 220px;
    position: relative;
    color: #557078;
}

body.pmidt-ui.pm-theme-civic .ia-register-search > i { position: absolute; inset-inline-start: .65rem; pointer-events: none; }
body.pmidt-ui.pm-theme-civic .ia-register-search input {
    width: 100%;
    height: 40px;
    padding: .4rem 2.55rem .4rem 2.2rem;
    color: var(--iaw-ink);
    background: #fff;
    border: 1px solid #b9cdc8;
    border-radius: 3px;
    font-family: inherit;
    font-size: .75rem;
}
body.pmidt-ui.pm-theme-civic .ia-register-search input::placeholder { color: #728589; opacity: 1; }
body.pmidt-ui.pm-theme-civic .ia-register-search button { width: 40px; height: 40px; display: grid; place-items: center; position: absolute; inset-inline-end: 0; padding: 0; color: #587075; background: transparent; border: 0; }

body.pmidt-ui.pm-theme-civic .ia-grid-shell,
body.pmidt-ui.pm-theme-civic .ia-table-shell,
body.pmidt-ui.pm-theme-civic .ia-pdf-panel,
body.pmidt-ui.pm-theme-civic .ia-accept-table-shell {
    min-height: 0;
    height: 100%;
}

body.pmidt-ui.pm-theme-civic .ia-review-panel > .ia-table-shell,
body.pmidt-ui.pm-theme-civic .ia-review-panel > .ia-pdf-panel {
    height: auto;
    border: 0;
}

body.pmidt-ui.pm-theme-civic .ia-accept-table,
body.pmidt-ui.pm-theme-civic .ia-claims-table,
body.pmidt-ui.pm-theme-civic .ia-detail-table {
    margin-bottom: 0;
    min-width: 980px;
}

body.pmidt-ui.pm-theme-civic .ia-claims-table {
    min-width: 840px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .75rem;
}

body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(1) { width: 46px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(2) { width: 108px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(3) { width: 112px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(4) { width: 112px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(5) { width: 150px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(6) { width: 62px; }
body.pmidt-ui.pm-theme-civic .ia-claims-table th:nth-child(7) { width: 250px; }

body.pmidt-ui.pm-theme-civic .ia-claims-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: .62rem .5rem;
    color: #fff;
    background: var(--iaw-teal-deep);
    border-color: #45646a;
    font-weight: 850;
    white-space: nowrap;
}

body.pmidt-ui.pm-theme-civic .ia-claims-table thead th:nth-child(7),
body.pmidt-ui.pm-theme-civic .ia-action-cell {
    position: sticky;
    inset-inline-end: 0;
    box-shadow: 4px 0 10px rgba(23, 59, 64, .1);
}
body.pmidt-ui.pm-theme-civic .ia-claims-table thead th:nth-child(7) { z-index: 6; }
body.pmidt-ui.pm-theme-civic .ia-action-cell { z-index: 2; background: #fff; }
body.pmidt-ui.pm-theme-civic .ia-claims-table .ia-claim-row:nth-child(4n + 3) .ia-action-cell { background: #f8fbfa; }

body.pmidt-ui.pm-theme-civic .ia-claims-table tbody td { padding: .55rem .48rem; border-color: #dfe8e5; }
body.pmidt-ui.pm-theme-civic .ia-claims-table .ia-claim-row:nth-child(4n + 3) td { background: #f8fbfa; }
body.pmidt-ui.pm-theme-civic .ia-claims-table .ia-claim-row:hover td { background: #eef5f3; }
body.pmidt-ui.pm-theme-civic .ia-expand-heading { width: 42px; }
body.pmidt-ui.pm-theme-civic .ia-claim-identity,
body.pmidt-ui.pm-theme-civic .ia-beneficiary-cell { text-align: right !important; }
body.pmidt-ui.pm-theme-civic .ia-claim-identity > strong,
body.pmidt-ui.pm-theme-civic .ia-claim-identity > span,
body.pmidt-ui.pm-theme-civic .ia-claim-identity > small,
body.pmidt-ui.pm-theme-civic .ia-beneficiary-cell > strong,
body.pmidt-ui.pm-theme-civic .ia-beneficiary-cell > span { display: block; }
body.pmidt-ui.pm-theme-civic .ia-claim-reference { color: var(--iaw-teal-deep); font-size: .78rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .ia-employee-number { margin-top: .13rem; color: #61787c; font-size: .6875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .ia-claim-identity > small { margin-top: .22rem; color: var(--iaw-teal); font-size: .6875rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .ia-claim-identity > small i { margin-inline-end: .22rem; font-size: .38rem; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .ia-employee-name { color: #29464b; font-weight: 800; line-height: 1.55; }
body.pmidt-ui.pm-theme-civic .ia-beneficiary-cell > strong { color: var(--iaw-ink); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ia-relation-badge,
body.pmidt-ui.pm-theme-civic .ia-currency-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: .2rem .35rem; color: #405b60; background: #edf3f2; border: 1px solid #d3e0dd; font-size: .6875rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .ia-relation-badge { width: fit-content; margin-top: .2rem; }
body.pmidt-ui.pm-theme-civic .ia-currency-badge { color: #6d511d; background: #fff6e5; border-color: #ead3a8; direction: ltr; }
body.pmidt-ui.pm-theme-civic .ia-date-flow { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: .2rem; }
body.pmidt-ui.pm-theme-civic .ia-date-flow span { min-width: 0; }
body.pmidt-ui.pm-theme-civic .ia-date-flow small,
body.pmidt-ui.pm-theme-civic .ia-date-flow b { display: block; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .ia-date-flow small { color: #61787c; font-size: .6875rem; }
body.pmidt-ui.pm-theme-civic .ia-date-flow b { margin-top: .12rem; color: #29464b; font-size: .7rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .ia-date-flow > i { color: #79a097; font-size: .55rem; }

body.pmidt-ui.pm-theme-civic .ia-detail-table {
    min-width: 1180px;
}

body.pmidt-ui.pm-theme-civic .ia-accept-table th,
body.pmidt-ui.pm-theme-civic .ia-accept-table td,
body.pmidt-ui.pm-theme-civic .ia-claims-table th,
body.pmidt-ui.pm-theme-civic .ia-claims-table td,
body.pmidt-ui.pm-theme-civic .ia-detail-table th,
body.pmidt-ui.pm-theme-civic .ia-detail-table td,
body.pmidt-ui.pm-theme-civic .ia-benefit-table th,
body.pmidt-ui.pm-theme-civic .ia-benefit-table td {
    text-align: center;
    vertical-align: middle;
}

body.pmidt-ui.pm-theme-civic .ia-expand-cell {
    width: 42px;
    padding: .35rem !important;
}

body.pmidt-ui.pm-theme-civic .ia-expand-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--iaw-teal-deep);
    background: #e6f0ed;
    border: 1px solid #c5d9d4;
    border-radius: 2px;
}

body.pmidt-ui.pm-theme-civic .ia-expand-button:hover { color: #fff; background: var(--iaw-teal); border-color: var(--iaw-teal); }
body.pmidt-ui.pm-theme-civic .ia-expand-button[aria-expanded="true"] { color: #fff; background: var(--iaw-teal); border-color: var(--iaw-teal); }

body.pmidt-ui.pm-theme-civic .ia-reject-input {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    resize: vertical;
    border-color: #d8c7c4;
    background: #fff;
    font-size: .75rem;
}

body.pmidt-ui.pm-theme-civic .ia-reject-input:focus { border-color: #b46b63; box-shadow: 0 0 0 3px rgba(154, 64, 59, .1); }

body.pmidt-ui.pm-theme-civic .ia-action-cell {
    min-width: 250px;
    white-space: normal;
}

body.pmidt-ui.pm-theme-civic .ia-primary-actions { justify-content: center; gap: .28rem; }
body.pmidt-ui.pm-theme-civic .ia-action-button { min-height: 40px; justify-content: center; gap: .26rem; padding: .3rem .42rem; border: 1px solid transparent; border-radius: 3px; font-size: .6875rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .ia-action-benefit { color: #704d16; background: #fff3da; border-color: #e3c58c; }
body.pmidt-ui.pm-theme-civic .ia-action-document { color: #315d68; background: #e8f1f3; border-color: #bfd2d7; }
body.pmidt-ui.pm-theme-civic .ia-action-approve { color: #fff; background: var(--iaw-teal); border-color: var(--iaw-teal); }
body.pmidt-ui.pm-theme-civic .ia-action-button:hover { filter: brightness(.92); transform: translateY(-1px); }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision { margin: .32rem auto 0; border-top: 1px solid #dce7e4; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision summary { min-height: 40px; justify-content: center; gap: .3rem; padding-top: .3rem; color: var(--idw-red); cursor: pointer; font-size: .6875rem; font-weight: 850; list-style: none; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision summary::-webkit-details-marker { display: none; }
body.pmidt-ui.pm-theme-civic .ia-rejection-close-label { display: none; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision[open] .ia-rejection-open-label { display: none; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision[open] .ia-rejection-close-label { display: inline; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision summary i:last-child { margin-inline-start: auto; transition: transform .16s ease; }
body.pmidt-ui.pm-theme-civic .ia-rejection-decision[open] summary i:last-child { transform: rotate(180deg); }
body.pmidt-ui.pm-theme-civic .ia-rejection-panel { padding-top: .38rem; text-align: right; }
body.pmidt-ui.pm-theme-civic .ia-rejection-panel label { display: block; margin-bottom: .2rem; color: #684642; font-size: .6875rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .ia-final-reject { width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; margin-top: .3rem; color: #fff; background: var(--idw-red); border: 1px solid var(--idw-red); border-radius: 3px; font-size: .6875rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .ia-detail-row > td { padding: 0 !important; background: #edf4f2 !important; border-bottom: 2px solid #bfcfcb; }
body.pmidt-ui.pm-theme-civic .ia-detail-row .ia-detail-shell { margin: .55rem; box-shadow: 0 3px 10px rgba(23, 59, 64, .06); }
body.pmidt-ui.pm-theme-civic .ia-search-empty > td > div,
body.pmidt-ui.pm-theme-civic .ia-inline-empty { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem; padding: 1rem; color: #61787c; text-align: center; }
body.pmidt-ui.pm-theme-civic .ia-search-empty i,
body.pmidt-ui.pm-theme-civic .ia-inline-empty i { color: #64827f; font-size: 1.2rem; }
body.pmidt-ui.pm-theme-civic .ia-search-empty strong,
body.pmidt-ui.pm-theme-civic .ia-inline-empty strong { color: var(--iaw-ink); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ia-search-empty span,
body.pmidt-ui.pm-theme-civic .ia-inline-empty span { font-size: .6875rem; }

body.pmidt-ui.pm-theme-civic .ia-document-empty {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .38rem;
    padding: 1.25rem;
    color: #677b7e;
    background: #f7faf9;
    text-align: center;
}

body.pmidt-ui.pm-theme-civic .ia-document-empty > i { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: .2rem; color: #9a403b; background: #faece9; border: 1px solid #e3c2be; font-size: 1.25rem; }
body.pmidt-ui.pm-theme-civic .ia-document-empty strong { color: var(--iaw-ink); font-size: .82rem; }
body.pmidt-ui.pm-theme-civic .ia-document-empty span { max-width: 260px; font-size: .68rem; line-height: 1.7; }

body.pmidt-ui.pm-theme-civic .ia-detail-shell input[type="text"],
body.pmidt-ui.pm-theme-civic .ia-benefit-shell input[type="text"] {
    border: none;
    background: transparent;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
    outline: none;
}

body.pmidt-ui.pm-theme-civic .ia-edit-cell {
    background: #f2f7f6;
}

body.pmidt-ui.pm-theme-civic .ia-money-cell {
    min-width: 146px;
    padding: .48rem !important;
}

body.pmidt-ui.pm-theme-civic .ia-money-field {
    width: 132px;
    height: 38px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: stretch;
    margin-inline: auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #b9cfca;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(23, 59, 64, .08);
    direction: ltr;
}

body.pmidt-ui.pm-theme-civic .ia-money-field:focus-within {
    border-color: var(--iaw-teal);
    box-shadow: 0 0 0 3px rgba(35, 103, 91, .13);
}

body.pmidt-ui.pm-theme-civic .ia-money-symbol,
body.pmidt-ui.pm-theme-civic .ia-money-code {
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--iaw-teal);
    border-inline-end: 1px solid #b9cfca;
    font-size: .74rem;
    font-weight: 900;
}

body.pmidt-ui.pm-theme-civic .ia-money-code {
    color: #6d511d;
    background: #f6dfaf;
    border-inline-end-color: #dfc181;
    font-size: .59rem;
}

body.pmidt-ui.pm-theme-civic .ia-money-field-usd {
    background: #fffaf0;
    border-color: #dfc181;
}

body.pmidt-ui.pm-theme-civic .ia-money-input {
    width: 100% !important;
    min-width: 0;
    height: 100%;
    padding: 0 .45rem !important;
    color: var(--iaw-ink) !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    font-size: .76rem !important;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
    direction: ltr;
}

body.pmidt-ui.pm-theme-civic .ia-money-input[readonly] {
    color: #74551b !important;
    cursor: default;
}

body.pmidt-ui.pm-theme-civic .ia-exchange-strip,
body.pmidt-ui.pm-theme-civic .ia-exrate-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.66rem;
    padding: 0.62rem;
    border: 1px solid #d8c39a;
    background: #fff9ec;
    color: #705323;
    font-weight: 800;
}

body.pmidt-ui.pm-theme-civic .ia-pdf-embed {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
}

body.pmidt-ui.pm-theme-civic .iaw-dialog-shell {
    display: none;
    justify-content: center;
}

body.pmidt-ui.pm-theme-civic .iaw-dialog-content {
    width: 100%;
    max-height: min(70vh, 700px);
    overflow: auto;
}

body.pmidt-ui.pm-theme-civic .iaw-dialog-content-pdf {
    max-height: min(78vh, 760px);
}

body.pmidt-ui.pm-theme-civic .ui-dialog.iaw-dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
}

body.pmidt-ui.pm-theme-civic .ui-dialog.iaw-dialog .ui-dialog-titlebar {
    color: #fff;
    background: linear-gradient(90deg, var(--iaw-teal-deep), var(--iaw-teal));
    border: 0;
}

body.pmidt-ui.pm-theme-civic .ui-dialog.iaw-dialog .ui-dialog-content {
    max-height: calc(100vh - 96px);
    overflow: auto;
    background: #f7fbf9;
}

@media (max-width: 1180px) {
    body.pmidt-ui.pm-theme-civic .iaw-page {
        width: 100%;
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
        padding: 0.38rem;
    }

    body.pmidt-ui.pm-theme-civic .iaw-desk,
    body.pmidt-ui.pm-theme-civic .iaw-desk > .adt-desk-body { display: block; overflow: visible; }

    body.pmidt-ui.pm-theme-civic .iaw-surface {
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    body.pmidt-ui.pm-theme-civic .ia-review-grid,
    body.pmidt-ui.pm-theme-civic .ia-accept-grid {
        height: auto;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    body.pmidt-ui.pm-theme-civic .ia-pdf-panel,
    body.pmidt-ui.pm-theme-civic .ia-table-shell,
    body.pmidt-ui.pm-theme-civic .ia-accept-table-shell {
        height: auto;
        max-height: none;
    }

    body.pmidt-ui.pm-theme-civic .ia-pdf-embed { height: 55vh; min-height: 340px; }
    body.pmidt-ui.pm-theme-civic .ia-register-search input,
    body.pmidt-ui.pm-theme-civic .ia-register-search button,
    body.pmidt-ui.pm-theme-civic .ia-expand-button { height: 44px; }
    body.pmidt-ui.pm-theme-civic .ia-register-search button,
    body.pmidt-ui.pm-theme-civic .ia-expand-button { width: 44px; }
    body.pmidt-ui.pm-theme-civic .ia-action-button,
    body.pmidt-ui.pm-theme-civic .ia-rejection-decision summary,
    body.pmidt-ui.pm-theme-civic .ia-final-reject { min-height: 44px; }
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .ia-register-toolbar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .ia-register-search { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .ia-table-shell,
    body.pmidt-ui.pm-theme-civic .ia-pdf-panel { max-height: 55vh; }
}

/* InsuAdminSPT - native approval register */
body.pmidt-ui.pm-theme-civic .adt-page.insu-admin-spt-page {
    --spt-ink: #213b40;
    --spt-muted: #667b7e;
    --spt-line: #d5e1de;
    --spt-teal: #23675b;
    --spt-teal-deep: #174b47;
    --spt-amber: #b87925;
    width: calc(100% - 18px);
    max-width: 1900px;
    direction: rtl;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-command-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: 0;
    padding: .65rem .7rem;
    background: #e9efed;
    border: 1px solid #d1ddda;
}

body.pmidt-ui.pm-theme-civic .spt-mode-button {
    min-width: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    color: var(--spt-ink);
    background: #fff;
    border: 1px solid #c5d4d0;
    border-radius: 3px;
    box-shadow: 0 3px 9px rgba(22, 58, 62, .06);
    text-align: right;
}

body.pmidt-ui.pm-theme-civic .spt-mode-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--spt-teal-deep);
    background: #e6f0ed;
    border: 1px solid #c4d8d3;
    font-size: 1rem;
}

body.pmidt-ui.pm-theme-civic .spt-mode-copy { min-width: 0; }
body.pmidt-ui.pm-theme-civic .spt-mode-copy strong { display: block; overflow: hidden; color: inherit; font-size: .8rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .spt-mode-copy small { display: block; overflow: hidden; margin-top: .15rem; color: var(--spt-muted); font-size: .63rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .spt-mode-arrow { color: #7b918d; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .spt-mode-button:hover { border-color: var(--spt-teal); background: #f6faf8; transform: translateY(-1px); }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-command-row .spt-mode-button.is-active {
    color: #fff;
    background: var(--spt-teal-deep);
    border-color: var(--spt-teal-deep);
    box-shadow: 0 5px 13px rgba(23, 75, 71, .22);
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-command-row .spt-mode-progress.is-active {
    background: #83591d;
    border-color: #83591d;
    box-shadow: 0 5px 13px rgba(131, 89, 29, .2);
}

body.pmidt-ui.pm-theme-civic .spt-mode-button.is-active .spt-mode-icon { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .24); }
body.pmidt-ui.pm-theme-civic .spt-mode-button.is-active .spt-mode-copy small,
body.pmidt-ui.pm-theme-civic .spt-mode-button.is-active .spt-mode-arrow { color: rgba(255, 255, 255, .76); }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-surface {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: .75rem;
    background: #eef3f1;
}

body.pmidt-ui.pm-theme-civic .spt-register {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto minmax(280px, 1fr) auto;
    overflow: hidden;
    color: var(--spt-ink);
    background: #fff;
    border: 1px solid var(--spt-line);
    box-shadow: 0 7px 18px rgba(22, 58, 62, .08);
    height: 100%;
}

body.pmidt-ui.pm-theme-civic .spt-register-head {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .85rem;
    background: #edf5f2;
    border-bottom: 1px solid var(--spt-line);
    border-inline-start: 5px solid var(--spt-teal);
}

body.pmidt-ui.pm-theme-civic .spt-register-head-progress {
    background: #f8f3e9;
    border-inline-start-color: var(--spt-amber);
}

body.pmidt-ui.pm-theme-civic .spt-register-code {
    display: block;
    color: var(--spt-muted);
    font-size: .62rem;
    font-weight: 900;
}

body.pmidt-ui.pm-theme-civic .spt-register-head h3 {
    margin: .12rem 0 0;
    color: var(--spt-ink);
    font-size: .94rem;
    font-weight: 900;
}

body.pmidt-ui.pm-theme-civic .spt-register-count {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .36rem .55rem;
    color: var(--spt-teal-deep);
    background: #fff;
    border: 1px solid #c7d9d5;
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}

body.pmidt-ui.pm-theme-civic .spt-register-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .7rem;
    background: #fafcfb;
    border-bottom: 1px solid var(--spt-line);
}

body.pmidt-ui.pm-theme-civic .spt-search-box {
    width: min(430px, 100%);
    height: 40px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
    overflow: hidden;
    color: var(--spt-teal);
    background: #fff;
    border: 1px solid #bfd0cc;
}

body.pmidt-ui.pm-theme-civic .spt-search-box > i { text-align: center; }
body.pmidt-ui.pm-theme-civic .spt-search-box:focus-within { border-color: var(--spt-teal); box-shadow: 0 0 0 3px rgba(35, 103, 91, .11); }
body.pmidt-ui.pm-theme-civic .spt-search-box input { width: 100%; height: 100%; padding: 0 .2rem 0 .6rem; color: var(--spt-ink); background: transparent; border: 0; outline: 0; font-size: .72rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-search-box button { width: 40px; height: 100%; display: grid; place-items: center; padding: 0; color: #6c817e; background: transparent; border: 0; border-inline-start: 1px solid #d7e2df; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-search-box button:hover { color: #fff; background: var(--spt-teal); }

body.pmidt-ui.pm-theme-civic .spt-toolbar-actions { display: flex; align-items: center; gap: .45rem; }
body.pmidt-ui.pm-theme-civic .spt-page-size-label { display: inline-flex; align-items: center; gap: .35rem; margin: 0; color: var(--spt-muted); font-size: .69rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .spt-page-size-label select { min-width: 54px; height: 40px; padding: 0 .45rem; color: var(--spt-ink); background: #fff; border: 1px solid #c7d5d2; font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .spt-tool-button { min-height: 40px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .65rem; color: var(--spt-teal-deep); background: #e8f1ef; border: 1px solid #bdd2cd; font-size: .69rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .spt-tool-button:hover { color: #fff; background: var(--spt-teal); border-color: var(--spt-teal); }

body.pmidt-ui.pm-theme-civic .spt-table-viewport {
    min-width: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
}

body.pmidt-ui.pm-theme-civic .spt-native-table {
    width: 100%;
    min-width: 1480px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .7rem;
}

body.pmidt-ui.pm-theme-civic .spt-native-table th {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 44px;
    padding: .45rem;
    color: #fff;
    background: var(--spt-teal-deep);
    border-inline-end: 1px solid rgba(255, 255, 255, .13);
    border-bottom: 1px solid #123d3a;
    text-align: center;
    font-weight: 850;
    white-space: nowrap;
}

body.pmidt-ui.pm-theme-civic .spt-native-table th button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
}

body.pmidt-ui.pm-theme-civic .spt-native-table th button i { color: #a8c8c2; font-size: .62rem; }
body.pmidt-ui.pm-theme-civic .spt-native-table th button.is-sorted i { color: #ffd892; }
body.pmidt-ui.pm-theme-civic .spt-native-table td { height: 52px; padding: .45rem; color: #344d51; background: #fff; border-inline-end: 1px solid #e2eae8; border-bottom: 1px solid #dce6e3; text-align: center; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .spt-native-table .spt-claim-row:nth-of-type(4n + 3) td { background: #f8fbfa; }
body.pmidt-ui.pm-theme-civic .spt-native-table .spt-claim-row:hover td { background: #edf5f2; }
body.pmidt-ui.pm-theme-civic .spt-expand-column { width: 42px; }
body.pmidt-ui.pm-theme-civic .spt-actions-column { min-width: 130px; }
body.pmidt-ui.pm-theme-civic .spt-name-cell { min-width: 132px; text-align: right !important; }
body.pmidt-ui.pm-theme-civic .spt-claim-reference { color: var(--spt-teal-deep); font-size: .75rem; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .spt-mono { font-variant-numeric: tabular-nums; white-space: nowrap; }

body.pmidt-ui.pm-theme-civic .spt-relation-badge,
body.pmidt-ui.pm-theme-civic .spt-currency-badge,
body.pmidt-ui.pm-theme-civic .spt-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: .25rem .4rem;
    color: #405b60;
    background: #edf3f2;
    border: 1px solid #d2dfdc;
    font-size: .66rem;
    font-weight: 850;
    white-space: nowrap;
}

body.pmidt-ui.pm-theme-civic .spt-currency-badge { color: #70501a; background: #fff5df; border-color: #e5cd9c; }
body.pmidt-ui.pm-theme-civic .spt-amount { direction: ltr; font-variant-numeric: tabular-nums; }
body.pmidt-ui.pm-theme-civic .spt-amount-actual { color: #18574d; background: #e6f1ee; border-color: #bed8d2; }
body.pmidt-ui.pm-theme-civic .spt-amount-usd { color: #74541d; background: #fff3d7; border-color: #e3c583; }

body.pmidt-ui.pm-theme-civic .spt-expand-button,
body.pmidt-ui.pm-theme-civic .spt-action-button {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 2px;
}

body.pmidt-ui.pm-theme-civic .spt-expand-button { color: var(--spt-teal-deep); background: #e5f0ed; border-color: #c2d8d2; }
body.pmidt-ui.pm-theme-civic .spt-expand-button:hover { color: #fff; background: var(--spt-teal); border-color: var(--spt-teal); }
body.pmidt-ui.pm-theme-civic .spt-row-actions { display: inline-flex; align-items: center; gap: .28rem; }
body.pmidt-ui.pm-theme-civic .spt-action-approve { color: #fff; background: var(--spt-teal); border-color: var(--spt-teal); }
body.pmidt-ui.pm-theme-civic .spt-action-document { color: #74501a; background: #fff1d2; border-color: #dfbf7d; }
body.pmidt-ui.pm-theme-civic .spt-action-return { color: #8a423d; background: #f9e9e7; border-color: #dfbbb7; }
body.pmidt-ui.pm-theme-civic .spt-action-button:hover { filter: brightness(.92); transform: translateY(-1px); }
body.pmidt-ui.pm-theme-civic .spt-action-button:disabled { opacity: .5; transform: none; cursor: wait; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table {
    min-width: 1120px;
    table-layout: fixed;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th {
    height: 58px;
    padding: .38rem .42rem;
    white-space: normal;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(1) { width: 46px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(2) { width: 150px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(3) { width: 135px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(4) { width: 150px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(5) { width: 220px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(6) { width: 250px; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-table th:nth-child(7) { width: 169px; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-sort-set {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .16rem .38rem;
    margin-top: .2rem;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-sort-set button {
    min-height: 40px;
    padding-inline: .2rem;
    color: #cce0dc;
    font-size: .58rem;
    font-weight: 750;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-sort-set button:hover,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-sort-set button.is-sorted { color: #fff4d6; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-sort-set button.is-sorted { background: rgba(255, 216, 146, .13); box-shadow: inset 0 -2px #ffd892; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-row > td {
    height: 96px;
    padding: .48rem .52rem;
    text-align: right;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-expand-cell { text-align: center !important; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-expand-button { width: 40px; height: 40px; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-identity,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-beneficiary {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: .26rem;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-identity .spt-claim-reference { font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-identity > span { color: #60777a; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-identity > small { color: #24705e; font-size: .61rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register.is-progress .spt-docket-identity > small { color: #99651f; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-identity > small i { font-size: .4rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-employee { font-size: .73rem; font-weight: 850; line-height: 1.55; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-beneficiary strong { color: #2a474c; font-size: .72rem; line-height: 1.45; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-relation-badge { min-width: 0; padding: .2rem .38rem; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .34rem;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow > i { color: #91aaa5; font-size: .62rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow span { min-width: 0; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow small,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger small { display: block; color: #708588; font-size: .58rem; font-weight: 750; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-workflow b { display: block; margin-top: .1rem; color: #304e53; font-size: .66rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-custodian { grid-column: 1 / -1; padding-top: .28rem; border-top: 1px solid #dce6e3; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger {
    display: grid;
    grid-template-columns: .75fr 1.15fr;
    gap: .3rem;
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger > span { min-width: 0; padding: .25rem .32rem; background: #f2f6f5; border-inline-start: 2px solid #c8d9d5; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger b { display: block; overflow: hidden; margin-top: .08rem; color: #29494d; font-size: .69rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger .spt-docket-currency { background: #fff7e7; border-inline-start-color: #d5a854; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger .is-usd { background: #e7f2ed; border-inline-start-color: #2d806a; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger .is-usd b { color: #155b4d; font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-docket-ledger.is-progress { grid-template-columns: .72fr 1fr 1fr; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-actions-column,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-cell {
    position: sticky;
    inset-inline-end: 0;
    z-index: 3;
    box-shadow: 7px 0 12px rgba(27, 64, 65, .08);
}

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-actions-column { z-index: 6; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-cell { text-align: center !important; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail .spt-action-button { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: flex-start; gap: .38rem; padding: .28rem .5rem; font-size: .62rem; font-weight: 850; text-align: right; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail .spt-action-approve { grid-column: 1 / -1; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-action-restore { color: #764c14; background: #fff0cf; border-color: #dcb86c; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail.is-progress { grid-template-columns: 1fr; }
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail.is-progress .spt-action-button { justify-content: center; }

body.pmidt-ui.pm-theme-civic .insu-admin-spt-register button:focus-visible,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register select:focus-visible,
body.pmidt-ui.pm-theme-civic .insu-admin-spt-register input:focus-visible { outline: 3px solid #d09b3e; outline-offset: 2px; }

body.pmidt-ui.pm-theme-civic .spt-detail-row > td { height: auto; padding: 0 !important; background: #edf4f2 !important; border-bottom: 2px solid #bdcfca; }
body.pmidt-ui.pm-theme-civic .spt-detail-content { padding: .65rem; }
body.pmidt-ui.pm-theme-civic .spt-detail-loading,
body.pmidt-ui.pm-theme-civic .spt-detail-error { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 80px; color: var(--spt-muted); background: #fff; border: 1px solid var(--spt-line); font-size: .72rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .spt-detail-error { color: #91433d; background: #fff8f7; border-color: #e3c2be; }

body.pmidt-ui.pm-theme-civic .spt-invoice-panel { overflow: hidden; background: #fff; border: 1px solid #cad8d5; box-shadow: 0 3px 9px rgba(22, 58, 62, .06); }
body.pmidt-ui.pm-theme-civic .spt-invoice-head { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .65rem; background: #f5f8f7; border-bottom: 1px solid var(--spt-line); }
body.pmidt-ui.pm-theme-civic .spt-invoice-head div span { display: block; color: var(--spt-muted); font-size: .58rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .spt-invoice-head div strong { display: block; margin-top: .08rem; color: var(--spt-ink); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .spt-invoice-head > span { color: var(--spt-teal-deep); font-size: .66rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .spt-invoice-viewport { overflow-x: auto; }
body.pmidt-ui.pm-theme-civic .spt-invoice-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .69rem; }
body.pmidt-ui.pm-theme-civic .spt-invoice-table th { position: static; height: 38px; padding: .38rem .5rem; color: #35535a; background: #eaf1ef; border: 1px solid #d3dfdc; }
body.pmidt-ui.pm-theme-civic .spt-invoice-table td { height: 42px; padding: .38rem .5rem; background: #fff !important; border: 1px solid #e0e8e6; }
body.pmidt-ui.pm-theme-civic .spt-invoice-description { min-width: 220px; text-align: right !important; }
body.pmidt-ui.pm-theme-civic .spt-invoice-empty { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--spt-muted); font-size: .72rem; }

body.pmidt-ui.pm-theme-civic .spt-empty-row td { height: 220px; }
body.pmidt-ui.pm-theme-civic .spt-empty-row td i,
body.pmidt-ui.pm-theme-civic .spt-empty-row td strong,
body.pmidt-ui.pm-theme-civic .spt-empty-row td span { display: block; margin: .3rem auto; }
body.pmidt-ui.pm-theme-civic .spt-empty-row td i { color: #78928d; font-size: 1.6rem; }
body.pmidt-ui.pm-theme-civic .spt-empty-row td strong { color: var(--spt-ink); font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .spt-empty-row td span { color: var(--spt-muted); font-size: .68rem; }

body.pmidt-ui.pm-theme-civic .spt-register-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .45rem .7rem; color: var(--spt-muted); background: #f7faf9; border-top: 1px solid var(--spt-line); font-size: .68rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .spt-pagination { display: inline-flex; gap: .3rem; }
body.pmidt-ui.pm-theme-civic .spt-pagination button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--spt-teal-deep); background: #fff; border: 1px solid #c4d4d0; }
body.pmidt-ui.pm-theme-civic .spt-pagination button:hover:not(:disabled) { color: #fff; background: var(--spt-teal); border-color: var(--spt-teal); }
body.pmidt-ui.pm-theme-civic .spt-pagination button:disabled { color: #a4b1af; background: #edf1f0; cursor: default; }

body.pmidt-ui.pm-theme-civic .spt-surface-state { min-height: 460px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .45rem; color: var(--spt-muted); text-align: center; }
body.pmidt-ui.pm-theme-civic .spt-surface-state > i { width: 54px; height: 54px; display: grid; place-items: center; color: var(--spt-teal); background: #e4efec; border: 1px solid #c4d8d3; font-size: 1.2rem; }
body.pmidt-ui.pm-theme-civic .spt-surface-state strong { color: var(--spt-ink); font-size: .84rem; }
body.pmidt-ui.pm-theme-civic .spt-surface-state span { font-size: .7rem; }
body.pmidt-ui.pm-theme-civic .spt-surface-state.is-error > i { color: #93463f; background: #f8e8e6; border-color: #dfbcb8; }
body.pmidt-ui.pm-theme-civic .spt-spin { animation: spt-spin .8s linear infinite; }
@keyframes spt-spin { to { transform: rotate(360deg); } }

body.pmidt-ui.pm-theme-civic .spt-document-source { display: none; }
body.pmidt-ui.pm-theme-civic .spt-document-container { width: 100%; height: 100%; overflow: auto; }
body.pmidt-ui.pm-theme-civic .spt-document-container embed { width: 100%; min-height: 660px; }
body.pmidt-ui.pm-theme-civic .spt-document-dialog { max-width: calc(100vw - 24px); }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.insu-admin-spt-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.insu-admin-spt-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.pmidt-ui.pm-theme-civic .adt-page.insu-admin-spt-page {
        height: calc(100dvh - 96px);
        min-height: 590px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
        padding: .55rem;
    }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page > .adt-hero {
        min-height: 96px;
        padding: .75rem 1rem;
    }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page > .adt-desk {
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        margin-top: .5rem;
    }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page .adt-desk-head { min-height: 54px; padding: .55rem .75rem; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page .adt-desk-body {
        min-height: 0;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
        padding: .55rem;
    }
}

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .adt-page.insu-admin-spt-page { width: 100%; height: auto; min-height: 0; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-command-row { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-surface { height: auto; min-height: 520px; overflow: visible; }
    body.pmidt-ui.pm-theme-civic .spt-register { height: auto; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-surface { padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .spt-register-toolbar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .spt-search-box { width: 100%; }
    body.pmidt-ui.pm-theme-civic .spt-toolbar-actions { justify-content: space-between; }
    body.pmidt-ui.pm-theme-civic .spt-table-viewport { max-height: 65vh; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-expand-button,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-decision-rail .spt-action-button,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-search-box,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-page-size-label select,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-tool-button,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-native-table th button,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-pagination button { min-width: 44px; min-height: 44px; }
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-register .spt-search-box button { width: 44px; }
}

@media (max-width: 520px) {
    body.pmidt-ui.pm-theme-civic .spt-mode-button { min-height: 58px; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: .5rem; padding: .45rem .5rem; }
    body.pmidt-ui.pm-theme-civic .spt-mode-icon { width: 38px; height: 38px; }
    body.pmidt-ui.pm-theme-civic .spt-register-head { align-items: flex-start; flex-direction: column; gap: .45rem; }
    body.pmidt-ui.pm-theme-civic .spt-register-count { align-self: stretch; justify-content: center; }
    body.pmidt-ui.pm-theme-civic .spt-tool-button span { display: none; }
    body.pmidt-ui.pm-theme-civic .spt-tool-button { width: 44px; justify-content: center; padding: 0; }
    body.pmidt-ui.pm-theme-civic .spt-register-footer { align-items: flex-start; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .spt-pagination { align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page *,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page *::before,
    body.pmidt-ui.pm-theme-civic .insu-admin-spt-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* InsuHRMangament - native HR approval workdesk */
body.pmidt-ui.pm-theme-civic .adt-page.insu-hr-page {
    --hr-ink: #213b40;
    --hr-muted: #667b7e;
    --hr-line: #d5e1de;
    --hr-green: #276a55;
    --hr-green-deep: #194b40;
    --hr-steel: #416c79;
    width: calc(100% - 18px);
    max-width: 1900px;
    direction: rtl;
}

body.pmidt-ui.pm-theme-civic .insu-hr-command-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(220px, .65fr);
    gap: .55rem;
    padding: .65rem .7rem;
    background: #e9efed;
    border: 1px solid #d1ddda;
}

body.pmidt-ui.pm-theme-civic .hr-command-button {
    min-width: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    color: var(--hr-ink);
    background: #fff;
    border: 1px solid #c5d4d0;
    border-radius: 3px;
    box-shadow: 0 3px 9px rgba(22, 58, 62, .06);
    text-align: right;
}

body.pmidt-ui.pm-theme-civic .hr-command-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--hr-green-deep);
    background: #e6f1ec;
    border: 1px solid #c2d9cf;
    font-size: 1rem;
}

body.pmidt-ui.pm-theme-civic .hr-command-button strong { display: block; overflow: hidden; color: inherit; font-size: .8rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .hr-command-button small { display: block; overflow: hidden; margin-top: .15rem; color: var(--hr-muted); font-size: .63rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .hr-command-button:hover { transform: translateY(-1px); }

body.pmidt-ui.pm-theme-civic .hr-command-accept {
    color: #fff;
    background: var(--hr-green-deep);
    border-color: var(--hr-green-deep);
    box-shadow: 0 5px 13px rgba(25, 75, 64, .22);
}

body.pmidt-ui.pm-theme-civic .hr-command-accept .hr-command-icon { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .24); }
body.pmidt-ui.pm-theme-civic .hr-command-accept small { color: rgba(255, 255, 255, .76); }
body.pmidt-ui.pm-theme-civic .hr-command-accept:hover { color: #fff; background: #123e35; border-color: #123e35; }
body.pmidt-ui.pm-theme-civic .hr-command-refresh { color: #315963; background: #f8fbfa; border-color: #b9ced2; }
body.pmidt-ui.pm-theme-civic .hr-command-refresh .hr-command-icon { color: #315f6a; background: #e7f0f2; border-color: #bfd2d6; }
body.pmidt-ui.pm-theme-civic .hr-command-refresh:hover { color: #fff; background: var(--hr-steel); border-color: var(--hr-steel); }
body.pmidt-ui.pm-theme-civic .hr-command-refresh:hover .hr-command-icon { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
body.pmidt-ui.pm-theme-civic .hr-command-refresh:hover small { color: rgba(255, 255, 255, .76); }
body.pmidt-ui.pm-theme-civic .hr-command-button:disabled { opacity: .58; transform: none; cursor: wait; }
body.pmidt-ui.pm-theme-civic .hr-command-button.is-busy .hr-command-icon i { animation: spt-spin .8s linear infinite; }

body.pmidt-ui.pm-theme-civic .insu-hr-surface {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: .75rem;
    background: #eef3f1;
    border: 1px solid #d8e2de;
}

body.pmidt-ui.pm-theme-civic .hr-native-register { height: 100%; }
body.pmidt-ui.pm-theme-civic .hr-register-head { border-inline-start-color: var(--hr-green); }
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-search-box button { width: 40px; height: 100%; display: grid; place-items: center; padding: 0; color: #5f7775; background: transparent; border: 0; border-inline-start: 1px solid #d7e2df; }
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-search-box button:hover { color: #fff; background: var(--hr-green); }
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-expand-button { width: 40px; height: 40px; }

body.pmidt-ui.pm-theme-civic .hr-native-register .spt-actions-column,
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-decision-cell { position: sticky; inset-inline-end: 0; z-index: 3; box-shadow: 7px 0 12px rgba(27, 64, 65, .08); }
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-actions-column { z-index: 6; }
body.pmidt-ui.pm-theme-civic .hr-native-register .spt-decision-cell { text-align: center !important; }
body.pmidt-ui.pm-theme-civic .hr-native-register button:focus-visible,
body.pmidt-ui.pm-theme-civic .hr-native-register select:focus-visible,
body.pmidt-ui.pm-theme-civic .hr-native-register input:focus-visible { outline: 3px solid #c18b31; outline-offset: 2px; }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.insu-hr-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.insu-hr-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.pmidt-ui.pm-theme-civic .adt-page.insu-hr-page {
        height: calc(100dvh - 96px);
        min-height: 590px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
        padding: .55rem;
    }
    body.pmidt-ui.pm-theme-civic .insu-hr-page > .adt-hero { min-height: 96px; padding: .75rem 1rem; }
    body.pmidt-ui.pm-theme-civic .insu-hr-desk { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); margin-top: .5rem; }
    body.pmidt-ui.pm-theme-civic .insu-hr-page .adt-desk-head { min-height: 54px; padding: .55rem .75rem; }
    body.pmidt-ui.pm-theme-civic .insu-hr-page .adt-desk-body { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; padding: .55rem; }
}

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .adt-page.insu-hr-page { width: 100%; height: auto; min-height: 0; }
    body.pmidt-ui.pm-theme-civic .insu-hr-command-row { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .insu-hr-surface { height: auto; min-height: 520px; overflow: visible; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .hr-native-register { height: auto; }
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-expand-button,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-action-button,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-search-box,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-page-size-label select,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-tool-button,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-native-table th button,
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-pagination button { min-width: 44px; min-height: 44px; }
    body.pmidt-ui.pm-theme-civic .hr-native-register .spt-search-box button { width: 44px; }
}

@media (max-width: 520px) {
    body.pmidt-ui.pm-theme-civic .hr-command-button { min-height: 58px; grid-template-columns: 38px minmax(0, 1fr); gap: .5rem; padding: .45rem .5rem; }
    body.pmidt-ui.pm-theme-civic .hr-command-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .insu-hr-page *,
    body.pmidt-ui.pm-theme-civic .insu-hr-page *::before,
    body.pmidt-ui.pm-theme-civic .insu-hr-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* InsuManegmant - native high-value approval workdesk */
body.pmidt-ui.pm-theme-civic .adt-page.insu-management-page {
    --management-ink: #253b40;
    --management-muted: #687a7e;
    --management-line: #d4dfdc;
    --management-navy: #173f48;
    --management-bronze: #956520;
    width: calc(100% - 18px);
    max-width: 1900px;
    direction: rtl;
}

body.pmidt-ui.pm-theme-civic .insu-management-command-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(220px, .65fr);
    gap: .55rem;
    padding: .65rem .7rem;
    background: #e9efed;
    border: 1px solid #d1ddda;
}

body.pmidt-ui.pm-theme-civic .management-command-button {
    min-width: 0;
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    color: var(--management-ink);
    background: #fff;
    border: 1px solid #c5d4d0;
    border-radius: 3px;
    box-shadow: 0 3px 9px rgba(22, 58, 62, .06);
    text-align: right;
}

body.pmidt-ui.pm-theme-civic .management-command-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--management-navy);
    background: #e7eff0;
    border: 1px solid #c4d4d7;
    font-size: 1rem;
}

body.pmidt-ui.pm-theme-civic .management-command-button strong { display: block; overflow: hidden; color: inherit; font-size: .8rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .management-command-button small { display: block; overflow: hidden; margin-top: .15rem; color: var(--management-muted); font-size: .63rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .management-command-button:hover { transform: translateY(-1px); }
body.pmidt-ui.pm-theme-civic .management-command-accept { color: #fff; background: var(--management-navy); border-color: var(--management-navy); box-shadow: 0 5px 13px rgba(23, 63, 72, .23); }
body.pmidt-ui.pm-theme-civic .management-command-accept .management-command-icon { color: #fff; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .24); }
body.pmidt-ui.pm-theme-civic .management-command-accept small { color: rgba(255, 255, 255, .76); }
body.pmidt-ui.pm-theme-civic .management-command-accept:hover { color: #fff; background: #0f333a; border-color: #0f333a; }
body.pmidt-ui.pm-theme-civic .management-command-refresh { color: #77521d; background: #fffaf0; border-color: #dcc18e; }
body.pmidt-ui.pm-theme-civic .management-command-refresh .management-command-icon { color: #7e571c; background: #f7e7c5; border-color: #dfc38e; }
body.pmidt-ui.pm-theme-civic .management-command-refresh:hover { color: #fff; background: var(--management-bronze); border-color: var(--management-bronze); }
body.pmidt-ui.pm-theme-civic .management-command-refresh:hover .management-command-icon { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
body.pmidt-ui.pm-theme-civic .management-command-refresh:hover small { color: rgba(255, 255, 255, .76); }
body.pmidt-ui.pm-theme-civic .management-command-button:disabled { opacity: .58; transform: none; cursor: wait; }
body.pmidt-ui.pm-theme-civic .management-command-button.is-busy .management-command-icon i { animation: spt-spin .8s linear infinite; }

body.pmidt-ui.pm-theme-civic .insu-management-surface {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding: .75rem;
    background: #eef3f1;
    border: 1px solid #d8e2de;
}

body.pmidt-ui.pm-theme-civic .management-native-register { height: 100%; }
body.pmidt-ui.pm-theme-civic .management-register-head { background: #f6f1e7; border-inline-start-color: var(--management-bronze); }
body.pmidt-ui.pm-theme-civic .management-usd-amount { min-width: 84px; color: #684719; background: #ffefc9; border-color: #dcb873; box-shadow: inset 0 0 0 1px rgba(149, 101, 32, .08); }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.insu-management-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.insu-management-page) { height: calc(100dvh - 68px) !important; min-height: 0 !important; overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .adt-page.insu-management-page { height: calc(100dvh - 154px); min-height: 590px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; padding: .55rem; }
    body.pmidt-ui.pm-theme-civic .insu-management-page > .adt-hero { min-height: 96px; padding: .75rem 1rem; }
    body.pmidt-ui.pm-theme-civic .insu-management-desk { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); margin-top: .5rem; }
    body.pmidt-ui.pm-theme-civic .insu-management-page .adt-desk-head { min-height: 54px; padding: .55rem .75rem; }
    body.pmidt-ui.pm-theme-civic .insu-management-page .adt-desk-body { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; padding: .55rem; }
}

@media (max-width: 900px) {
    body.pmidt-ui.pm-theme-civic .adt-page.insu-management-page { width: 100%; height: auto; min-height: 0; }
    body.pmidt-ui.pm-theme-civic .insu-management-command-row { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .insu-management-surface { height: auto; min-height: 520px; overflow: visible; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .management-native-register { height: auto; }
}

@media (max-width: 520px) {
    body.pmidt-ui.pm-theme-civic .management-command-button { min-height: 58px; grid-template-columns: 38px minmax(0, 1fr); gap: .5rem; padding: .45rem .5rem; }
    body.pmidt-ui.pm-theme-civic .management-command-icon { width: 38px; height: 38px; }
}

/* Audit Distributiontasks — executive allocation console */
body.pmidt-ui.pm-theme-civic .adt-page { --adt-navy:#153b42; --adt-forest:#225b51; --adt-steel:#4b7593; --adt-amber:#b57b2c; --adt-sage:#4f7d67; --adt-brick:#9b5147; --adt-ink:#263a3e; --adt-muted:#65787b; --adt-line:#d5e0dc; max-width:1600px; margin:auto; padding:.75rem; color:var(--adt-ink); font-family:Tahoma,Arial,system-ui,sans-serif; background:#f1f5f4; }
body.pmidt-ui.pm-theme-civic .adt-page * { box-sizing:border-box; }
body.pmidt-ui.pm-theme-civic .adt-hero { position:relative; min-height:145px; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; overflow:hidden; padding:1.25rem 1.4rem; color:#fff; background:#153b42; border-radius:8px 8px 3px 3px; box-shadow:0 14px 28px rgba(18,55,58,.18); }
body.pmidt-ui.pm-theme-civic .adt-hero::after { display:none; }
body.pmidt-ui.pm-theme-civic .adt-hero-copy, body.pmidt-ui.pm-theme-civic .adt-status { position:relative; z-index:1; }
body.pmidt-ui.pm-theme-civic .adt-eyebrow { display:flex; align-items:center; gap:.45rem; color:#bfd8d0; font-size:.62rem; font-weight:900; letter-spacing:0; }
body.pmidt-ui.pm-theme-civic .adt-hero h1 { margin:.35rem 0 .42rem; color:#fff; font-size:clamp(1.35rem,2.5vw,2rem); font-weight:900; letter-spacing:0; }
body.pmidt-ui.pm-theme-civic .adt-hero p { max-width:710px; margin:0; color:#d7e6e1; font-size:.76rem; line-height:1.7; }
body.pmidt-ui.pm-theme-civic .adt-status { min-width:215px; display:flex; align-items:center; gap:.75rem; padding:.7rem .85rem; background:rgba(7,33,36,.3); border:1px solid rgba(255,255,255,.16); border-radius:6px; }
body.pmidt-ui.pm-theme-civic .adt-status-mark { width:44px; height:44px; display:grid; flex:0 0 44px; place-items:center; color:#edc77c; border:1px solid rgba(237,199,124,.7); border-radius:50%; }
body.pmidt-ui.pm-theme-civic .adt-status small, body.pmidt-ui.pm-theme-civic .adt-status strong { display:block; } body.pmidt-ui.pm-theme-civic .adt-status small { color:#a9cbc1; font-size:.53rem; } body.pmidt-ui.pm-theme-civic .adt-status strong { margin-top:.15rem; font-size:.7rem; }
body.pmidt-ui.pm-theme-civic .adt-workload-rail { display:grid; grid-template-columns:minmax(170px,.55fr) 1.45fr; align-items:center; gap:1rem; margin:.7rem 0; padding:.7rem .85rem; background:#fff; border:1px solid var(--adt-line); border-inline-start:5px solid var(--adt-amber); box-shadow:0 7px 18px rgba(31,68,64,.07); }
body.pmidt-ui.pm-theme-civic .adt-rail-heading span, body.pmidt-ui.pm-theme-civic .adt-rail-heading small { display:block; } body.pmidt-ui.pm-theme-civic .adt-rail-heading span { color:var(--adt-navy); font-size:.62rem; font-weight:900; letter-spacing:0; } body.pmidt-ui.pm-theme-civic .adt-rail-heading small { margin-top:.2rem; color:var(--adt-muted); font-size:.55rem; }
body.pmidt-ui.pm-theme-civic .adt-rail-steps { display:flex; align-items:center; justify-content:flex-end; gap:.6rem; } body.pmidt-ui.pm-theme-civic .adt-rail-steps > div { min-width:145px; display:flex; align-items:center; gap:.55rem; padding:.42rem .55rem; background:#f1f6f4; border:1px solid #dce7e2; }
body.pmidt-ui.pm-theme-civic .adt-rail-steps > div > i { color:var(--adt-steel); font-size:.9rem; } body.pmidt-ui.pm-theme-civic .adt-rail-steps small, body.pmidt-ui.pm-theme-civic .adt-rail-steps strong { display:block; } body.pmidt-ui.pm-theme-civic .adt-rail-steps small { color:var(--adt-amber); font-size:.49rem; font-weight:900; } body.pmidt-ui.pm-theme-civic .adt-rail-steps strong { font-size:.61rem; } body.pmidt-ui.pm-theme-civic .adt-rail-arrow { color:#9bada8; font-size:.65rem; }
body.pmidt-ui.pm-theme-civic .adt-workspace-grid { display:grid; grid-template-columns:minmax(300px,.82fr) minmax(500px,1.35fr); gap:.7rem; }
body.pmidt-ui.pm-theme-civic .adt-panel { overflow:hidden; background:#fff; border:1px solid var(--adt-line); box-shadow:0 8px 20px rgba(28,67,64,.075); } body.pmidt-ui.pm-theme-civic .adt-assign-panel { border-top:4px solid var(--adt-forest); } body.pmidt-ui.pm-theme-civic .adt-report-panel { border-top:4px solid var(--adt-steel); }
body.pmidt-ui.pm-theme-civic .adt-panel-head { min-height:67px; display:flex; align-items:center; gap:.65rem; padding:.7rem .8rem; background:#f0f6f3; border-bottom:1px solid var(--adt-line); } body.pmidt-ui.pm-theme-civic .adt-report-panel .adt-panel-head { background:#edf3f7; }
body.pmidt-ui.pm-theme-civic .adt-panel-icon { width:38px; height:38px; display:grid; flex:0 0 38px; place-items:center; color:#fff; background:var(--adt-forest); border-radius:5px; } body.pmidt-ui.pm-theme-civic .adt-report-panel .adt-panel-icon { background:var(--adt-steel); }
body.pmidt-ui.pm-theme-civic .adt-panel-head span { color:var(--adt-steel); font-size:.51rem; font-weight:900; letter-spacing:0; } body.pmidt-ui.pm-theme-civic .adt-panel-head h2 { margin:.1rem 0; font-size:.83rem; font-weight:900; } body.pmidt-ui.pm-theme-civic .adt-panel-head p { margin:0; color:var(--adt-muted); font-size:.57rem; }
body.pmidt-ui.pm-theme-civic .adt-search-command { display:grid; gap:.45rem; padding:.75rem; } body.pmidt-ui.pm-theme-civic .adt-search-command > label, body.pmidt-ui.pm-theme-civic .adt-report-field > span { color:#40595d; font-size:.61rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .adt-input-wrap { position:relative; } body.pmidt-ui.pm-theme-civic .adt-input-wrap > i { position:absolute; inset-inline-start:.7rem; top:50%; z-index:1; color:var(--adt-steel); transform:translateY(-50%); } body.pmidt-ui.pm-theme-civic .adt-input-wrap .form-control { padding-inline-start:2rem; }
body.pmidt-ui.pm-theme-civic .adt-page .form-control, body.pmidt-ui.pm-theme-civic .adt-page .form-select { width:100% !important; min-width:0; min-height:39px; margin:0 !important; color:var(--adt-ink); background:#fff; border:1px solid #cbd8d5; border-radius:4px; font-size:.72rem; }
body.pmidt-ui.pm-theme-civic .adt-search-actions { display:grid; grid-template-columns:1fr auto; gap:.45rem; } body.pmidt-ui.pm-theme-civic .adt-referral-toggle, body.pmidt-ui.pm-theme-civic .adt-branch-toggle { min-height:42px; display:flex; align-items:center; gap:.48rem; margin:0; padding:.35rem .55rem; color:#6d541e; background:#f8efde; border:1px solid #e7d4ad; cursor:pointer; }
body.pmidt-ui.pm-theme-civic .adt-referral-toggle strong, body.pmidt-ui.pm-theme-civic .adt-referral-toggle small, body.pmidt-ui.pm-theme-civic .adt-branch-toggle strong, body.pmidt-ui.pm-theme-civic .adt-branch-toggle small { display:block; } body.pmidt-ui.pm-theme-civic .adt-referral-toggle strong, body.pmidt-ui.pm-theme-civic .adt-branch-toggle strong { font-size:.61rem; } body.pmidt-ui.pm-theme-civic .adt-referral-toggle small, body.pmidt-ui.pm-theme-civic .adt-branch-toggle small { margin-top:.08rem; color:#866f43; font-size:.5rem; }
body.pmidt-ui.pm-theme-civic .adt-find-btn { min-height:42px; display:inline-flex; align-items:center; gap:.35rem; color:#fff; background:var(--adt-forest); border-color:var(--adt-forest); border-radius:4px; font-size:.66rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .adt-report-controls { display:grid; grid-template-columns:1.25fr .85fr .85fr .9fr; gap:.45rem; padding:.7rem; } body.pmidt-ui.pm-theme-civic .adt-report-field { display:grid; gap:.3rem; margin:0; }
body.pmidt-ui.pm-theme-civic .adt-report-actions { grid-column:1/-1; display:flex; gap:.38rem; padding-top:.1rem; } body.pmidt-ui.pm-theme-civic .adt-report-actions .btn { min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:.3rem; padding:.38rem .65rem; border-radius:4px; font-size:.62rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .adt-report-search { color:#fff; background:var(--adt-steel); border-color:var(--adt-steel); } body.pmidt-ui.pm-theme-civic .adt-report-print { color:#664b17; background:#f2dfb8; border-color:#dfc58f; } body.pmidt-ui.pm-theme-civic .adt-view-btn { color:#31594d; background:#e9f2ee; border-color:#c9ddd4; }
body.pmidt-ui.pm-theme-civic .adt-progress { display:flex; align-items:center; justify-content:center; gap:.7rem; margin:.7rem 0; padding:.65rem; background:#f9f1e1; border:1px solid #e6d2aa; } body.pmidt-ui.pm-theme-civic .adt-loader { width:27px; height:27px; flex:0 0 27px; border:3px solid #e8d7b4; border-top-color:var(--adt-amber); border-radius:50%; animation:adt-spin .75s linear infinite; } body.pmidt-ui.pm-theme-civic .adt-progress strong, body.pmidt-ui.pm-theme-civic .adt-progress small { display:block; } body.pmidt-ui.pm-theme-civic .adt-progress strong { font-size:.67rem; } body.pmidt-ui.pm-theme-civic .adt-progress small { color:var(--adt-muted); font-size:.54rem; }
body.pmidt-ui.pm-theme-civic .adt-desk { min-height:430px; margin-top:.7rem; overflow:hidden; background:#fff; border:1px solid var(--adt-line); box-shadow:0 13px 28px rgba(28,65,62,.09); } body.pmidt-ui.pm-theme-civic .adt-desk-head { min-height:66px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem .9rem; background:#edf5f2; border-bottom:1px solid var(--adt-line); border-inline-start:5px solid var(--adt-forest); }
body.pmidt-ui.pm-theme-civic .adt-desk-head span:first-child { color:var(--adt-steel); font-size:.52rem; font-weight:900; letter-spacing:0; } body.pmidt-ui.pm-theme-civic .adt-desk-head h2 { margin:.13rem 0 0; font-size:.92rem; font-weight:900; } body.pmidt-ui.pm-theme-civic .adt-desk-chip { display:inline-flex; align-items:center; gap:.35rem; padding:.36rem .52rem; color:#49675e; background:#e9f2ed; border:1px solid #d0e1d8; font-size:.58rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .adt-desk-body { min-height:360px; padding:.75rem; overflow:auto; } body.pmidt-ui.pm-theme-civic .adt-data-frame { min-width:0; overflow:hidden; border:1px solid #d8e2de; } body.pmidt-ui.pm-theme-civic .adt-data-head, body.pmidt-ui.pm-theme-civic .adt-result-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.62rem .7rem; background:#f1f6f4; border-inline-start:4px solid var(--adt-steel); border-bottom:1px solid #d8e3de; }
body.pmidt-ui.pm-theme-civic .adt-data-head > div, body.pmidt-ui.pm-theme-civic .adt-result-heading > div, body.pmidt-ui.pm-theme-civic .adt-save-bar > div, body.pmidt-ui.pm-theme-civic .adt-dialog-heading { display:flex; align-items:center; gap:.55rem; } body.pmidt-ui.pm-theme-civic .adt-data-head i, body.pmidt-ui.pm-theme-civic .adt-result-heading > div > i { color:var(--adt-steel); font-size:1rem; } body.pmidt-ui.pm-theme-civic .adt-data-head small, body.pmidt-ui.pm-theme-civic .adt-data-head strong, body.pmidt-ui.pm-theme-civic .adt-result-heading small, body.pmidt-ui.pm-theme-civic .adt-result-heading strong { display:block; } body.pmidt-ui.pm-theme-civic .adt-data-head small, body.pmidt-ui.pm-theme-civic .adt-result-heading small { color:var(--adt-steel); font-size:.5rem; font-weight:900; } body.pmidt-ui.pm-theme-civic .adt-data-head strong, body.pmidt-ui.pm-theme-civic .adt-result-heading strong { font-size:.7rem; } body.pmidt-ui.pm-theme-civic .adt-data-head > span { color:var(--adt-muted); font-size:.55rem; }
body.pmidt-ui.pm-theme-civic .adt-grid-shell, body.pmidt-ui.pm-theme-civic .adt-chart-shell { padding:.55rem; overflow:auto; } body.pmidt-ui.pm-theme-civic .adt-table-scroll { max-width:100%; max-height:600px; overflow:auto; } body.pmidt-ui.pm-theme-civic .adt-desk-body table { min-width:800px; margin:0; font-size:.7rem; } body.pmidt-ui.pm-theme-civic .adt-desk-body table thead th { padding:.58rem .48rem; color:#fff !important; background:var(--adt-navy) !important; border-color:rgba(255,255,255,.13) !important; font-size:.63rem; white-space:nowrap; } body.pmidt-ui.pm-theme-civic .adt-desk-body table tbody td { padding:.5rem; color:#33494d; border-color:#e0e8e4; vertical-align:middle; } body.pmidt-ui.pm-theme-civic .adt-desk-body table tbody tr:nth-child(even) td { background:#f7faf8; }
body.pmidt-ui.pm-theme-civic .adt-allocation-form { display:grid; grid-template-columns:1fr 1.35fr 1fr; gap:.55rem; margin:.65rem 0; padding:.65rem; background:#f7f9f8; border:1px solid #dbe4e0; } body.pmidt-ui.pm-theme-civic .adt-allocation-form label { display:grid; gap:.28rem; color:#465e62; font-size:.6rem; font-weight:850; } body.pmidt-ui.pm-theme-civic .adt-save-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.65rem; padding:.65rem .75rem; background:#edf5f1; border:1px solid #d4e3dc; border-inline-start:4px solid var(--adt-sage); } body.pmidt-ui.pm-theme-civic .adt-save-bar strong, body.pmidt-ui.pm-theme-civic .adt-save-bar small { display:block; } body.pmidt-ui.pm-theme-civic .adt-save-bar strong { font-size:.65rem; } body.pmidt-ui.pm-theme-civic .adt-save-bar small { color:var(--adt-muted); font-size:.53rem; } body.pmidt-ui.pm-theme-civic .adt-save-bar .btn { min-width:135px; min-height:38px; font-size:.64rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .adt-description-btn { color:#355f75; background:#e8f1f5; border-color:#cadde5; font-size:.63rem; font-weight:850; } body.pmidt-ui.pm-theme-civic .adt-notice { display:flex; align-items:center; gap:.55rem; margin-top:.6rem; padding:.6rem .7rem; font-size:.67rem; } body.pmidt-ui.pm-theme-civic .adt-notice-warning { color:#76571e; background:#f8efde; border:1px solid #e7d4ad; } body.pmidt-ui.pm-theme-civic .adt-notice-danger { color:#783b34; background:#f7e9e6; border:1px solid #e5c7c1; }
body.pmidt-ui.pm-theme-civic .adt-description-form { display:grid; grid-template-columns:.65fr 1.35fr auto; align-items:end; gap:.55rem; padding:.7rem 0; } body.pmidt-ui.pm-theme-civic .adt-description-form label { display:grid; gap:.3rem; margin:0; color:#40595d; font-size:.6rem; font-weight:850; } body.pmidt-ui.pm-theme-civic .adt-description-form .btn { min-height:39px; font-size:.65rem; } body.pmidt-ui.pm-theme-civic .adt-description-list { max-height:360px; overflow:auto; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogDesrc), body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) { max-width:calc(100vw - 24px) !important; max-height:calc(100vh - 24px) !important; border:1px solid #cbdad5 !important; box-shadow:0 24px 60px rgba(18,58,57,.25) !important; } body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogDesrc) .ui-dialog-content, body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog) .ui-dialog-content { max-width:100% !important; max-height:calc(100vh - 70px) !important; overflow:auto !important; background:#f7faf8 !important; }
body.pmidt-ui.pm-theme-civic .adt-page button:focus-visible, body.pmidt-ui.pm-theme-civic .adt-page input:focus-visible, body.pmidt-ui.pm-theme-civic .adt-page select:focus-visible { outline:3px solid rgba(181,123,44,.38) !important; outline-offset:2px; box-shadow:none !important; }
@keyframes adt-spin { to { transform:rotate(360deg); } }
@media (max-width:1050px) { body.pmidt-ui.pm-theme-civic .adt-workspace-grid { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .adt-report-controls { grid-template-columns:1.2fr 1fr 1fr 1fr; } }
@media (max-width:700px) { body.pmidt-ui.pm-theme-civic .adt-page { padding:.45rem; } body.pmidt-ui.pm-theme-civic .adt-hero { min-height:auto; align-items:flex-start; flex-direction:column; padding:1rem; } body.pmidt-ui.pm-theme-civic .adt-status { width:100%; min-width:0; } body.pmidt-ui.pm-theme-civic .adt-workload-rail { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .adt-rail-steps { align-items:stretch; flex-direction:column; } body.pmidt-ui.pm-theme-civic .adt-rail-steps > div { width:100%; } body.pmidt-ui.pm-theme-civic .adt-rail-arrow { transform:rotate(90deg); align-self:center; } body.pmidt-ui.pm-theme-civic .adt-report-controls { grid-template-columns:1fr 1fr; } body.pmidt-ui.pm-theme-civic .adt-report-field:first-child, body.pmidt-ui.pm-theme-civic .adt-branch-toggle { grid-column:1/-1; } body.pmidt-ui.pm-theme-civic .adt-report-actions { flex-wrap:wrap; } body.pmidt-ui.pm-theme-civic .adt-report-actions .btn { flex:1 1 42%; } body.pmidt-ui.pm-theme-civic .adt-allocation-form { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .adt-data-head > span, body.pmidt-ui.pm-theme-civic .adt-desk-chip { display:none; } body.pmidt-ui.pm-theme-civic .adt-save-bar, body.pmidt-ui.pm-theme-civic .adt-result-heading { align-items:stretch; flex-direction:column; } body.pmidt-ui.pm-theme-civic .adt-save-bar .btn { width:100%; } body.pmidt-ui.pm-theme-civic .adt-description-form { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { body.pmidt-ui.pm-theme-civic .adt-loader { animation-duration:1.8s; } }

/* Audit distribution legibility and dynamic report states */
body.pmidt-ui.pm-theme-civic .adt-page { font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .adt-eyebrow,
body.pmidt-ui.pm-theme-civic .adt-status small,
body.pmidt-ui.pm-theme-civic .adt-rail-heading span,
body.pmidt-ui.pm-theme-civic .adt-rail-heading small,
body.pmidt-ui.pm-theme-civic .adt-rail-steps small,
body.pmidt-ui.pm-theme-civic .adt-panel-head span,
body.pmidt-ui.pm-theme-civic .adt-panel-head p,
body.pmidt-ui.pm-theme-civic .adt-referral-toggle small,
body.pmidt-ui.pm-theme-civic .adt-branch-toggle small,
body.pmidt-ui.pm-theme-civic .adt-progress small,
body.pmidt-ui.pm-theme-civic .adt-desk-head span:first-child,
body.pmidt-ui.pm-theme-civic .adt-data-head small,
body.pmidt-ui.pm-theme-civic .adt-result-heading small,
body.pmidt-ui.pm-theme-civic .adt-data-head > span,
body.pmidt-ui.pm-theme-civic .adt-save-bar small { font-size:.7rem; line-height:1.45; }
body.pmidt-ui.pm-theme-civic .adt-status strong,
body.pmidt-ui.pm-theme-civic .adt-rail-steps strong,
body.pmidt-ui.pm-theme-civic .adt-search-command > label,
body.pmidt-ui.pm-theme-civic .adt-report-field > span,
body.pmidt-ui.pm-theme-civic .adt-referral-toggle strong,
body.pmidt-ui.pm-theme-civic .adt-branch-toggle strong,
body.pmidt-ui.pm-theme-civic .adt-find-btn,
body.pmidt-ui.pm-theme-civic .adt-report-actions .btn,
body.pmidt-ui.pm-theme-civic .adt-desk-chip,
body.pmidt-ui.pm-theme-civic .adt-data-head strong,
body.pmidt-ui.pm-theme-civic .adt-result-heading strong,
body.pmidt-ui.pm-theme-civic .adt-allocation-form label,
body.pmidt-ui.pm-theme-civic .adt-save-bar strong,
body.pmidt-ui.pm-theme-civic .adt-save-bar .btn,
body.pmidt-ui.pm-theme-civic .adt-description-btn,
body.pmidt-ui.pm-theme-civic .adt-notice,
body.pmidt-ui.pm-theme-civic .adt-description-form label,
body.pmidt-ui.pm-theme-civic .adt-description-form .btn,
body.pmidt-ui.pm-theme-civic .adt-page .form-control,
body.pmidt-ui.pm-theme-civic .adt-page .form-select { font-size:.75rem; line-height:1.45; }
body.pmidt-ui.pm-theme-civic .adt-panel-head h2 { font-size:.9rem; }
body.pmidt-ui.pm-theme-civic .adt-desk-body table,
body.pmidt-ui.pm-theme-civic .adt-desk-body table thead th { font-family:Tahoma,Arial,system-ui,sans-serif; font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .adt-summary-report { width:100%; }
body.pmidt-ui.pm-theme-civic .adt-summary-report .adt-table-scroll { max-height:540px; }
body.pmidt-ui.pm-theme-civic .adt-summary-report table { width:100%; border-collapse:collapse; }
body.pmidt-ui.pm-theme-civic .adt-summary-report table tbody tr[style] { font-size:.75rem !important; }
body.pmidt-ui.pm-theme-civic .adt-summary-grid { display:grid !important; grid-template-columns:repeat(4,minmax(90px,.65fr) minmax(120px,1fr)); align-items:center; gap:.35rem .5rem; width:100% !important; margin:0 !important; padding:.75rem !important; color:var(--adt-ink); background:#eef5f2 !important; border-top:1px solid var(--adt-line); font-family:Tahoma,Arial,system-ui,sans-serif !important; }
body.pmidt-ui.pm-theme-civic .adt-summary-grid b { margin:0; color:#456067; font-family:Tahoma,Arial,system-ui,sans-serif !important; font-size:.75rem !important; font-weight:850; text-align:end; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .adt-summary-grid input { width:100% !important; min-width:0 !important; margin:0 !important; color:var(--adt-navy); background:#fff; border:1px solid #cbdad5; font-family:Tahoma,Arial,system-ui,sans-serif !important; font-size:.78rem !important; font-weight:850; text-align:center; }
body.pmidt-ui.pm-theme-civic .adt-empty-state,
body.pmidt-ui.pm-theme-civic .adt-error-state { min-height:330px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.35rem; padding:2rem; text-align:center; background:#f5f8f7; }
body.pmidt-ui.pm-theme-civic .adt-empty-state > i,
body.pmidt-ui.pm-theme-civic .adt-error-state > i { width:56px; height:56px; display:grid; place-items:center; margin-bottom:.55rem; color:var(--adt-steel); background:#e8f0f2; border:1px solid #cedde1; border-radius:50%; font-size:1.25rem; }
body.pmidt-ui.pm-theme-civic .adt-error-state > i { color:var(--adt-brick); background:#f6eae8; border-color:#e5cbc6; }
body.pmidt-ui.pm-theme-civic .adt-empty-state strong,
body.pmidt-ui.pm-theme-civic .adt-error-state strong { font-size:.85rem; }
body.pmidt-ui.pm-theme-civic .adt-empty-state p,
body.pmidt-ui.pm-theme-civic .adt-error-state p { max-width:520px; margin:0; color:var(--adt-muted); font-size:.75rem; line-height:1.6; }
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-description-dialog,
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog { max-width:calc(100vw - 24px) !important; max-height:calc(100vh - 24px) !important; border:1px solid #cbdad5 !important; box-shadow:0 24px 60px rgba(18,58,57,.25) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-description-dialog .ui-dialog-content,
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog .ui-dialog-content { width:100% !important; min-width:0 !important; max-width:100% !important; max-height:calc(100vh - 70px) !important; overflow:auto !important; background:#f7faf8 !important; }
body.pmidt-ui.pm-theme-civic .adt-report-dialog #repoContainer { width:100% !important; min-width:0; }
body.pmidt-ui.pm-theme-civic .adt-report-viewer { width:100%; min-width:0; margin:auto; padding:.5rem; overflow:auto; }
@media (max-width:1050px) { body.pmidt-ui.pm-theme-civic .adt-summary-grid { grid-template-columns:repeat(2,minmax(90px,.65fr) minmax(120px,1fr)); } }
@media (max-width:600px) { body.pmidt-ui.pm-theme-civic .adt-summary-grid { grid-template-columns:minmax(90px,.75fr) minmax(110px,1fr); } body.pmidt-ui.pm-theme-civic .ui-dialog.adt-description-dialog, body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog { max-width:calc(100vw - 12px) !important; } }

/* Audit distribution command desk - authoritative refinement */
body.pmidt-ui.pm-theme-civic .adt-page {
    --adt-navy:#173d45;
    --adt-teal:#2f6f68;
    --adt-steel:#4b7189;
    --adt-amber:#b98532;
    --adt-brick:#984f47;
    --adt-ink:#263b40;
    --adt-muted:#62777b;
    --adt-line:#d3dfdc;
    width:100%;
    max-width:1600px;
    min-width:0;
    overflow-x:hidden;
    padding:.65rem;
    background:#f1f5f4;
}
body.pmidt-ui.pm-theme-civic .adt-page,
body.pmidt-ui.pm-theme-civic .adt-page * { letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic .adt-hero {
    min-height:104px;
    padding:.85rem 1rem;
    background:var(--adt-navy);
    border:1px solid #0f3036;
    border-radius:6px 6px 2px 2px;
    box-shadow:0 7px 16px rgba(20,53,58,.14);
}
body.pmidt-ui.pm-theme-civic .adt-hero::after { display:none; }
body.pmidt-ui.pm-theme-civic .adt-eyebrow { color:#bed7d2; font-size:.68rem; }
body.pmidt-ui.pm-theme-civic .adt-hero h1 { margin:.2rem 0 .25rem; font-size:1.28rem; }
body.pmidt-ui.pm-theme-civic .adt-hero p { color:#d9e6e3; font-size:.72rem; line-height:1.5; }
body.pmidt-ui.pm-theme-civic .adt-status { min-width:205px; padding:.58rem .7rem; background:#10343a; border-radius:4px; }
body.pmidt-ui.pm-theme-civic .adt-status-mark { width:38px; height:38px; flex-basis:38px; border-radius:50%; }
body.pmidt-ui.pm-theme-civic .adt-workload-rail {
    grid-template-columns:minmax(180px,.55fr) 1.45fr;
    gap:.65rem;
    margin:.5rem 0;
    padding:.52rem .65rem;
    border-inline-start-width:4px;
    box-shadow:none;
}
body.pmidt-ui.pm-theme-civic .adt-rail-steps { gap:.35rem; }
body.pmidt-ui.pm-theme-civic .adt-rail-steps > div {
    min-width:138px;
    padding:.35rem .48rem;
    background:#f2f7f5;
    border-radius:3px;
}
body.pmidt-ui.pm-theme-civic .adt-rail-steps > div:nth-of-type(2) { background:#edf5f3; border-color:#cbdeda; }
body.pmidt-ui.pm-theme-civic .adt-rail-steps > div:nth-of-type(3) { background:#eef3f6; border-color:#d2dfe5; }
body.pmidt-ui.pm-theme-civic .adt-workspace-grid {
    gap:0;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--adt-line);
    border-radius:4px;
    box-shadow:0 5px 13px rgba(29,62,63,.07);
}
body.pmidt-ui.pm-theme-civic .adt-panel { border:0; box-shadow:none; }
body.pmidt-ui.pm-theme-civic .adt-assign-panel { border-top:3px solid var(--adt-teal); border-inline-end:1px solid var(--adt-line); }
body.pmidt-ui.pm-theme-civic .adt-report-panel { border-top:3px solid var(--adt-steel); }
body.pmidt-ui.pm-theme-civic .adt-panel-head,
body.pmidt-ui.pm-theme-civic .adt-report-panel .adt-panel-head,
body.pmidt-ui.pm-theme-civic .adt-desk-head { background:#f4f7f6; }
body.pmidt-ui.pm-theme-civic .adt-report-panel .adt-panel-head { background:#f1f5f7; }
body.pmidt-ui.pm-theme-civic .adt-panel-head { min-height:60px; padding:.55rem .65rem; }
body.pmidt-ui.pm-theme-civic .adt-panel-icon { width:34px; height:34px; flex-basis:34px; background:var(--adt-teal); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .adt-search-command { gap:.35rem; padding:.58rem .65rem .65rem; }
body.pmidt-ui.pm-theme-civic .adt-search-actions { grid-template-columns:minmax(180px,1fr) auto; }
body.pmidt-ui.pm-theme-civic .adt-referral-toggle,
body.pmidt-ui.pm-theme-civic .adt-branch-toggle { min-height:39px; background:#faf4e8; border-color:#e6d3ad; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .adt-find-btn { min-height:39px; background:var(--adt-teal); border-color:var(--adt-teal); }
body.pmidt-ui.pm-theme-civic .adt-report-controls { gap:.38rem; padding:.58rem .65rem .65rem; }
body.pmidt-ui.pm-theme-civic .adt-report-actions .btn { min-height:34px; }
body.pmidt-ui.pm-theme-civic .adt-page .btn:disabled { opacity:.55; cursor:not-allowed; filter:saturate(.35); }
body.pmidt-ui.pm-theme-civic .adt-progress { margin:.5rem 0 0; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .adt-desk { min-height:390px; margin-top:.5rem; border-radius:4px; box-shadow:0 7px 17px rgba(27,62,63,.09); }
body.pmidt-ui.pm-theme-civic .adt-desk-head { min-height:55px; padding:.58rem .72rem; border-inline-start:4px solid var(--adt-teal); }
body.pmidt-ui.pm-theme-civic .adt-desk-body {
    min-width:0;
    min-height:330px;
    max-height:min(68vh,720px);
    padding:.55rem;
    overflow:auto;
    overscroll-behavior:contain;
}
body.pmidt-ui.pm-theme-civic .adt-data-frame { width:100%; max-width:100%; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .adt-data-head,
body.pmidt-ui.pm-theme-civic .adt-result-heading { padding:.52rem .62rem; background:#eff5f3; }
body.pmidt-ui.pm-theme-civic .adt-table-scroll { width:100%; max-height:min(50vh,520px); overflow:auto; overscroll-behavior:contain; }
body.pmidt-ui.pm-theme-civic .adt-desk-body table { width:100%; min-width:780px; }
body.pmidt-ui.pm-theme-civic .adt-desk-body table thead th,
body.pmidt-ui.pm-theme-civic .adt-description-register table thead th {
    position:sticky;
    top:0;
    z-index:3;
    background:var(--adt-navy) !important;
}
body.pmidt-ui.pm-theme-civic .adt-assignment-record .adt-table-scroll { max-height:min(39vh,390px); }
body.pmidt-ui.pm-theme-civic .adt-assignment-record table { min-width:1040px; }
body.pmidt-ui.pm-theme-civic .adt-assignment-record tbody tr[style] td,
body.pmidt-ui.pm-theme-civic .adt-bulk-register tbody tr[style] td { color:#7b3d37 !important; background:#fbf2f0; }
body.pmidt-ui.pm-theme-civic .adt-assignment-record td .form-control,
body.pmidt-ui.pm-theme-civic .adt-assignment-record td .form-select { min-width:125px; }
body.pmidt-ui.pm-theme-civic .adt-protected-action { min-width:96px; background:var(--adt-teal); border-color:var(--adt-teal); }
body.pmidt-ui.pm-theme-civic .adt-allocation-form { grid-template-columns:minmax(190px,1fr) minmax(220px,1.3fr) minmax(220px,1fr); margin:0; border-width:0 0 1px; }
body.pmidt-ui.pm-theme-civic .adt-bulk-register .adt-table-scroll { max-height:min(43vh,460px); }
body.pmidt-ui.pm-theme-civic .adt-save-bar { position:sticky; bottom:0; z-index:4; margin:0; border-width:1px 0 0; background:#edf5f2; }
body.pmidt-ui.pm-theme-civic .adt-summary-report .adt-table-scroll { max-height:min(44vh,470px); }
body.pmidt-ui.pm-theme-civic .adt-summary-grid { grid-template-columns:repeat(4,minmax(78px,.58fr) minmax(105px,1fr)); padding:.58rem !important; background:#edf4f2 !important; }
body.pmidt-ui.pm-theme-civic .adt-summary-grid b { white-space:normal; }
body.pmidt-ui.pm-theme-civic .adt-grid-shell { max-height:min(57vh,600px); padding:.35rem; overflow:auto; }
body.pmidt-ui.pm-theme-civic .adt-grid-shell .dx-datagrid-rowsview { max-height:min(43vh,440px); }
body.pmidt-ui.pm-theme-civic .adt-chart-shell { max-height:min(58vh,600px); overflow:auto; }
body.pmidt-ui.pm-theme-civic .adt-empty-state,
body.pmidt-ui.pm-theme-civic .adt-error-state { min-height:300px; background:#f5f8f7; }
body.pmidt-ui.pm-theme-civic .adt-description-form { padding:.62rem 0; }
body.pmidt-ui.pm-theme-civic .adt-description-register { max-height:min(44vh,360px); border:1px solid var(--adt-line); }
body.pmidt-ui.pm-theme-civic .adt-description-register table { width:100%; min-width:560px; }
body.pmidt-ui.pm-theme-civic .adt-description-register th { padding:.5rem; color:#fff; font-size:.7rem; }
body.pmidt-ui.pm-theme-civic .adt-description-register td { padding:.45rem .5rem; vertical-align:middle; }
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-description-dialog,
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog { width:min(800px,calc(100vw - 24px)) !important; border-radius:4px !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog { width:min(1000px,calc(100vw - 24px)) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-description-dialog .ui-dialog-titlebar,
body.pmidt-ui.pm-theme-civic .ui-dialog.adt-report-dialog .ui-dialog-titlebar { color:#fff; background:var(--adt-navy); border:0; border-radius:2px 2px 0 0; }
@media (max-width:1050px) {
    body.pmidt-ui.pm-theme-civic .adt-assign-panel { border-inline-end:0; border-bottom:1px solid var(--adt-line); }
    body.pmidt-ui.pm-theme-civic .adt-allocation-form { grid-template-columns:repeat(2,minmax(180px,1fr)); }
    body.pmidt-ui.pm-theme-civic .adt-reason-field { grid-column:1/-1; }
    body.pmidt-ui.pm-theme-civic .adt-summary-grid { grid-template-columns:repeat(2,minmax(78px,.58fr) minmax(105px,1fr)); }
}
@media (max-width:700px) {
    body.pmidt-ui.pm-theme-civic .adt-page { padding:.38rem; }
    body.pmidt-ui.pm-theme-civic .adt-hero h1 { font-size:1.14rem; }
    body.pmidt-ui.pm-theme-civic .adt-workload-rail { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .adt-rail-steps { display:grid; grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .adt-rail-arrow { transform:rotate(90deg); justify-self:center; }
    body.pmidt-ui.pm-theme-civic .adt-report-controls { grid-template-columns:1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .adt-search-actions,
    body.pmidt-ui.pm-theme-civic .adt-allocation-form { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .adt-desk-body { max-height:72vh; padding:.38rem; }
    body.pmidt-ui.pm-theme-civic .adt-summary-grid { grid-template-columns:minmax(78px,.62fr) minmax(100px,1fr); }
}
@media (max-width:480px) {
    body.pmidt-ui.pm-theme-civic .adt-report-controls { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .adt-report-field:first-child,
    body.pmidt-ui.pm-theme-civic .adt-branch-toggle { grid-column:auto; }
    body.pmidt-ui.pm-theme-civic .adt-report-actions .btn { flex-basis:100%; }
    body.pmidt-ui.pm-theme-civic .adt-desk-head { align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) {
    body.pmidt-ui.pm-theme-civic .adt-page *,
    body.pmidt-ui.pm-theme-civic .adt-page *::before,
    body.pmidt-ui.pm-theme-civic .adt-page *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Petty cash review notes - official reconciliation docket */
body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) {
    --pcrn-navy:#173d45; --pcrn-green:#2f6f62; --pcrn-green-soft:#e8f3ef; --pcrn-steel:#4b7189;
    --pcrn-blue-soft:#eaf1f5; --pcrn-red:#974b45; --pcrn-red-soft:#faecea; --pcrn-amber:#a86f20;
    --pcrn-amber-soft:#fff3dc; --pcrn-ink:#263b40; --pcrn-muted:#62777b; --pcrn-line:#d2dfdc;
    width:100%; max-width:1600px; min-width:0; margin:0 auto; padding:.65rem; overflow-x:hidden;
    color:var(--pcrn-ink); background:#eef3f2; font-family:Tahoma,"Segoe UI",sans-serif; font-size:.8125rem;
}
body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page),
body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) * { box-sizing:border-box; letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.8rem 1rem; color:#fff; background:var(--pcrn-navy); border:1px solid #0d2d35; border-bottom:4px solid var(--pcrn-amber); border-radius:6px 6px 3px 3px; box-shadow:0 7px 16px rgba(20,53,58,.13); }
body.pmidt-ui.pm-theme-civic .pcrn-kicker { display:flex; align-items:center; gap:.4rem; color:#b9d8d3; font-size:.75rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .pcrn-kicker i { color:#e7bd72; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead h1 { margin:.18rem 0 .2rem; color:#fff; font-size:1.3rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead p { margin:0; color:#d7e5e2; font-size:.8125rem; line-height:1.55; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead-state { min-width:185px; display:flex; align-items:center; gap:.6rem; padding:.52rem .65rem; background:#102f38; border:1px solid rgba(255,255,255,.13); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead-state > i { width:34px; height:34px; display:grid; place-items:center; color:#dfb96f; background:rgba(255,255,255,.08); border-radius:3px; font-size:1rem; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead-state span, body.pmidt-ui.pm-theme-civic .pcrn-masthead-state small, body.pmidt-ui.pm-theme-civic .pcrn-masthead-state strong { display:block; }
body.pmidt-ui.pm-theme-civic .pcrn-masthead-state small { color:#a9c5c2; font-size:.65rem; } body.pmidt-ui.pm-theme-civic .pcrn-masthead-state strong { margin-top:.08rem; color:#fff; }

body.pmidt-ui.pm-theme-civic .pcrn-workflow { min-height:54px; display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:.4rem; margin:.5rem 0; padding:.45rem .65rem; background:#fff; border:1px solid var(--pcrn-line); border-inline-start:4px solid var(--pcrn-steel); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div { min-height:38px; display:flex; align-items:center; gap:.45rem; padding:.35rem .5rem; background:#f3f7f6; border:1px solid #e0e9e7; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div > span { width:24px; height:24px; display:grid; flex:0 0 24px; place-items:center; color:#fff; background:var(--pcrn-steel); border-radius:3px; font-size:.75rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div > i { color:var(--pcrn-steel); font-size:.9rem; }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div.is-current { background:var(--pcrn-amber-soft); border-color:#ead4a8; } body.pmidt-ui.pm-theme-civic .pcrn-workflow > div.is-current > span { background:var(--pcrn-amber); }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div.is-complete { background:var(--pcrn-green-soft); border-color:#c7dfd7; } body.pmidt-ui.pm-theme-civic .pcrn-workflow > div.is-complete > span { background:var(--pcrn-green); }
body.pmidt-ui.pm-theme-civic .pcrn-workflow > div.is-locked { color:#65787b; background:#edf2f3; } body.pmidt-ui.pm-theme-civic .pcrn-workflow-arrow { color:#93a5a7; }

body.pmidt-ui.pm-theme-civic .pcrn-docket-head { min-height:96px; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,390px); align-items:stretch; color:#fff; background:var(--pcrn-navy); border:1px solid #0d2d35; border-block-start:5px solid var(--pcrn-amber); box-shadow:0 7px 16px rgba(20,53,58,.13); }
body.pmidt-ui.pm-theme-civic .pcrn-docket-identity { display:flex; align-items:center; gap:.8rem; padding:.85rem 1rem; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-mark { width:48px; height:54px; display:grid; flex:0 0 48px; place-items:center; color:#f0ca82; border:1px solid rgba(255,255,255,.22); border-block-start:4px solid #f0ca82; font-size:1.2rem; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-head h1 { margin:.12rem 0 .18rem; color:#fff; font-size:1.3rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-head p { margin:0; color:#d7e5e2; line-height:1.55; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-reference { display:grid; grid-template-columns:1fr 1.35fr; margin:0; background:#102f38; border-inline-start:1px solid rgba(255,255,255,.14); }
body.pmidt-ui.pm-theme-civic .pcrn-docket-reference > div { display:flex; justify-content:center; flex-direction:column; padding:.65rem .75rem; border-inline-end:1px solid rgba(255,255,255,.1); }
body.pmidt-ui.pm-theme-civic .pcrn-docket-reference dt { color:#9fbfbb; font-size:.65rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-reference dd { margin:.16rem 0 0; color:#fff; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-reference dd span { display:inline-grid; width:25px; height:25px; margin-inline-end:.25rem; place-items:center; color:#173d45; background:#e5bd72; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-strip { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(360px,1.5fr) minmax(180px,.7fr); min-height:62px; margin:.5rem 0; background:#fff; border:1px solid var(--pcrn-line); border-inline-start:5px solid var(--pcrn-amber); }
body.pmidt-ui.pm-theme-civic .pcrn-docket-total, body.pmidt-ui.pm-theme-civic .pcrn-docket-next { display:flex; justify-content:center; flex-direction:column; padding:.45rem .7rem; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-total span, body.pmidt-ui.pm-theme-civic .pcrn-docket-next small { color:var(--pcrn-muted); font-size:.68rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-total strong { color:var(--pcrn-ink); font-size:1.3rem; line-height:1.1; }
body.pmidt-ui.pm-theme-civic .pcrn-docket-total small { color:var(--pcrn-green); font-weight:800; }
body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution { display:grid; grid-template-columns:repeat(3,1fr); border-inline:1px solid var(--pcrn-line); }
body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution > span { display:grid; grid-template-columns:22px 1fr auto; align-items:center; gap:.35rem; padding:.45rem .65rem; border-inline-end:1px solid var(--pcrn-line); }
body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution > span:last-child { border-inline-end:0; }
body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution i { font-size:1rem; } body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution b { font-size:.75rem; } body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution strong { font-size:1.12rem; }
body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution .is-shortage { color:#7d3b36; background:var(--pcrn-red-soft); } body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution .is-surplus { color:#765219; background:var(--pcrn-amber-soft); } body.pmidt-ui.pm-theme-civic .pcrn-discrepancy-distribution .is-balanced { color:#285e50; background:var(--pcrn-green-soft); }
body.pmidt-ui.pm-theme-civic .pcrn-docket-next { align-items:center; flex-direction:row; gap:.5rem; background:#f4f7f6; } body.pmidt-ui.pm-theme-civic .pcrn-docket-next > i { color:var(--pcrn-steel); } body.pmidt-ui.pm-theme-civic .pcrn-docket-next span, body.pmidt-ui.pm-theme-civic .pcrn-docket-next strong { display:block; }

body.pmidt-ui.pm-theme-civic .pcrn-register, body.pmidt-ui.pm-theme-civic .pcrn-review-identity, body.pmidt-ui.pm-theme-civic .pcrn-composer { overflow:hidden; background:#fff; border:1px solid var(--pcrn-line); border-radius:4px; box-shadow:0 6px 15px rgba(28,59,62,.08); }
body.pmidt-ui.pm-theme-civic .pcrn-register-head, body.pmidt-ui.pm-theme-civic .pcrn-review-identity > header, body.pmidt-ui.pm-theme-civic .pcrn-composer-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.6rem .75rem; background:#f2f7f5; border-bottom:1px solid var(--pcrn-line); border-inline-start:4px solid var(--pcrn-green); }
body.pmidt-ui.pm-theme-civic .pcrn-register-head { background:#fff; border-inline-start:0; border-block-start:4px solid var(--pcrn-navy); }
body.pmidt-ui.pm-theme-civic :is(.pcrn-register-head,.pcrn-review-identity>header,.pcrn-composer-head) span:first-child { color:var(--pcrn-steel); font-size:.68rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.pcrn-register-head,.pcrn-review-identity>header,.pcrn-composer-head) h2 { margin:.08rem 0 0; color:var(--pcrn-ink); font-size:.95rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-report-btn { min-height:37px; display:inline-flex; align-items:center; gap:.4rem; color:#fff; background:var(--pcrn-steel); border:1px solid var(--pcrn-steel); border-radius:3px; font-size:.75rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcrn-toolbar { display:grid; grid-template-columns:100px minmax(240px,560px) 1fr; align-items:center; gap:.55rem; padding:.55rem .7rem; background:#f8faf9; border-bottom:1px solid var(--pcrn-line); }
body.pmidt-ui.pm-theme-civic .pcrn-toolbar > label { margin:0; color:#40595d; font-weight:850; } body.pmidt-ui.pm-theme-civic .pcrn-search-wrap { position:relative; }
body.pmidt-ui.pm-theme-civic .pcrn-search-wrap > i { position:absolute; z-index:1; inset-inline-start:.7rem; top:50%; color:var(--pcrn-steel); transform:translateY(-50%); }
body.pmidt-ui.pm-theme-civic .pcrn-search-wrap .form-control { width:100% !important; min-height:39px; margin:0 !important; padding-inline-start:2rem; border:1px solid #c9d8d5; border-radius:3px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .pcrn-visible-count { justify-self:end; color:var(--pcrn-muted); font-weight:800; } body.pmidt-ui.pm-theme-civic .pcrn-visible-count strong { color:var(--pcrn-green); }
body.pmidt-ui.pm-theme-civic .pcrn-table-shell { width:100%; max-width:100%; max-height:min(62vh,650px); overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
body.pmidt-ui.pm-theme-civic .pcrn-table { width:100%; min-width:1080px; margin:0; border-collapse:separate; border-spacing:0; font-size:.78rem; }
body.pmidt-ui.pm-theme-civic .pcrn-table > thead > tr > th { position:sticky; z-index:3; top:0; padding:.58rem .5rem; color:#fff; background:var(--pcrn-navy); border-color:rgba(255,255,255,.12); white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .pcrn-table > tbody > tr.pcrn-review-row > td { padding:.48rem .5rem; color:#33494d; border-color:#e0e8e4; vertical-align:middle; }
body.pmidt-ui.pm-theme-civic .pcrn-table > tbody > tr.pcrn-review-row:nth-of-type(4n+3) > td { background:#f8faf9; } body.pmidt-ui.pm-theme-civic .pcrn-review-row:hover > td { background:#edf5f2 !important; }
body.pmidt-ui.pm-theme-civic .pcrn-mono, body.pmidt-ui.pm-theme-civic .pcrn-amount { direction:ltr; font-variant-numeric:tabular-nums; text-align:center; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .pcrn-difference { min-width:105px; display:grid; grid-template-columns:18px 1fr; gap:.05rem .35rem; padding:.3rem .4rem; border:1px solid; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-difference i { grid-row:1/3; align-self:center; } body.pmidt-ui.pm-theme-civic .pcrn-difference small { direction:ltr; font-variant-numeric:tabular-nums; }
body.pmidt-ui.pm-theme-civic .pcrn-difference.is-shortage { color:#7d3b36; background:var(--pcrn-red-soft); border-color:#e3c4bf; } body.pmidt-ui.pm-theme-civic .pcrn-difference.is-surplus { color:#765219; background:var(--pcrn-amber-soft); border-color:#e8d09e; } body.pmidt-ui.pm-theme-civic .pcrn-difference.is-balanced { color:#285e50; background:var(--pcrn-green-soft); border-color:#c8ded6; }
body.pmidt-ui.pm-theme-civic .pcrn-expand-btn { min-width:48px; min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; color:#355f70; background:#edf3f5; border:1px solid #cbdbe1; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-row-actions { min-width:208px; text-align:center; white-space:nowrap; } body.pmidt-ui.pm-theme-civic .pcrn-row-actions .btn { width:40px; height:40px; display:inline-grid; place-items:center; margin:.08rem; padding:0; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-action-add { color:#fff; background:var(--pcrn-green); border-color:var(--pcrn-green); } body.pmidt-ui.pm-theme-civic .pcrn-action-edit { color:#684b18; background:#f4e2bf; border-color:#dfc38a; } body.pmidt-ui.pm-theme-civic .pcrn-action-note-print { color:#fff; background:#517c67; border-color:#517c67; } body.pmidt-ui.pm-theme-civic .pcrn-action-full-print { color:#fff; background:var(--pcrn-steel); border-color:var(--pcrn-steel); }
body.pmidt-ui.pm-theme-civic .pcrn-note-row > td { padding:.45rem !important; background:#edf3f1 !important; } body.pmidt-ui.pm-theme-civic .pcrn-note-ledger { overflow:hidden; background:#fff; border:1px solid #cad9d5; border-inline-start:4px solid var(--pcrn-steel); }
body.pmidt-ui.pm-theme-civic .pcrn-note-ledger > header { display:flex; align-items:center; justify-content:space-between; padding:.45rem .6rem; color:#3c5960; background:#eef4f4; border-bottom:1px solid #d4e0dd; } body.pmidt-ui.pm-theme-civic .pcrn-note-ledger > header span { display:flex; align-items:center; gap:.4rem; font-weight:850; } body.pmidt-ui.pm-theme-civic .pcrn-note-ledger > header strong { color:var(--pcrn-steel); }
body.pmidt-ui.pm-theme-civic .pcrn-ledger-scroll { max-height:260px; overflow:auto; } body.pmidt-ui.pm-theme-civic .pcrn-ledger-scroll .table { min-width:720px; margin:0; } body.pmidt-ui.pm-theme-civic .pcrn-ledger-scroll th { padding:.45rem .5rem; color:#fff; background:#365b65; } body.pmidt-ui.pm-theme-civic .pcrn-ledger-scroll td { padding:.5rem; border-color:#e0e7e5; line-height:1.6; }
body.pmidt-ui.pm-theme-civic .pcrn-ledger-empty, body.pmidt-ui.pm-theme-civic .pcrn-empty-row td { text-align:center; color:var(--pcrn-muted); } body.pmidt-ui.pm-theme-civic .pcrn-ledger-empty { display:flex; align-items:center; justify-content:center; gap:.45rem; min-height:70px; } body.pmidt-ui.pm-theme-civic .pcrn-empty-row td { padding:1.3rem !important; } body.pmidt-ui.pm-theme-civic .pcrn-empty-row i, body.pmidt-ui.pm-theme-civic .pcrn-empty-row strong, body.pmidt-ui.pm-theme-civic .pcrn-empty-row span { display:block; margin:.15rem auto; }
body.pmidt-ui.pm-theme-civic .pcrn-empty-state { min-height:300px; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:2rem; text-align:center; background:#f8faf9; } body.pmidt-ui.pm-theme-civic .pcrn-empty-state > i { width:54px; height:54px; display:grid; place-items:center; color:var(--pcrn-green); background:var(--pcrn-green-soft); border:1px solid #c8ded7; border-radius:5px; font-size:1.3rem; } body.pmidt-ui.pm-theme-civic .pcrn-empty-state h3 { margin:1rem 0 .3rem; font-size:.95rem; } body.pmidt-ui.pm-theme-civic .pcrn-empty-state p { margin:0; color:var(--pcrn-muted); }

body.pmidt-ui.pm-theme-civic .pcrn-review-identity { margin-bottom:.5rem; } body.pmidt-ui.pm-theme-civic .pcrn-review-identity > header > strong { color:var(--pcrn-steel); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .pcrn-identity-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; padding:.55rem; background:#fff; }
body.pmidt-ui.pm-theme-civic .pcrn-identity-grid > div { min-width:0; padding:.45rem .55rem; border-inline-end:1px solid #e0e8e5; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid > div:last-child { border-inline-end:0; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid dt { color:var(--pcrn-muted); font-size:.7rem; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid dd { margin:.15rem 0 0; overflow-wrap:anywhere; color:var(--pcrn-ink); font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcrn-equation { display:grid; grid-template-columns:1fr 32px 1fr 32px 1fr; align-items:stretch; margin:0 .55rem .6rem; overflow:hidden; background:#f5f8f7; border:1px solid var(--pcrn-line); border-inline-start:5px solid var(--pcrn-green); }
body.pmidt-ui.pm-theme-civic .pcrn-equation > div { min-height:62px; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:.45rem; } body.pmidt-ui.pm-theme-civic .pcrn-equation small { color:var(--pcrn-muted); font-size:.7rem; } body.pmidt-ui.pm-theme-civic .pcrn-equation strong { direction:ltr; margin-top:.12rem; font-size:1.05rem; font-variant-numeric:tabular-nums; }
body.pmidt-ui.pm-theme-civic .pcrn-equation-symbol { display:grid; place-items:center; color:#77908c; background:#e8efed; font-size:1.15rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-equation-result { color:#285e50; background:var(--pcrn-green-soft); } body.pmidt-ui.pm-theme-civic .pcrn-equation.is-shortage { border-inline-start-color:var(--pcrn-red); } body.pmidt-ui.pm-theme-civic .pcrn-equation.is-shortage .pcrn-equation-result { color:#7d3b36; background:var(--pcrn-red-soft); } body.pmidt-ui.pm-theme-civic .pcrn-equation.is-surplus { border-inline-start-color:var(--pcrn-amber); } body.pmidt-ui.pm-theme-civic .pcrn-equation.is-surplus .pcrn-equation-result { color:#765219; background:var(--pcrn-amber-soft); }
body.pmidt-ui.pm-theme-civic .pcrn-validation:empty { display:none; } body.pmidt-ui.pm-theme-civic .pcrn-validation { margin-bottom:.5rem; padding:.6rem .75rem; color:#783b35; background:var(--pcrn-red-soft); border:1px solid #e4c5c0; border-inline-start:4px solid var(--pcrn-red); } body.pmidt-ui.pm-theme-civic .pcrn-validation ul { margin:0; }
body.pmidt-ui.pm-theme-civic .pcrn-composer-head { border-inline-start-color:var(--pcrn-steel); } body.pmidt-ui.pm-theme-civic .pcrn-composer-head p { margin:.12rem 0 0; color:var(--pcrn-muted); font-size:.7rem; } body.pmidt-ui.pm-theme-civic .pcrn-composer-count { padding:.35rem .5rem; color:#4f686d; background:#fff; border:1px solid #d2dfdc; border-radius:3px; font-weight:800; } body.pmidt-ui.pm-theme-civic .pcrn-composer-count strong { color:var(--pcrn-steel); }
body.pmidt-ui.pm-theme-civic .pcrn-notes-container { display:grid; gap:.5rem; padding:.55rem; background:#f6f9f8; }
body.pmidt-ui.pm-theme-civic .pcrn-note-group { overflow:hidden; background:#fff; border:1px solid #d4e0dd; border-inline-start:4px solid var(--pcrn-green); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-note-group > header { min-height:44px; display:grid; grid-template-columns:28px 1fr 40px; align-items:center; gap:.45rem; padding:.2rem .45rem; background:#edf5f2; border-bottom:1px solid #d6e3df; } body.pmidt-ui.pm-theme-civic .pcrn-note-sequence { width:25px; height:25px; display:grid; place-items:center; color:#fff; background:var(--pcrn-green); border-radius:3px; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcrn-note-group .remove-note { width:40px; height:40px; display:grid; place-items:center; padding:0; color:#7d3d37; background:var(--pcrn-red-soft); border:1px solid #e4c4bf; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcrn-note-fields { display:grid; grid-template-columns:minmax(260px,.9fr) minmax(320px,1.4fr); gap:.55rem; padding:.55rem; } body.pmidt-ui.pm-theme-civic .pcrn-note-fields label { min-width:0; display:grid; gap:.3rem; margin:0; color:#40595d; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcrn-form :is(.form-control,.form-select) { width:100% !important; min-width:0; margin:0 !important; color:var(--pcrn-ink); background:#fff; border:1px solid #c8d7d4; border-radius:3px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .pcrn-form .form-select { min-height:40px; } body.pmidt-ui.pm-theme-civic .pcrn-form textarea[readonly] { min-height:76px; resize:vertical; color:#506467; background:#f2f5f4; line-height:1.55; }
body.pmidt-ui.pm-theme-civic .pcrn-composer-empty { min-height:145px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.25rem; padding:1.2rem; color:var(--pcrn-muted); text-align:center; background:#f8faf9; } body.pmidt-ui.pm-theme-civic .pcrn-composer-empty i { color:var(--pcrn-steel); font-size:1.4rem; } body.pmidt-ui.pm-theme-civic .pcrn-composer-empty strong { color:var(--pcrn-ink); }
body.pmidt-ui.pm-theme-civic .pcrn-add-note { min-height:38px; display:inline-flex; align-items:center; gap:.35rem; margin:0 .55rem .55rem; color:#355f70; background:var(--pcrn-blue-soft); border:1px solid #c7d9e1; border-radius:3px; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcrn-save-bar { position:sticky; z-index:5; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.5rem; padding:.6rem .7rem; background:#eaf3ef; border:1px solid #cfdfd9; border-inline-start:4px solid var(--pcrn-green); box-shadow:0 -4px 12px rgba(29,65,61,.06); }
body.pmidt-ui.pm-theme-civic .pcrn-save-bar > div:first-child { display:flex; align-items:center; gap:.5rem; } body.pmidt-ui.pm-theme-civic .pcrn-save-bar > div:first-child > i { color:var(--pcrn-green); font-size:1.05rem; } body.pmidt-ui.pm-theme-civic .pcrn-save-bar span, body.pmidt-ui.pm-theme-civic .pcrn-save-bar strong, body.pmidt-ui.pm-theme-civic .pcrn-save-bar small { display:block; } body.pmidt-ui.pm-theme-civic .pcrn-save-bar small { margin-top:.08rem; color:var(--pcrn-muted); font-size:.68rem; }
body.pmidt-ui.pm-theme-civic .pcrn-save-actions { display:flex; gap:.4rem; } body.pmidt-ui.pm-theme-civic .pcrn-save-actions .btn { min-height:39px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; border-radius:3px; font-weight:850; } body.pmidt-ui.pm-theme-civic .pcrn-back-btn { color:#4d6266; background:#fff; border:1px solid #c7d4d1; } body.pmidt-ui.pm-theme-civic .pcrn-save-btn { min-width:140px; color:#fff; background:var(--pcrn-green); border:1px solid var(--pcrn-green); }

body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) :is(button,a,input,select,textarea):focus-visible { outline:3px solid rgba(168,111,32,.38) !important; outline-offset:2px; box-shadow:none !important; }
body.pmidt-ui.pm-theme-civic .pcrn-report-feedback { min-height:1px; overflow:hidden; color:var(--pcrn-green); font-size:.72rem; text-align:center; } body.pmidt-ui.pm-theme-civic .pcrn-report-feedback.is-error { color:var(--pcrn-red); }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog.pcrn-report-dialog) { width:min(1100px,calc(100vw - 24px)) !important; max-width:calc(100vw - 24px) !important; max-height:calc(100vh - 24px) !important; border:1px solid #bdcfca !important; border-radius:5px !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog.pcrn-report-dialog) .ui-dialog-titlebar { color:#fff; background:#173d45; border:0; border-radius:3px 3px 0 0; }
body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog.pcrn-report-dialog) .ui-dialog-content { width:100% !important; max-width:100% !important; padding:.45rem !important; overflow:hidden !important; background:#f3f6f5 !important; }
body.pmidt-ui.pm-theme-civic #repoContainer, body.pmidt-ui.pm-theme-civic .pcrn-report-viewer { width:100%; height:var(--pcrn-report-viewer-height,calc(100vh - 112px)); max-width:100%; min-width:0; overflow:hidden; } body.pmidt-ui.pm-theme-civic .pcrn-report-viewer { padding:.25rem; } body.pmidt-ui.pm-theme-civic .pcrn-report-loading, body.pmidt-ui.pm-theme-civic .pcrn-report-error { min-height:180px; display:grid; place-items:center; padding:1rem; text-align:center; } body.pmidt-ui.pm-theme-civic .pcrn-report-error { color:var(--pcrn-red); }

@media (max-width:768px) {
    body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) { padding:.4rem; }
    body.pmidt-ui.pm-theme-civic .pcrn-masthead { min-height:auto; align-items:flex-start; flex-direction:column; padding:.75rem; } body.pmidt-ui.pm-theme-civic .pcrn-masthead-state { width:100%; min-width:0; }
    body.pmidt-ui.pm-theme-civic .pcrn-workflow { display:flex; gap:.35rem; overflow-x:auto; } body.pmidt-ui.pm-theme-civic .pcrn-workflow > div { min-width:165px; } body.pmidt-ui.pm-theme-civic .pcrn-workflow-arrow { flex:0 0 auto; }
    body.pmidt-ui.pm-theme-civic .pcrn-docket-head { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-docket-reference { border-inline-start:0; border-block-start:1px solid rgba(255,255,255,.14); }
    body.pmidt-ui.pm-theme-civic .pcrn-docket-strip { grid-template-columns:160px minmax(360px,1fr) 160px; overflow-x:auto; }
    body.pmidt-ui.pm-theme-civic .pcrn-toolbar { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-visible-count { justify-self:start; }
    body.pmidt-ui.pm-theme-civic .pcrn-table-shell { max-height:66vh; } body.pmidt-ui.pm-theme-civic .pcrn-table { min-width:1000px; }
    body.pmidt-ui.pm-theme-civic .pcrn-identity-grid { grid-template-columns:1fr 1fr; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid > div:nth-child(2) { border-inline-end:0; }
    body.pmidt-ui.pm-theme-civic .pcrn-equation { grid-template-columns:1fr 24px 1fr 24px 1fr; } body.pmidt-ui.pm-theme-civic .pcrn-note-fields { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .pcrn-save-bar { align-items:stretch; flex-direction:column; } body.pmidt-ui.pm-theme-civic .pcrn-save-actions { display:grid; grid-template-columns:1fr 1.3fr; }
    body.pmidt-ui.pm-theme-civic .ui-dialog:has(#repoDialog.pcrn-report-dialog) { width:calc(100vw - 12px) !important; max-width:calc(100vw - 12px) !important; }
}
@media (max-width:430px) {
    body.pmidt-ui.pm-theme-civic .pcrn-docket-identity { align-items:flex-start; padding:.7rem; } body.pmidt-ui.pm-theme-civic .pcrn-docket-mark { width:40px; height:46px; flex-basis:40px; } body.pmidt-ui.pm-theme-civic .pcrn-docket-head h1 { font-size:1.08rem; }
    body.pmidt-ui.pm-theme-civic .pcrn-docket-reference { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-docket-reference > div { min-height:52px; border-block-end:1px solid rgba(255,255,255,.1); }
    body.pmidt-ui.pm-theme-civic .pcrn-docket-strip { grid-template-columns:135px minmax(330px,1fr) 135px; }
    body.pmidt-ui.pm-theme-civic .pcrn-masthead h1 { font-size:1.12rem; } body.pmidt-ui.pm-theme-civic .pcrn-register-head, body.pmidt-ui.pm-theme-civic .pcrn-review-identity > header, body.pmidt-ui.pm-theme-civic .pcrn-composer-head { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .pcrn-report-btn { width:100%; justify-content:center; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-identity-grid > div { border-inline-end:0; border-bottom:1px solid #e0e8e5; }
    body.pmidt-ui.pm-theme-civic .pcrn-equation { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-equation-symbol { min-height:24px; } body.pmidt-ui.pm-theme-civic .pcrn-save-actions { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcrn-save-actions .btn { width:100%; }
}
@media (prefers-reduced-motion:reduce) { body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) *, body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) *::before, body.pmidt-ui.pm-theme-civic :is(.pcrn-page,.pcrn-form-page) *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; } }

/* Bank reconciliation notes register */
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) {
    --brn-navy:#183b46;
    --brn-navy-deep:#102f38;
    --brn-teal:#2f7169;
    --brn-teal-soft:#e7f2ef;
    --brn-steel:#4c7187;
    --brn-steel-soft:#eaf1f5;
    --brn-amber:#b67b25;
    --brn-amber-soft:#fff4dc;
    --brn-brick:#974b45;
    --brn-brick-soft:#faecea;
    --brn-ink:#263b40;
    --brn-muted:#63777b;
    --brn-line:#d2dfdc;
    width:100%;
    max-width:1600px;
    min-width:0;
    margin:0 auto;
    padding:.65rem;
    color:var(--brn-ink);
    background:#eef3f2;
    font-family:Tahoma,"Segoe UI",sans-serif;
    font-size:.8125rem;
    letter-spacing:0 !important;
}
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page),
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) * { box-sizing:border-box; letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead {
    min-height:92px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.8rem 1rem;
    color:#fff;
    background:var(--brn-navy);
    border:1px solid #0d2d35;
    border-radius:6px 6px 3px 3px;
    box-shadow:0 7px 16px rgba(20,53,58,.13);
}
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-kicker { display:flex; align-items:center; gap:.4rem; color:#b9d8d3; font-size:.75rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead h1 { margin:.18rem 0 .2rem; color:#fff; font-size:1.3rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead p { margin:0; color:#d7e5e2; font-size:.8125rem; line-height:1.55; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state { min-width:180px; display:flex; align-items:center; gap:.6rem; padding:.52rem .65rem; background:var(--brn-navy-deep); border:1px solid rgba(255,255,255,.12); border-radius:4px; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state > i { width:34px; height:34px; display:grid; place-items:center; color:#d8b86d; background:rgba(255,255,255,.08); border-radius:3px; font-size:1rem; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state span { display:grid; gap:.06rem; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state small { color:#a9c5c2; font-size:.62rem; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state strong { color:#fff; font-size:.8125rem; }

body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow {
    min-height:54px;
    display:grid;
    grid-template-columns:1fr auto 1fr auto 1fr;
    align-items:center;
    gap:.4rem;
    margin:.5rem 0;
    padding:.45rem .65rem;
    background:#fff;
    border:1px solid var(--brn-line);
    border-inline-start:4px solid var(--brn-steel);
    border-radius:4px;
}
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div { min-height:38px; display:flex; align-items:center; gap:.45rem; padding:.35rem .5rem; background:#f3f7f6; border:1px solid #e0e9e7; border-radius:3px; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div > span { width:24px; height:24px; display:grid; place-items:center; flex:0 0 24px; color:#fff; background:var(--brn-steel); border-radius:3px; font-size:.75rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div > i { color:var(--brn-steel); font-size:.9rem; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div.is-current { background:var(--brn-amber-soft); border-color:#ead4a8; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div.is-current > span { background:var(--brn-amber); }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div.is-complete { background:var(--brn-teal-soft); border-color:#c7dfd9; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div.is-complete > span { background:var(--brn-teal); }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow > div.is-locked { background:#edf2f3; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow-arrow { color:#93a5a7; }

body.pmidt-ui.pm-theme-civic .brn-page .brn-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin-bottom:.5rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi { min-height:58px; display:flex; align-items:center; gap:.6rem; padding:.5rem .7rem; background:#fff; border:1px solid var(--brn-line); border-top:3px solid var(--brn-steel); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi > i { width:34px; height:34px; display:grid; place-items:center; color:var(--brn-steel); background:var(--brn-steel-soft); border-radius:3px; font-size:1rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi span { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; color:var(--brn-muted); font-weight:800; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi strong { color:var(--brn-ink); font-size:1.15rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi-resolved { border-top-color:var(--brn-teal); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi-resolved > i { color:var(--brn-teal); background:var(--brn-teal-soft); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi-open { border-top-color:var(--brn-amber); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-kpi-open > i { color:var(--brn-amber); background:var(--brn-amber-soft); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-register { overflow:hidden; background:#fff; border:1px solid var(--brn-line); border-radius:4px; box-shadow:0 6px 15px rgba(28,59,62,.08); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-register-head { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.5rem .7rem; background:#f2f6f5; border-bottom:1px solid var(--brn-line); border-inline-start:4px solid var(--brn-teal); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-register-head span { color:var(--brn-steel); font-size:.7rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-register-head h2 { margin:.1rem 0 0; color:var(--brn-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-register-chip { display:flex; align-items:center; gap:.35rem; padding:.3rem .45rem; color:var(--brn-amber) !important; background:var(--brn-amber-soft); border:1px solid #ead4a8; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-command-bar { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.55rem .65rem; background:#fafcfc; border-bottom:1px solid var(--brn-line); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-search-box { position:relative; flex:1 1 420px; max-width:650px; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-search-box > i { position:absolute; top:50%; right:.75rem; z-index:1; transform:translateY(-50%); color:var(--brn-steel); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-search-box .form-control { min-height:39px; padding-right:2.1rem; padding-left:7rem; color:var(--brn-ink); background:#fff; border:1px solid #c5d5d2; border-radius:4px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-search-count { position:absolute; top:50%; left:.65rem; transform:translateY(-50%); color:var(--brn-muted); font-size:.75rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-command-actions { display:flex; flex-wrap:wrap; gap:.4rem; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .btn { min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; border-radius:4px; font-size:.8rem; font-weight:850; box-shadow:none; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-btn-primary { color:#fff !important; background:var(--brn-teal) !important; border-color:var(--brn-teal) !important; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-btn-primary:hover { background:#255f58 !important; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-btn-secondary { color:#fff !important; background:#52666b !important; border-color:#52666b !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-btn-manager { color:var(--brn-teal) !important; background:#fff !important; border-color:var(--brn-teal) !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table-shell { width:100%; max-width:100%; height:clamp(300px,52vh,590px); overflow:auto; overscroll-behavior:contain; background:#fff; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table { min-width:1280px; margin:0; color:var(--brn-ink); font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table thead th { position:sticky; top:0; z-index:3; padding:.55rem .5rem; color:#fff; background:var(--brn-navy) !important; border-color:#31535b; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table tbody td { padding:.48rem .5rem; vertical-align:middle; border-color:#e2e9e7; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table tbody tr:nth-child(even) td { background:#f7faf9; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-table tbody tr:hover td { background:#edf5f3; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-account-cell { min-width:185px; display:flex; align-items:center; gap:.45rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-account-cell > i { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; color:var(--brn-steel); background:var(--brn-steel-soft); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-account-cell span { display:grid; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-account-cell small { color:var(--brn-muted); }
body.pmidt-ui.pm-theme-civic .brn-page .brn-note-cell { min-width:150px; max-width:260px; white-space:normal; line-height:1.55; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-details-page) .brn-status { display:inline-flex; align-items:center; gap:.3rem; padding:.3rem .42rem; border:1px solid; border-radius:3px; white-space:nowrap; font-size:.75rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-details-page) .brn-status.is-resolved { color:#28655e; background:var(--brn-teal-soft); border-color:#bfdbd5; }
body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-details-page) .brn-status.is-open { color:#8a5b18; background:var(--brn-amber-soft); border-color:#ead4a8; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-action-cell { min-width:126px; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-icon-btn { width:31px; min-height:31px; padding:0; margin-inline-end:.18rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-view-btn { color:var(--brn-steel) !important; background:var(--brn-steel-soft) !important; border-color:#cbdbe3 !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-edit-btn { color:#865b19 !important; background:var(--brn-amber-soft) !important; border-color:#e5c98f !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-delete-btn { color:var(--brn-brick) !important; background:var(--brn-brick-soft) !important; border-color:#e8c5c1 !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-empty-row td { height:210px; text-align:center; color:var(--brn-muted); background:#f7faf9 !important; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-empty-row td > i { display:block; margin-bottom:.45rem; color:var(--brn-steel); font-size:1.5rem; }
body.pmidt-ui.pm-theme-civic .brn-page .brn-empty-row td > strong,
body.pmidt-ui.pm-theme-civic .brn-page .brn-empty-row td > span { display:block; margin-top:.18rem; }

body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form { min-width:0; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-validation-summary:not(:empty) { margin-bottom:.5rem; padding:.55rem .7rem; background:var(--brn-brick-soft); border:1px solid #e8c5c1; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr); gap:.55rem; align-items:start; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-sections { min-width:0; display:grid; gap:.55rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-section,
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-panel { min-width:0; overflow:hidden; background:#fff; border:1px solid var(--brn-line); border-radius:4px; box-shadow:0 4px 11px rgba(28,59,62,.05); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-section { padding-bottom:.6rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-section-head { min-height:51px; display:flex; align-items:center; gap:.5rem; padding:.45rem .6rem; background:#f2f6f5; border-bottom:1px solid var(--brn-line); border-inline-start:4px solid var(--brn-teal); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-section-head > i { width:31px; height:31px; display:grid; place-items:center; flex:0 0 31px; color:#fff; background:var(--brn-teal); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-section-head span { color:var(--brn-steel); font-size:.7rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-section-head h2 { margin:.08rem 0 0; color:var(--brn-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-immutable-badge { margin-inline-start:auto; padding:.26rem .4rem; color:#6b5a3e !important; background:var(--brn-amber-soft); border:1px solid #ead4a8; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-fields-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; padding:.6rem .65rem 0; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-fields-identity { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-field { min-width:0; }
body.pmidt-ui.pm-theme-civic .brn-form-page .form-label { margin-bottom:.28rem; color:#385257; font-size:.78rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .brn-form-page :is(.form-control,.form-select) { width:100% !important; min-width:0; min-height:39px; margin:0 !important; color:var(--brn-ink); background:#fff; border:1px solid #c7d5d2 !important; border-radius:4px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page textarea.form-control { min-height:76px; resize:vertical; }
body.pmidt-ui.pm-theme-civic .brn-form-page :is(.form-control,.form-select).brn-required-input { background:#fffaf0 !important; border-color:var(--brn-amber) !important; box-shadow:inset -3px 0 0 var(--brn-amber); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-immutable-field :is(.form-control,.form-select) { color:#52666b; background:#eef2f2 !important; border-style:dashed !important; cursor:not-allowed; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-template-hint { margin:.45rem .65rem 0; color:var(--brn-muted); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-template-hint i { color:var(--brn-amber); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolution-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.34fr); gap:.65rem; align-items:stretch; padding:.6rem .65rem 0; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolved-toggle { min-height:76px; display:flex; align-items:center; gap:.55rem; margin:0; padding:.55rem .65rem; background:var(--brn-teal-soft); border:1px solid #c4ddd7; border-radius:4px; cursor:pointer; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolved-toggle > span { display:grid; gap:.1rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolved-toggle i { color:var(--brn-teal); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolved-toggle strong { color:#285d58; font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolved-toggle small { color:var(--brn-muted); font-size:.75rem; line-height:1.5; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-panel { position:sticky; top:.5rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-panel .brn-section-head { border-inline-start-color:var(--brn-steel); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-panel .brn-section-head > i { background:var(--brn-steel); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-context { margin:0; padding:.5rem .6rem; color:var(--brn-muted); background:#fafcfc; border-bottom:1px solid var(--brn-line); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-notes-shell { width:100%; max-height:min(62vh,600px); overflow:auto; overscroll-behavior:contain; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-notes-shell table { width:100%; min-width:0; margin:0; font-size:.78rem; table-layout:fixed; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-notes-shell thead th { position:sticky; top:0; z-index:2; padding:.48rem; color:#fff; background:var(--brn-navy) !important; border-color:#31535b; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-notes-shell td { padding:.48rem; border-color:#e0e8e6; line-height:1.55; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-state td { height:150px; color:var(--brn-muted); text-align:center; background:#f7faf9; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-state.is-loading i { display:inline-block; animation:brn-spin .9s linear infinite; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-state.is-error td { color:var(--brn-brick); background:var(--brn-brick-soft); }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-actions { position:sticky; bottom:0; z-index:5; min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-top:.55rem; padding:.55rem .7rem; color:var(--brn-muted); background:#edf5f2; border:1px solid #cbdeda; border-radius:4px; box-shadow:0 -5px 14px rgba(28,59,62,.08); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-actions > div { display:flex; gap:.4rem; }

body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket { overflow:hidden; background:#fff; border:1px solid var(--brn-line); border-radius:4px; box-shadow:0 6px 16px rgba(28,59,62,.08); }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem .85rem; background:#f2f6f5; border-bottom:1px solid var(--brn-line); border-inline-start:4px solid var(--brn-steel); }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-head > div:first-child > span { color:var(--brn-steel); font-size:.65rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-head h2 { margin:.1rem 0; color:var(--brn-ink); font-size:1rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-head p { margin:0; color:var(--brn-muted); }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-meta { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-meta > span:not(.brn-status) { min-width:125px; display:grid; gap:.12rem; padding:.38rem .5rem; background:#fff; border:1px solid var(--brn-line); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-meta small { color:var(--brn-muted); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-meta strong { color:var(--brn-ink); font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-body { display:grid; grid-template-columns:1fr 1.2fr; gap:.55rem; padding:.65rem; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-group { overflow:hidden; border:1px solid var(--brn-line); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-group > header { min-height:44px; display:flex; align-items:center; gap:.42rem; padding:.45rem .58rem; color:var(--brn-navy); background:#edf3f2; border-bottom:1px solid var(--brn-line); }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-group > header i { color:var(--brn-teal); font-size:.9rem; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-group h3 { margin:0; font-size:.85rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-list > div { min-height:68px; padding:.55rem .65rem; border-bottom:1px solid #e5ebe9; border-inline-end:1px solid #e5ebe9; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-list dt { margin-bottom:.25rem; color:var(--brn-muted); font-size:.75rem; font-weight:750; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-list dd { margin:0; color:var(--brn-ink); font-size:.8125rem; font-weight:850; word-break:break-word; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-note-detail { grid-column:1/-1; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-note-detail p { min-height:80px; margin:0; padding:.7rem; color:var(--brn-ink); line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
body.pmidt-ui.pm-theme-civic .brn-details-page .brn-details-actions { display:flex; justify-content:flex-end; gap:.4rem; padding:.55rem .65rem; background:#fafcfc; border-top:1px solid var(--brn-line); }

body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid rgba(182,123,37,.38) !important; outline-offset:2px; box-shadow:none !important; }
@keyframes brn-spin { to { transform:rotate(360deg); } }
@media (max-width:1050px) {
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-layout { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-history-panel { position:static; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-notes-shell { max-height:320px; }
}
@media (max-width:760px) {
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) { padding:.38rem; }
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead { min-height:auto; align-items:flex-start; }
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state { min-width:145px; }
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-workflow-arrow { justify-self:center; transform:rotate(-90deg); }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-kpis { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-command-bar { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-search-box { flex-basis:auto; max-width:none; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-command-actions > .btn { flex:1 1 auto; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-table-shell { height:50vh; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-fields-grid,
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-fields-identity,
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-resolution-grid { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-actions { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-actions > div { display:grid; grid-template-columns:1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-head { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-body { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-note-detail { grid-column:auto; }
}
@media (max-width:480px) {
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead { flex-direction:column; }
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) .brn-masthead-state { width:100%; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-register-head { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .brn-page .brn-command-actions { display:grid; grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-form-page .brn-form-actions > div,
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-detail-list { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-docket-meta > span:not(.brn-status) { flex:1 1 100%; }
    body.pmidt-ui.pm-theme-civic .brn-details-page .brn-details-actions { display:grid; grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) *,
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) *::before,
    body.pmidt-ui.pm-theme-civic :is(.brn-page,.brn-form-page,.brn-details-page) *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Accounts without notes confirmation register */
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) {
    --ann-forest:#1c423d;
    --ann-forest-deep:#12332f;
    --ann-teal:#3b736c;
    --ann-teal-soft:#e8f1ef;
    --ann-steel:#527181;
    --ann-steel-soft:#ebf1f4;
    --ann-amber:#aa7625;
    --ann-amber-soft:#fff4dc;
    --ann-brick:#984f47;
    --ann-brick-soft:#faecea;
    --ann-ink:#293d3b;
    --ann-muted:#637573;
    --ann-line:#d3dfdc;
    width:100%;
    max-width:1500px;
    min-width:0;
    margin:0 auto;
    padding:.65rem;
    color:var(--ann-ink);
    background:#eef3f2;
    font-family:Tahoma,"Segoe UI",sans-serif;
    font-size:.8125rem;
    letter-spacing:0 !important;
}
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page),
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) * { box-sizing:border-box; letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead {
    min-height:88px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.75rem 1rem;
    color:#fff;
    background:var(--ann-forest);
    border:1px solid #102f2b;
    border-radius:6px 6px 3px 3px;
    box-shadow:0 6px 15px rgba(22,57,53,.12);
}
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-kicker { display:flex; align-items:center; gap:.4rem; color:#bcd8d3; font-size:.73rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead h1 { margin:.16rem 0 .18rem; color:#fff; font-size:1.25rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead p { max-width:830px; margin:0; color:#d8e6e3; font-size:.8rem; line-height:1.55; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state { min-width:205px; display:flex; align-items:center; gap:.55rem; padding:.48rem .6rem; background:var(--ann-forest-deep); border:1px solid rgba(255,255,255,.12); border-radius:4px; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state > i { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; color:#e1bc6d; background:rgba(255,255,255,.08); border-radius:3px; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state span { display:grid; gap:.05rem; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state small { color:#a9c6c1; font-size:.62rem; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state strong { color:#fff; font-size:.78rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-lock-alert { display:flex; align-items:center; gap:.55rem; margin:.5rem 0; padding:.58rem .7rem; color:#713b36; background:var(--ann-brick-soft); border:1px solid #e5c0bc; border-inline-start:4px solid var(--ann-brick); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-lock-alert > i { font-size:1rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-lock-alert span { display:grid; gap:.08rem; }

body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow { min-height:52px; display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:.38rem; margin:.5rem 0; padding:.42rem .6rem; background:#fff; border:1px solid var(--ann-line); border-inline-start:4px solid var(--ann-steel); border-radius:4px; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div { min-height:36px; display:flex; align-items:center; gap:.42rem; padding:.32rem .48rem; background:#f4f7f6; border:1px solid #e1e9e7; border-radius:3px; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div > span { width:23px; height:23px; display:grid; place-items:center; flex:0 0 23px; color:#fff; background:var(--ann-steel); border-radius:3px; font-size:.72rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div > i { color:var(--ann-steel); }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div.is-current { background:var(--ann-amber-soft); border-color:#ead4a6; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div.is-current > span { background:var(--ann-amber); }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div.is-complete { background:var(--ann-teal-soft); border-color:#c7ddd8; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div.is-complete > span { background:var(--ann-teal); }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow > div.is-locked { background:#edf2f2; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow-arrow { color:#93a5a3; }

body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-strip { min-height:58px; display:flex; align-items:stretch; justify-content:space-between; gap:.75rem; margin:.5rem 0; overflow:hidden; background:#fff; border:1px solid var(--ann-line); border-inline-start:5px solid var(--ann-amber); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation { min-width:310px; display:flex; align-items:center; gap:.55rem; padding:.52rem .7rem; color:#684b1d; background:var(--ann-amber-soft); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation > i { width:31px; height:31px; display:grid; place-items:center; flex:0 0 31px; color:#fff; background:var(--ann-amber); border-radius:3px; font-size:1.05rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation span { display:grid; gap:.04rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation small { color:#806838; font-size:.64rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation strong { font-size:.82rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts { display:flex; align-items:stretch; justify-content:flex-end; margin:0; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts > div { min-width:170px; display:grid; align-content:center; gap:.08rem; padding:.45rem .8rem; border-inline-start:1px solid var(--ann-line); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts dt { color:var(--ann-muted); font-size:.66rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts dd { margin:0; color:var(--ann-ink); font-size:.88rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-register { overflow:hidden; background:#fff; border:1px solid var(--ann-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-register-head { min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.48rem .68rem; background:#f3f6f5; border-bottom:1px solid var(--ann-line); border-inline-start:4px solid var(--ann-teal); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-register-head span { color:var(--ann-steel); font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-register-head h2 { margin:.08rem 0 0; color:var(--ann-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-register-chip { display:flex; align-items:center; gap:.32rem; padding:.28rem .42rem; color:#805817 !important; background:var(--ann-amber-soft); border:1px solid #e7cf9d; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-command-bar { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.52rem .62rem; background:#fafcfc; border-bottom:1px solid var(--ann-line); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-search-box { position:relative; flex:1 1 420px; max-width:680px; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-search-box > i { position:absolute; top:50%; right:.72rem; z-index:1; transform:translateY(-50%); color:var(--ann-steel); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-search-box .form-control { min-height:38px; padding-right:2.05rem; padding-left:7rem; color:var(--ann-ink); background:#fff; border:1px solid #c5d4d1; border-radius:4px; font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-search-count { position:absolute; top:50%; left:.62rem; transform:translateY(-50%); color:var(--ann-muted); font-size:.73rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .btn { min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; border-radius:4px; font-size:.8rem; font-weight:850; box-shadow:none; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-btn-primary { color:#fff !important; background:var(--ann-teal) !important; border-color:var(--ann-teal) !important; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-btn-primary:hover { background:#2d615b !important; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-btn-secondary { color:#fff !important; background:#52666b !important; border-color:#52666b !important; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .btn:disabled { opacity:.55; cursor:not-allowed; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-table-shell { width:100%; max-width:100%; height:clamp(285px,49vh,560px); overflow:auto; overscroll-behavior:contain; background:#fff; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-table { min-width:760px; margin:0; color:var(--ann-ink); font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-table thead th { position:sticky; top:0; z-index:3; padding:.52rem .5rem; color:#fff; background:var(--ann-forest) !important; border-color:#345650; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-table tbody td { padding:.48rem .5rem; vertical-align:middle; border-color:#e2e9e7; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-table tbody tr:nth-child(even) td { background:#f8faf9; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-data-row:hover td { background:#edf5f3 !important; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-account-cell { min-width:245px; display:flex; align-items:center; gap:.45rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-account-cell > i { width:28px; height:28px; display:grid; place-items:center; flex:0 0 28px; color:var(--ann-steel); background:var(--ann-steel-soft); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-account-cell span { display:grid; gap:.05rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-account-cell small { color:var(--ann-muted); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-date-cell { min-width:145px; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-date-cell i { margin-inline-end:.25rem; color:var(--ann-steel); }
body.pmidt-ui.pm-theme-civic .ann-page .ann-confirmed-status { display:inline-flex; align-items:center; gap:.3rem; padding:.28rem .42rem; color:#805817; background:var(--ann-amber-soft); border:1px solid #e7cf9d; border-radius:3px; white-space:nowrap; font-size:.74rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-action-cell { min-width:88px; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-icon-btn { width:31px; min-height:31px; padding:0; margin-inline-end:.18rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-edit-btn { color:#805817 !important; background:var(--ann-amber-soft) !important; border-color:#e5c98f !important; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-delete-btn { color:var(--ann-brick) !important; background:var(--ann-brick-soft) !important; border-color:#e8c5c1 !important; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-empty-row td { height:190px; text-align:center; color:var(--ann-muted); background:#f7faf9 !important; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-empty-row td > i { display:block; margin-bottom:.4rem; color:var(--ann-steel); font-size:1.45rem; }
body.pmidt-ui.pm-theme-civic .ann-page .ann-empty-row td > strong,
body.pmidt-ui.pm-theme-civic .ann-page .ann-empty-row td > span { display:block; margin-top:.15rem; }

body.pmidt-ui.pm-theme-civic .ann-form-page .ann-unavailable { display:flex; align-items:center; gap:.55rem; margin-bottom:.5rem; padding:.58rem .7rem; color:#6f511f; background:var(--ann-amber-soft); border:1px solid #e5cb96; border-inline-start:4px solid var(--ann-amber); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-unavailable > i { font-size:1.15rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-unavailable span { display:grid; gap:.08rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-unavailable small { color:#79694f; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-validation-summary:not(:empty) { margin-bottom:.5rem; padding:.55rem .7rem; background:var(--ann-brick-soft); border:1px solid #e8c5c1; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-sheet { overflow:hidden; background:#fff; border:1px solid var(--ann-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-sheet-head { min-height:54px; display:flex; align-items:center; gap:.5rem; padding:.48rem .65rem; background:#f2f6f5; border-bottom:1px solid var(--ann-line); border-inline-start:4px solid var(--ann-teal); }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-sheet-head > i { width:32px; height:32px; display:grid; place-items:center; flex:0 0 32px; color:#fff; background:var(--ann-teal); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-sheet-head span { color:var(--ann-steel); font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-sheet-head h2 { margin:.08rem 0 0; color:var(--ann-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .ann-form-page :is(.ann-confirmation-badge,.ann-locked-badge) { margin-inline-start:auto; display:flex; align-items:center; gap:.3rem; padding:.28rem .42rem; color:#805817 !important; background:var(--ann-amber-soft); border:1px solid #e5cb96; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-groups { display:grid; grid-template-columns:1.35fr .8fr; gap:.6rem; padding:.65rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field-group { min-width:0; overflow:hidden; border:1px solid var(--ann-line); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field-group > header { min-height:46px; display:flex; align-items:center; gap:.45rem; padding:.4rem .52rem; background:#f7faf9; border-bottom:1px solid var(--ann-line); }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field-group > header > i { width:28px; height:28px; display:grid; place-items:center; color:var(--ann-steel); background:var(--ann-steel-soft); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field-group > header span { color:var(--ann-steel); font-size:.66rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field-group h3 { margin:.05rem 0 0; color:var(--ann-ink); font-size:.82rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-field { padding:.65rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .form-label { margin-bottom:.28rem; color:#38514e; font-size:.78rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .ann-form-page :is(.form-control,.form-select) { width:100% !important; min-width:0; min-height:40px; margin:0 !important; color:var(--ann-ink); background:#fff; border:1px solid #c7d5d2 !important; border-radius:4px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-locked-group :is(.form-control,.form-select) { color:#52666b; background:#eef2f2 !important; border-style:dashed !important; cursor:not-allowed; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-meaning-note { display:flex; align-items:center; gap:.45rem; margin:0 .65rem .65rem; padding:.5rem .6rem; color:var(--ann-muted); background:var(--ann-amber-soft); border:1px solid #ead6aa; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-meaning-note i { color:var(--ann-amber); font-size:1rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-meaning-note strong { color:#76531d; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-actions { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-top:.55rem; padding:.55rem .7rem; color:var(--ann-muted); background:#edf5f2; border:1px solid #cbddd9; border-radius:4px; box-shadow:0 -4px 12px rgba(28,59,56,.06); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-actions > div { display:flex; gap:.4rem; }
body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) :is(a,button,input,select,[tabindex]):focus-visible { outline:3px solid rgba(170,118,37,.38) !important; outline-offset:2px; box-shadow:none !important; }

@media (max-width:768px) {
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) { padding:.38rem; }
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead { min-height:auto; align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-masthead-state { width:100%; min-width:0; }
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) .ann-workflow-arrow { justify-self:center; transform:rotate(-90deg); }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-strip { flex-direction:column; gap:0; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-affirmation { min-width:0; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts { width:100%; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts > div { min-width:0; flex:1 1 50%; border-top:1px solid var(--ann-line); }
    body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-groups { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-command-bar { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-search-box { flex-basis:auto; max-width:none; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-command-bar > .btn { width:100%; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-table-shell { height:48vh; }
    body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-actions { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-actions > div { display:grid; grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
    body.pmidt-ui.pm-theme-civic .ann-page .ann-register-head { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts { flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .ann-page .ann-ledger-facts > div { border-inline-start:0; }
    body.pmidt-ui.pm-theme-civic .ann-form-page .ann-sheet-head { align-items:flex-start; flex-wrap:wrap; }
    body.pmidt-ui.pm-theme-civic .ann-form-page :is(.ann-confirmation-badge,.ann-locked-badge) { width:100%; margin-inline-start:0; }
    body.pmidt-ui.pm-theme-civic .ann-form-page .ann-form-actions > div { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) *,
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) *::before,
    body.pmidt-ui.pm-theme-civic :is(.ann-page,.ann-form-page) *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Notes bank types template workbench */
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) {
    --nbt-forest:#193f3a;
    --nbt-forest-deep:#102f2b;
    --nbt-teal:#3b7069;
    --nbt-teal-soft:#e8f1ef;
    --nbt-steel:#526f7d;
    --nbt-steel-soft:#ebf1f3;
    --nbt-amber:#ae7727;
    --nbt-amber-soft:#fff3db;
    --nbt-brick:#974b44;
    --nbt-brick-soft:#faece9;
    --nbt-paper:#f7f9f8;
    --nbt-ink:#293d3b;
    --nbt-muted:#637573;
    --nbt-line:#d2dedb;
    width:100%;
    max-width:1500px;
    min-width:0;
    margin:0 auto;
    padding:.65rem;
    color:var(--nbt-ink);
    background:#edf2f1;
    font-family:Tahoma,"Segoe UI",sans-serif;
    font-size:.8125rem;
    letter-spacing:0 !important;
}
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page),
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) * { box-sizing:border-box; letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead {
    min-height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.78rem 1rem;
    color:#fff;
    background:var(--nbt-forest);
    border:1px solid #102f2b;
    border-bottom:4px solid var(--nbt-amber);
    border-radius:6px 6px 2px 2px;
    box-shadow:0 6px 15px rgba(22,57,53,.13);
}
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-kicker { display:flex; align-items:center; gap:.4rem; color:#bed8d3; font-size:.72rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-kicker i { color:#e4bd70; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead h1 { margin:.16rem 0 .18rem; color:#fff; font-size:1.28rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead p { max-width:850px; margin:0; color:#d8e6e3; font-size:.8rem; line-height:1.55; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state { min-width:205px; display:flex; align-items:center; gap:.55rem; padding:.48rem .6rem; background:var(--nbt-forest-deep); border:1px solid rgba(255,255,255,.13); border-radius:4px; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state > i { width:34px; height:34px; display:grid; place-items:center; flex:0 0 34px; color:#e1bc6d; background:rgba(255,255,255,.07); border-radius:3px; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state span { display:grid; gap:.05rem; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state small { color:#abc8c2; font-size:.62rem; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state strong { color:#fff; font-size:.78rem; }

body.pmidt-ui.pm-theme-civic .nbt-page .nbt-status-alert { display:flex; align-items:center; gap:.6rem; margin:.5rem 0; padding:.58rem .7rem; color:#753b35; background:var(--nbt-brick-soft); border:1px solid #e4c3be; border-inline-start:4px solid var(--nbt-brick); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-status-alert > i { font-size:1.1rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-status-alert span { display:grid; gap:.08rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:.5rem 0; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary > div { min-height:58px; display:flex; align-items:center; gap:.58rem; padding:.5rem .65rem; background:#fff; border:1px solid var(--nbt-line); border-top:3px solid var(--nbt-steel); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary > div:nth-child(2) { border-top-color:var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary > div:nth-child(3) { border-top-color:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary i { width:34px; height:34px; display:grid; place-items:center; color:var(--nbt-steel); background:var(--nbt-steel-soft); border-radius:3px; font-size:1rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary > div:nth-child(2) i { color:var(--nbt-teal); background:var(--nbt-teal-soft); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary > div:nth-child(3) i { color:var(--nbt-amber); background:var(--nbt-amber-soft); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary span { display:flex; align-items:center; justify-content:space-between; gap:1rem; width:100%; color:var(--nbt-muted); font-weight:800; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary strong { color:var(--nbt-ink); font-size:1.12rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register { overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-head { min-height:53px; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.48rem .68rem; background:#f3f6f5; border-bottom:1px solid var(--nbt-line); border-inline-start:4px solid var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-head span { color:var(--nbt-steel); font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-head h2 { margin:.08rem 0 0; color:var(--nbt-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-chip { display:flex; align-items:center; gap:.32rem; padding:.28rem .42rem; color:#795316 !important; background:var(--nbt-amber-soft); border:1px solid #e7cf9d; border-radius:3px; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-command-bar { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.52rem .62rem; background:#fafcfc; border-bottom:1px solid var(--nbt-line); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-box { position:relative; flex:1 1 420px; max-width:760px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-box > i { position:absolute; top:50%; right:.72rem; z-index:1; color:var(--nbt-steel); transform:translateY(-50%); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-box .form-control { min-height:39px; padding-right:2.1rem; padding-left:7rem; color:var(--nbt-ink); background:#fff; border:1px solid #c5d4d1; border-radius:4px; font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-count { position:absolute; top:50%; left:.62rem; color:var(--nbt-muted); font-size:.73rem; font-weight:800; transform:translateY(-50%); }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .btn { min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; border-radius:4px; font-size:.8rem; font-weight:850; box-shadow:none; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-btn-primary { color:#fff !important; background:var(--nbt-teal) !important; border-color:var(--nbt-teal) !important; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-btn-primary:hover { background:#2d5f59 !important; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-btn-secondary { color:#fff !important; background:#52666b !important; border-color:#52666b !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table-shell { width:100%; max-width:100%; height:clamp(300px,52vh,590px); overflow:auto; overscroll-behavior:contain; background:#fff; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table { min-width:940px; margin:0; color:var(--nbt-ink); font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table thead th { position:sticky; top:0; z-index:3; padding:.54rem .5rem; color:#fff; background:var(--nbt-forest) !important; border-color:#345650; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table tbody td { padding:.5rem; vertical-align:middle; border-color:#e2e9e7; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table tbody tr:nth-child(even) td { background:#f8faf9; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-data-row:hover td { background:#edf5f3 !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-name-cell { min-width:180px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-name-cell i { margin-inline-end:.35rem; color:var(--nbt-steel); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-template-cell { width:46%; min-width:340px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-template-cell span { display:-webkit-box; overflow:hidden; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-variable-cell { min-width:220px; }
body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-token { display:inline-flex; align-items:center; margin:.12rem; padding:.24rem .38rem; direction:ltr; color:#744f17; background:var(--nbt-amber-soft); border:1px solid #e5ca92; border-radius:3px; font-family:Consolas,monospace; font-size:.73rem; font-weight:800; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-no-token { color:var(--nbt-muted); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-action-cell { min-width:118px; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-icon-btn { width:31px; min-height:31px; padding:0; margin-inline-end:.18rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-view-btn { color:var(--nbt-steel) !important; background:var(--nbt-steel-soft) !important; border-color:#cad9df !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-edit-btn { color:#805817 !important; background:var(--nbt-amber-soft) !important; border-color:#e5c98f !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-delete-btn { color:var(--nbt-brick) !important; background:var(--nbt-brick-soft) !important; border-color:#e8c5c1 !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-row td { height:205px; text-align:center; color:var(--nbt-muted); background:#f7faf9 !important; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-row td > i { display:block; margin-bottom:.4rem; color:var(--nbt-steel); font-size:1.45rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-row td > strong,
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-row td > span { display:block; margin:.15rem 0; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-row td > .btn { margin-top:.55rem; }

body.pmidt-ui.pm-theme-civic .nbt-page .nbt-dependency-workbench { margin-top:.5rem; overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-workbench-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.55rem .7rem; color:#fff; background:var(--nbt-forest-deep); border-inline-start:5px solid var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-workbench-head span { color:#bcd1cd; font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-workbench-head h2 { margin:.08rem 0 0; color:#fff; font-size:.94rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-workbench-head .nbt-register-chip { color:#ffe6ae !important; background:rgba(174,119,39,.17); border-color:rgba(255,230,174,.25); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-coverage-ledger { display:grid; grid-template-columns:230px minmax(0,1fr); min-height:68px; background:#fff9ed; border-bottom:1px solid #e8d6b1; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-heading { display:flex; align-items:center; gap:.5rem; padding:.55rem .7rem; color:#fff; background:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-heading > i { font-size:1.1rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-heading span { display:grid; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-heading small { color:#fff1d3; font-size:.64rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-heading strong { font-size:.76rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-tokens { display:flex; align-items:center; align-content:center; flex-wrap:wrap; gap:.35rem; padding:.5rem .65rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-token { display:inline-flex; align-items:center; overflow:hidden; color:#75521d; background:#fff; border:1px solid #e2c990; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-token code { padding:.3rem .4rem; direction:ltr; color:#694916; font-size:.7rem; font-weight:850; unicode-bidi:isolate; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-token span { align-self:stretch; display:flex; align-items:center; padding:.3rem .4rem; color:#fff; background:#8c6730; font-size:.65rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-ledger-empty { color:var(--nbt-muted); font-size:.74rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-dependency-list { height:clamp(300px,51vh,590px); overflow:auto; overscroll-behavior:contain; background:#edf2f1; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-dependency-row { min-width:840px; display:grid; grid-template-columns:minmax(145px,.65fr) minmax(290px,1.5fr) 56px minmax(230px,1fr) 114px; align-items:stretch; margin:.48rem; overflow:hidden; background:#fff; border:1px solid #cddbd8; border-inline-start:4px solid var(--nbt-teal); border-radius:3px; box-shadow:0 2px 7px rgba(28,59,56,.05); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-dependency-row:hover { border-color:#9ebbb5; box-shadow:0 3px 10px rgba(28,59,56,.1); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-identity { display:flex; justify-content:center; flex-direction:column; gap:.18rem; padding:.58rem; background:#f3f7f6; border-inline-end:1px solid var(--nbt-line); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-identity span,
body.pmidt-ui.pm-theme-civic .nbt-page :is(.nbt-flow-template,.nbt-flow-fields) small { color:var(--nbt-steel); font-size:.64rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-identity strong { overflow-wrap:anywhere; font-size:.79rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-identity i { margin-inline-end:.32rem; color:var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-page :is(.nbt-flow-template,.nbt-flow-fields) { min-width:0; display:flex; justify-content:center; flex-direction:column; padding:.5rem .58rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-template p { display:-webkit-box; margin:.15rem 0 0; overflow:hidden; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-connector { display:flex; align-items:center; justify-content:center; color:var(--nbt-amber); background:#fff9ed; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-connector span { width:20px; border-top:2px solid #d9b66e; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-connector i { margin-inline-start:-2px; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-flow-fields { background:#fffdf8; border-inline-end:1px solid #eadab8; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-action-cell { display:flex; align-items:center; justify-content:center; padding:.42rem; background:#fafcfc; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-state { min-height:205px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.25rem; color:var(--nbt-muted); text-align:center; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-state > i { color:var(--nbt-steel); font-size:1.45rem; }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-state > strong { color:var(--nbt-ink); }
body.pmidt-ui.pm-theme-civic .nbt-page .nbt-empty-state > .btn { margin-top:.4rem; }

body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-author-form { min-width:0; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-validation-summary:not(:empty) { margin:.5rem 0; padding:.55rem .7rem; background:var(--nbt-brick-soft); border:1px solid #e8c5c1; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-validation-summary ul { margin:0; padding-inline-start:1.1rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-author-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,.65fr); gap:.55rem; margin-top:.5rem; align-items:start; }
body.pmidt-ui.pm-theme-civic .nbt-form-page :is(.nbt-editor-sheet,.nbt-variable-rail,.nbt-preview-panel) { min-width:0; overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:4px; box-shadow:0 4px 11px rgba(28,59,56,.05); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-rail { position:sticky; top:.5rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-section-head { min-height:52px; display:flex; align-items:center; gap:.5rem; padding:.45rem .6rem; background:#f2f6f5; border-bottom:1px solid var(--nbt-line); border-inline-start:4px solid var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-section-head > i { width:31px; height:31px; display:grid; place-items:center; flex:0 0 31px; color:#fff; background:var(--nbt-teal); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-section-head span { color:var(--nbt-steel); font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-section-head h2 { margin:.06rem 0 0; color:var(--nbt-ink); font-size:.88rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-record-id { margin-inline-start:auto; padding:.25rem .4rem; color:#77531c !important; background:var(--nbt-amber-soft); border:1px solid #e7cf9d; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-rail-head { border-inline-start-color:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-rail-head > i { color:#fff; background:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-editor-body { display:grid; gap:.7rem; padding:.7rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-field { min-width:0; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .form-label { margin-bottom:.28rem; color:#38514e; font-size:.78rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-field-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-field-heading > span { color:var(--nbt-muted); font-size:.7rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page :is(.form-control,.form-select) { width:100% !important; min-width:0; min-height:40px; margin:0 !important; color:var(--nbt-ink); background:#fff; border:1px solid #c5d4d1 !important; border-radius:4px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-template-editor { min-height:260px; max-height:50vh; padding:.75rem; resize:vertical; direction:rtl; line-height:1.8; overflow-wrap:anywhere; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .field-validation-error { display:block; margin-top:.25rem; font-size:.72rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-rail-note { margin:0; padding:.5rem .6rem; color:var(--nbt-muted); background:#fafcfc; border-bottom:1px solid var(--nbt-line); font-size:.73rem; line-height:1.5; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-palette { display:grid; gap:.35rem; margin:0; padding:.55rem; list-style:none; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn { width:100%; min-height:38px; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:.4rem; padding:.35rem .45rem; color:var(--nbt-ink); text-align:start; background:#fff; border:1px solid #d4dfdc; border-radius:3px; transition:background .14s ease,border-color .14s ease; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn:hover { background:var(--nbt-amber-soft); border-color:#dfc38b; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn > i { width:22px; height:22px; display:grid; place-items:center; color:#fff; background:var(--nbt-teal); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn > span { min-width:0; overflow:hidden; font-weight:850; text-overflow:ellipsis; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn code { direction:ltr; color:#795316; font-size:.7rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-panel { padding:.6rem; background:var(--nbt-amber-soft); border-top:1px solid #ead4a6; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-panel > div:first-child { display:flex; align-items:center; gap:.45rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-panel > div:first-child > span { width:27px; height:27px; display:grid; place-items:center; color:#fff; background:var(--nbt-amber); border-radius:3px; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-panel h3 { margin:0; color:#654816; font-size:.78rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-list { min-height:38px; margin-top:.45rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-detected-empty { color:#806c4c; font-size:.72rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-preview-panel { margin-top:.55rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-preview-panel > header { min-height:48px; display:flex; align-items:center; gap:.5rem; padding:.45rem .6rem; background:var(--nbt-steel-soft); border-bottom:1px solid var(--nbt-line); border-inline-start:4px solid var(--nbt-steel); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-preview-panel > header > i { width:29px; height:29px; display:grid; place-items:center; color:#fff; background:var(--nbt-steel); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-preview-panel header span { color:var(--nbt-steel); font-size:.66rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-preview-panel h2 { margin:.04rem 0 0; color:var(--nbt-ink); font-size:.82rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-live-preview { min-height:92px; max-height:220px; margin:0; padding:.7rem; overflow:auto; color:var(--nbt-ink); background:#fff; border:0; border-radius:0; font:inherit; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-top:.55rem; padding:.55rem .7rem; color:var(--nbt-muted); background:#edf5f2; border:1px solid #cbddd9; border-radius:4px; box-shadow:0 -4px 12px rgba(28,59,56,.06); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions > span { display:flex; align-items:center; gap:.35rem; }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions > span i { color:var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions > div { display:flex; gap:.4rem; }

body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket { margin-top:.5rem; overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-head { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.55rem .7rem; background:#f2f6f5; border-bottom:1px solid var(--nbt-line); border-inline-start:4px solid var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-head span { color:var(--nbt-steel); font-size:.68rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-head h2 { margin:.08rem 0 0; color:var(--nbt-ink); font-size:1rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-number { padding:.3rem .45rem; color:#76521a !important; background:var(--nbt-amber-soft); border:1px solid #e7cf9d; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-body { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr); gap:.55rem; padding:.6rem; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-section { min-width:0; overflow:hidden; border:1px solid var(--nbt-line); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-section > header { min-height:49px; display:flex; align-items:center; gap:.48rem; padding:.43rem .55rem; background:#f5f8f7; border-bottom:1px solid var(--nbt-line); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-section > header > i { width:30px; height:30px; display:grid; place-items:center; color:#fff; background:var(--nbt-steel); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-section header span { color:var(--nbt-steel); font-size:.65rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-section h3 { margin:.04rem 0 0; color:var(--nbt-ink); font-size:.82rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-section > header { border-inline-start:4px solid var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-section > header > i { background:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-section > header > strong { width:28px; height:28px; display:grid; place-items:center; margin-inline-start:auto; color:#fff; background:var(--nbt-amber); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-template-full { min-height:250px; max-height:55vh; margin:0; padding:.8rem; overflow:auto; color:var(--nbt-ink); background:#fff; border:0; border-radius:0; font:inherit; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-list { min-height:250px; align-content:start; padding:.6rem; background:#fffdf8; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-empty { min-height:210px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.4rem; color:var(--nbt-muted); text-align:center; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-empty > i { color:var(--nbt-steel); font-size:1.3rem; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-empty span { display:grid; gap:.12rem; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-empty strong { color:var(--nbt-ink); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-details-actions { display:flex; justify-content:flex-end; gap:.4rem; padding:.55rem .65rem; background:#fafcfc; border-top:1px solid var(--nbt-line); }

body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint { margin-top:.5rem; overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:4px; box-shadow:0 5px 14px rgba(28,59,56,.07); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-head { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.55rem .75rem; color:#fff; background:var(--nbt-forest-deep); border-inline-start:5px solid var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-head span { color:#bed3cf; font-size:.67rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-head h2 { margin:.08rem 0 0; color:#fff; font-size:1rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-head .nbt-docket-number { color:#ffe7b1 !important; background:rgba(174,119,39,.18); border-color:rgba(255,231,177,.25); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-flow { display:grid; grid-template-columns:minmax(0,1.55fr) 100px minmax(280px,.72fr); min-height:330px; padding:.7rem; background:#edf2f1; }
body.pmidt-ui.pm-theme-civic .nbt-details-page :is(.nbt-blueprint-template,.nbt-blueprint-fields) { min-width:0; overflow:hidden; background:#fff; border:1px solid var(--nbt-line); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page :is(.nbt-blueprint-template,.nbt-blueprint-fields) > header { min-height:58px; display:flex; align-items:center; gap:.5rem; padding:.48rem .58rem; background:#f5f8f7; border-bottom:1px solid var(--nbt-line); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-step-number { width:31px; height:31px; display:grid; place-items:center; flex:0 0 31px; color:#fff; background:var(--nbt-teal); border-radius:3px; font-size:.7rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-fields .nbt-step-number { background:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-details-page :is(.nbt-blueprint-template,.nbt-blueprint-fields) header small { color:var(--nbt-steel); font-size:.63rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .nbt-details-page :is(.nbt-blueprint-template,.nbt-blueprint-fields) h3 { margin:.04rem 0 0; color:var(--nbt-ink); font-size:.82rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-fields > header > strong { width:28px; height:28px; display:grid; place-items:center; margin-inline-start:auto; color:#fff; background:var(--nbt-amber); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.22rem; color:var(--nbt-amber); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link span { width:44px; border-top:2px solid #d2af67; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link i { margin-top:-17px; margin-inline-start:45px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link small { margin-top:.32rem; color:#85642d; font-size:.61rem; font-weight:850; text-align:center; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-template .nbt-template-full { min-height:270px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-fields .nbt-required-list { min-height:270px; display:grid; align-content:start; gap:.4rem; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-field { min-width:0; display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; overflow:hidden; background:#fff; border:1px solid #e3cc9b; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-field > span { align-self:stretch; display:grid; place-items:center; color:#fff; background:#9b7130; font-size:.68rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-field code { min-width:0; padding:.46rem; direction:ltr; color:#694916; font-size:.75rem; font-weight:850; overflow-wrap:anywhere; unicode-bidi:isolate; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions { align-items:center; justify-content:space-between; color:var(--nbt-muted); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions > span { display:flex; align-items:center; gap:.35rem; font-size:.72rem; }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions > span i { color:var(--nbt-teal); }
body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions > div { display:flex; gap:.4rem; }

body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) :is(a,button,input,textarea,[tabindex]):focus-visible { outline:3px solid rgba(174,119,39,.4) !important; outline-offset:2px; box-shadow:none !important; }

@media (max-width:768px) {
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) { padding:.38rem; }
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead { min-height:auto; align-items:flex-start; }
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state { min-width:165px; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-summary { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-coverage-ledger { grid-template-columns:190px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-command-bar { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-box { flex-basis:auto; max-width:none; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-command-bar > .btn { width:100%; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-table-shell { height:50vh; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-author-layout,
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-body { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-flow { grid-template-columns:1fr; gap:.5rem; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link { min-height:54px; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link span { width:2px; height:24px; border-top:0; border-inline-start:2px solid #d2af67; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link i { margin:-8px 0 0; transform:rotate(-90deg); }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-link small { margin:0; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-rail { position:static; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-palette { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-template-editor { min-height:230px; max-height:none; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions > div { display:grid; grid-template-columns:1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-template-full,
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-required-list { min-height:180px; }
}
@media (max-width:480px) {
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead { flex-direction:column; }
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead-state { width:100%; min-width:0; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-head,
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-docket-head,
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-workbench-head,
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-blueprint-head { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-register-chip { white-space:normal; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-coverage-ledger { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-box .form-control { padding-left:.65rem; }
    body.pmidt-ui.pm-theme-civic .nbt-page .nbt-search-count { position:static; display:block; margin-top:.3rem; transform:none; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-palette { grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-field-heading { align-items:flex-start; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-form-actions > div,
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-details-actions { display:grid; grid-template-columns:1fr; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions { align-items:stretch; flex-direction:column; }
    body.pmidt-ui.pm-theme-civic .nbt-details-page .nbt-dependency-blueprint .nbt-details-actions > div { display:grid; grid-template-columns:1fr; }
}
@media (max-width:375px) {
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) { padding:.25rem; }
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) .nbt-masthead { padding:.65rem; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-section-head { align-items:flex-start; flex-wrap:wrap; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-record-id { width:100%; margin-inline-start:0; }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn { grid-template-columns:22px minmax(0,1fr); }
    body.pmidt-ui.pm-theme-civic .nbt-form-page .nbt-variable-btn code { grid-column:2; overflow-wrap:anywhere; }
}
@media (prefers-reduced-motion:reduce) {
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) *,
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) *::before,
    body.pmidt-ui.pm-theme-civic :is(.nbt-page,.nbt-form-page,.nbt-details-page) *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; }
}

/* Petty cash financial inventory workbench */
body.pmidt-ui.pm-theme-civic .pcw-page {
    --pcw-forest:#183f3a; --pcw-charcoal:#263538; --pcw-teal:#3f746d; --pcw-steel:#526f7d;
    --pcw-amber:#ad7829; --pcw-brick:#974c45; --pcw-paper:#f8faf9; --pcw-ink:#293d3b;
    --pcw-muted:#637573; --pcw-line:#d2dedb; width:100%; max-width:1580px; min-width:0;
    margin:0 auto; padding:.65rem; overflow-x:hidden; direction:rtl; color:var(--pcw-ink);
    background:#edf2f1; font-family:Tahoma,"Segoe UI",sans-serif; font-size:.8125rem;
}
body.pmidt-ui.pm-theme-civic .pcw-page, body.pmidt-ui.pm-theme-civic .pcw-page * { box-sizing:border-box; letter-spacing:0 !important; }
body.pmidt-ui.pm-theme-civic .pcw-masthead { min-height:90px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.78rem 1rem; color:#fff; background:var(--pcw-charcoal); border:1px solid #172426; border-bottom:4px solid var(--pcw-amber); border-radius:6px 6px 2px 2px; box-shadow:0 6px 15px rgba(25,48,48,.13); }
body.pmidt-ui.pm-theme-civic .pcw-kicker { display:flex; align-items:center; gap:.4rem; color:#bed8d3; font-size:.75rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcw-kicker i { color:#e4bd70; }
body.pmidt-ui.pm-theme-civic .pcw-masthead h1 { margin:.16rem 0 .18rem; color:#fff; font-size:1.28rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcw-masthead p { max-width:850px; margin:0; color:#d8e6e3; font-size:.8rem; line-height:1.55; }
body.pmidt-ui.pm-theme-civic .pcw-masthead-state { min-width:205px; display:flex; align-items:center; gap:.55rem; padding:.48rem .6rem; background:#193033; border:1px solid rgba(255,255,255,.13); border-radius:4px; }
body.pmidt-ui.pm-theme-civic .pcw-masthead-state>i { width:34px; height:34px; display:grid; place-items:center; color:#e1bc6d; background:rgba(255,255,255,.07); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcw-masthead-state span, body.pmidt-ui.pm-theme-civic .pcw-masthead-state small, body.pmidt-ui.pm-theme-civic .pcw-masthead-state strong { display:block; }
body.pmidt-ui.pm-theme-civic .pcw-masthead-state small { color:#abc8c2; font-size:.75rem; } body.pmidt-ui.pm-theme-civic .pcw-masthead-state strong { margin-top:.08rem; color:#fff; }
body.pmidt-ui.pm-theme-civic .pcw-signals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:.5rem 0; }
body.pmidt-ui.pm-theme-civic .pcw-signals>div { min-height:58px; display:flex; align-items:center; gap:.6rem; padding:.5rem .65rem; background:#fff; border:1px solid var(--pcw-line); border-top:3px solid var(--pcw-steel); border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcw-signals i { width:34px; height:34px; display:grid; place-items:center; color:var(--pcw-steel); background:#ebf1f3; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcw-signals span { width:100%; display:flex; align-items:center; justify-content:space-between; gap:.5rem; color:var(--pcw-muted); font-weight:800; } body.pmidt-ui.pm-theme-civic .pcw-signals strong { color:var(--pcw-ink); font-size:1.05rem; }
body.pmidt-ui.pm-theme-civic :is(.pcw-register,.pcw-account-band,.pcw-ledger,.pcw-delete-sheet,.pcw-docket) { margin-top:.5rem; overflow:hidden; background:#fff; border:1px solid var(--pcw-line); border-radius:4px; box-shadow:0 4px 12px rgba(28,59,56,.06); }
body.pmidt-ui.pm-theme-civic :is(.pcw-register-head,.pcw-section-head) { min-height:53px; display:flex; align-items:center; gap:.55rem; padding:.48rem .68rem; background:#f2f6f5; border-bottom:1px solid var(--pcw-line); border-inline-start:4px solid var(--pcw-teal); }
body.pmidt-ui.pm-theme-civic .pcw-register-head { justify-content:space-between; }
body.pmidt-ui.pm-theme-civic .pcw-section-head>i { width:32px; height:32px; display:grid; flex:0 0 32px; place-items:center; color:#fff; background:var(--pcw-teal); border-radius:3px; }
body.pmidt-ui.pm-theme-civic :is(.pcw-register-head,.pcw-section-head) span { color:var(--pcw-steel); font-size:.75rem; font-weight:850; }
body.pmidt-ui.pm-theme-civic :is(.pcw-register-head,.pcw-section-head) h2 { margin:.07rem 0 0; color:var(--pcw-ink); font-size:.9rem; font-weight:900; }
body.pmidt-ui.pm-theme-civic .pcw-section-head .pcw-section-total { margin-inline-start:auto; color:var(--pcw-forest); text-align:end; } body.pmidt-ui.pm-theme-civic .pcw-section-total small { display:block; color:var(--pcw-muted); font-size:.75rem; }
body.pmidt-ui.pm-theme-civic .pcw-command-bar { padding:.52rem .62rem; background:#fafcfc; border-bottom:1px solid var(--pcw-line); }
body.pmidt-ui.pm-theme-civic .pcw-search { position:relative; display:block; max-width:720px; margin:0; }
body.pmidt-ui.pm-theme-civic .pcw-search>i { position:absolute; z-index:1; top:50%; right:.72rem; color:var(--pcw-steel); transform:translateY(-50%); }
body.pmidt-ui.pm-theme-civic .pcw-search .form-control { min-height:39px; padding-right:2.1rem; padding-left:7rem; }
body.pmidt-ui.pm-theme-civic .pcw-search>span { position:absolute; top:50%; left:.65rem; color:var(--pcw-muted); transform:translateY(-50%); }
body.pmidt-ui.pm-theme-civic .pcw-table-shell { width:100%; max-width:100%; overflow:auto; overscroll-behavior:contain; }
body.pmidt-ui.pm-theme-civic .pcw-register-shell { height:clamp(300px,52vh,590px); }
body.pmidt-ui.pm-theme-civic .pcw-table { min-width:760px; margin:0; color:var(--pcw-ink); font-size:.8rem; }
body.pmidt-ui.pm-theme-civic .pcw-table thead th { position:sticky; top:0; z-index:3; padding:.55rem .5rem; color:#fff !important; background:var(--pcw-charcoal) !important; border-color:#405255; white-space:nowrap; }
body.pmidt-ui.pm-theme-civic .pcw-table tbody td { padding:.48rem .5rem; vertical-align:middle; border-color:#e2e9e7; }
body.pmidt-ui.pm-theme-civic .pcw-table tbody tr:nth-child(even) td { background:#f8faf9; } body.pmidt-ui.pm-theme-civic .pcw-table tbody tr:hover td { background:#edf5f3; }
body.pmidt-ui.pm-theme-civic .pcw-table td small { display:block; margin-top:.12rem; color:var(--pcw-muted); }
body.pmidt-ui.pm-theme-civic .pcw-empty-row td { height:210px; text-align:center; background:#f7faf9 !important; } body.pmidt-ui.pm-theme-civic .pcw-empty-row :is(i,strong,span) { display:block; margin:.2rem; } body.pmidt-ui.pm-theme-civic .pcw-empty-row i { color:var(--pcw-steel); font-size:1.5rem; }
body.pmidt-ui.pm-theme-civic .pcw-account-grid { display:grid; grid-template-columns:1.2fr repeat(4,minmax(0,1fr)); gap:.55rem; padding:.65rem; }
body.pmidt-ui.pm-theme-civic .pcw-field { min-width:0; display:grid; align-content:start; gap:.28rem; margin:0; color:#38514e; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcw-field small { color:var(--pcw-muted); font-size:.75rem; font-weight:500; }
body.pmidt-ui.pm-theme-civic .pcw-input-command { display:grid; grid-template-columns:minmax(0,1fr) 40px; gap:.35rem; }
body.pmidt-ui.pm-theme-civic .pcw-page :is(.form-control,.form-select) { width:100% !important; min-width:0; min-height:39px; margin:0 !important; color:var(--pcw-ink); background:#fff; border:1px solid #c5d4d1 !important; border-radius:4px; font-size:.8125rem; }
body.pmidt-ui.pm-theme-civic .pcw-page .form-control[readonly] { color:#52666b; background:#eef2f2; border-style:dashed !important; }
body.pmidt-ui.pm-theme-civic .pcw-ledger .pcw-table { min-width:720px; } body.pmidt-ui.pm-theme-civic .pcw-ledger .form-control { min-height:35px; }
body.pmidt-ui.pm-theme-civic .pcw-subtotal { display:flex; justify-content:flex-end; gap:1rem; padding:.48rem .65rem; color:var(--pcw-muted); background:#f7faf9; border-top:1px solid var(--pcw-line); } body.pmidt-ui.pm-theme-civic .pcw-subtotal strong { color:var(--pcw-forest); }
body.pmidt-ui.pm-theme-civic .pcw-reconciliation { position:sticky; z-index:5; bottom:0; display:grid; grid-template-columns:repeat(3,minmax(110px,1fr)) auto minmax(145px,1.1fr) minmax(155px,1.1fr); align-items:center; gap:.45rem; margin-top:.5rem; padding:.55rem .65rem; color:#fff; background:var(--pcw-charcoal); border:1px solid #172426; border-bottom:4px solid var(--pcw-amber); border-radius:4px; box-shadow:0 -5px 15px rgba(22,45,45,.14); }
body.pmidt-ui.pm-theme-civic .pcw-reconciliation>div { min-width:0; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation small, body.pmidt-ui.pm-theme-civic .pcw-reconciliation strong, body.pmidt-ui.pm-theme-civic .pcw-reconciliation em { display:block; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation small { color:#bcd0cd; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation em { margin-top:.1rem; color:#f0c87d; font-size:.75rem; font-style:normal; }
body.pmidt-ui.pm-theme-civic .pcw-reconciliation.is-balanced { border-bottom-color:#6dad8c; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation.is-balanced .pcw-variance em { color:#8dd3ad; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation.has-variance { border-bottom-color:var(--pcw-brick); } body.pmidt-ui.pm-theme-civic .pcw-reconciliation.has-variance .pcw-variance em { color:#f1aaa3; }
body.pmidt-ui.pm-theme-civic .pcw-form-actions { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:.65rem; margin-top:.5rem; padding:.55rem .7rem; color:var(--pcw-muted); background:#edf5f2; border:1px solid #cbddd9; border-radius:4px; } body.pmidt-ui.pm-theme-civic .pcw-form-actions>div, body.pmidt-ui.pm-theme-civic .pcw-actions, body.pmidt-ui.pm-theme-civic .pcw-turnover { display:flex; gap:.35rem; align-items:center; }
body.pmidt-ui.pm-theme-civic .pcw-page .btn { min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; border-radius:4px !important; font-size:.8rem; font-weight:850; box-shadow:none; }
body.pmidt-ui.pm-theme-civic .pcw-icon-btn { width:34px; min-width:34px; padding:0; }
body.pmidt-ui.pm-theme-civic .pcw-primary-btn, body.pmidt-ui.pm-theme-civic .pcw-add-btn { color:#fff !important; background:var(--pcw-teal) !important; border-color:var(--pcw-teal) !important; }
body.pmidt-ui.pm-theme-civic .pcw-secondary-btn { color:#fff !important; background:#52666b !important; border-color:#52666b !important; }
body.pmidt-ui.pm-theme-civic .pcw-steel-btn { color:#365c70 !important; background:#eaf1f4 !important; border-color:#c9dbe2 !important; }
body.pmidt-ui.pm-theme-civic .pcw-amber-btn { color:#755016 !important; background:#fff3db !important; border-color:#e5c98f !important; }
body.pmidt-ui.pm-theme-civic .pcw-danger-btn { color:#fff !important; background:var(--pcw-brick) !important; border-color:var(--pcw-brick) !important; }
body.pmidt-ui.pm-theme-civic .pcw-ltr, body.pmidt-ui.pm-theme-civic .pcw-money { direction:ltr; unicode-bidi:isolate; text-align:center; font-variant-numeric:tabular-nums; }
body.pmidt-ui.pm-theme-civic .pcw-validation:not(:empty), body.pmidt-ui.pm-theme-civic .pcw-alert, body.pmidt-ui.pm-theme-civic .pcw-override-panel { margin-top:.5rem; padding:.6rem .7rem; border-radius:4px; }
body.pmidt-ui.pm-theme-civic .pcw-validation:not(:empty), body.pmidt-ui.pm-theme-civic .pcw-alert-danger { color:#793d37; background:#faece9; border:1px solid #e8c5c1; }
body.pmidt-ui.pm-theme-civic .pcw-override-panel { color:#654816; background:#fff3db; border:1px solid #e5ca92; } body.pmidt-ui.pm-theme-civic .pcw-override-panel>div { display:flex; gap:.5rem; margin-bottom:.45rem; } body.pmidt-ui.pm-theme-civic .pcw-override-panel small { display:block; }
body.pmidt-ui.pm-theme-civic .pcw-lock-badge { margin-inline-start:auto; padding:.25rem .4rem; color:#76521a !important; background:#fff3db; border:1px solid #e7cf9d; border-radius:3px; }
body.pmidt-ui.pm-theme-civic .pcw-identity-grid, body.pmidt-ui.pm-theme-civic .pcw-delete-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:0; background:var(--pcw-line); }
body.pmidt-ui.pm-theme-civic :is(.pcw-identity-grid,.pcw-delete-facts)>div { min-height:66px; padding:.55rem .65rem; background:#fff; } body.pmidt-ui.pm-theme-civic :is(.pcw-identity-grid,.pcw-delete-facts) small, body.pmidt-ui.pm-theme-civic .pcw-delete-facts dt { display:block; color:var(--pcw-muted); } body.pmidt-ui.pm-theme-civic .pcw-delete-facts dd { margin:.2rem 0 0; font-weight:850; }
body.pmidt-ui.pm-theme-civic .pcw-delete-notice { display:flex; gap:.6rem; padding:.7rem; color:#704d18; background:#fff3db; border-bottom:1px solid #e5ca92; } body.pmidt-ui.pm-theme-civic .pcw-delete-notice small { display:block; }
body.pmidt-ui.pm-theme-civic .pcw-inline-empty td { padding:1.2rem !important; color:var(--pcw-muted); text-align:center; }
body.pmidt-ui.pm-theme-civic .pcw-report-viewer, body.pmidt-ui.pm-theme-civic #repoContainer { width:100%; max-width:100%; min-width:0; overflow:auto; } body.pmidt-ui.pm-theme-civic .pcw-dialog-state { min-height:220px; display:grid; place-items:center; color:var(--pcw-muted); } body.pmidt-ui.pm-theme-civic .pcw-dialog-state.pcw-error { color:var(--pcw-brick); }
body.pmidt-ui.pm-theme-civic .pcw-page :is(a,button,input,textarea,[tabindex]):focus-visible { outline:3px solid rgba(173,120,41,.4) !important; outline-offset:2px; box-shadow:none !important; }
@media (max-width:768px) { body.pmidt-ui.pm-theme-civic .pcw-page { padding:.38rem; } body.pmidt-ui.pm-theme-civic .pcw-masthead { align-items:flex-start; flex-direction:column; } body.pmidt-ui.pm-theme-civic .pcw-masthead-state { width:100%; } body.pmidt-ui.pm-theme-civic .pcw-signals, body.pmidt-ui.pm-theme-civic .pcw-account-grid { grid-template-columns:1fr 1fr; } body.pmidt-ui.pm-theme-civic .pcw-account-search { grid-column:1/-1; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation { grid-template-columns:repeat(3,1fr); } body.pmidt-ui.pm-theme-civic .pcw-reconciliation>i { display:none; } body.pmidt-ui.pm-theme-civic .pcw-form-actions { align-items:stretch; flex-direction:column; } }
@media (max-width:480px) { body.pmidt-ui.pm-theme-civic .pcw-signals, body.pmidt-ui.pm-theme-civic .pcw-account-grid, body.pmidt-ui.pm-theme-civic .pcw-identity-grid, body.pmidt-ui.pm-theme-civic .pcw-delete-facts { grid-template-columns:1fr; } body.pmidt-ui.pm-theme-civic .pcw-register-head, body.pmidt-ui.pm-theme-civic .pcw-section-head { align-items:flex-start; flex-wrap:wrap; } body.pmidt-ui.pm-theme-civic .pcw-section-total, body.pmidt-ui.pm-theme-civic .pcw-lock-badge { width:100%; margin-inline-start:0; text-align:start; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation { position:static; grid-template-columns:1fr 1fr; } body.pmidt-ui.pm-theme-civic .pcw-form-actions>div { display:grid; grid-template-columns:1fr; } }
@media (max-width:375px) { body.pmidt-ui.pm-theme-civic .pcw-page { padding:.25rem; } body.pmidt-ui.pm-theme-civic .pcw-masthead { padding:.65rem; } body.pmidt-ui.pm-theme-civic .pcw-search .form-control { padding-left:.6rem; } body.pmidt-ui.pm-theme-civic .pcw-search>span { position:static; display:block; margin-top:.25rem; transform:none; } body.pmidt-ui.pm-theme-civic .pcw-reconciliation { grid-template-columns:1fr; } }
@media print { body * { visibility:hidden; } #printit, #printit * { visibility:visible; } #printit { position:absolute; inset:0; width:100%; } .pcw-form-actions { display:none !important; } }
@media (prefers-reduced-motion:reduce) { body.pmidt-ui.pm-theme-civic .pcw-page *, body.pmidt-ui.pm-theme-civic .pcw-page *::before, body.pmidt-ui.pm-theme-civic .pcw-page *::after { scroll-behavior:auto !important; transition:none !important; animation-duration:.01ms !important; } }

/* Petty cash note template library */
body.pmidt-ui.pm-theme-civic .pcn-library {
    --pcn-ink: #182523;
    --pcn-muted: #60706c;
    --pcn-paper: #fffefa;
    --pcn-cool: #f2f6f5;
    --pcn-line: #cfdad7;
    --pcn-line-strong: #9fb4ae;
    --pcn-teal: #176b62;
    --pcn-teal-dark: #10534c;
    --pcn-teal-soft: #e3f1ee;
    --pcn-amber: #9a6718;
    --pcn-amber-soft: #fff2d7;
    --pcn-red: #a33636;
    --pcn-red-soft: #fff0ef;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: .75rem;
    color: var(--pcn-ink);
    direction: rtl;
    letter-spacing: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-library *,
body.pmidt-ui.pm-theme-civic .pcn-library *::before,
body.pmidt-ui.pm-theme-civic .pcn-library *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--pcn-line-strong);
    border-right: 5px solid var(--pcn-teal);
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic .pcn-masthead__identity {
    min-width: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-kicker,
body.pmidt-ui.pm-theme-civic .pcn-section-index,
body.pmidt-ui.pm-theme-civic .pcn-preview-rail > header > span,
body.pmidt-ui.pm-theme-civic .pcn-delete-sheet > header > span {
    display: block;
    margin-bottom: .28rem;
    color: var(--pcn-teal);
    font-size: .72rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .pcn-kicker i {
    margin-left: .3rem;
}

body.pmidt-ui.pm-theme-civic .pcn-masthead h1 {
    margin: 0;
    color: var(--pcn-ink);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.35;
}

body.pmidt-ui.pm-theme-civic .pcn-masthead p {
    max-width: 760px;
    margin: .3rem 0 0;
    color: var(--pcn-muted);
    font-size: .86rem;
    line-height: 1.75;
}

body.pmidt-ui.pm-theme-civic :is(.pcn-primary-command, .pcn-secondary-command, .pcn-danger-command) {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .52rem .85rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

body.pmidt-ui.pm-theme-civic .pcn-primary-command {
    color: #fff !important;
    border-color: var(--pcn-teal) !important;
    background: var(--pcn-teal) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-primary-command:hover {
    color: #fff !important;
    border-color: var(--pcn-teal-dark) !important;
    background: var(--pcn-teal-dark) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-secondary-command {
    color: var(--pcn-ink) !important;
    border-color: var(--pcn-line-strong) !important;
    background: #fff !important;
}

body.pmidt-ui.pm-theme-civic .pcn-secondary-command:hover {
    color: var(--pcn-teal-dark) !important;
    border-color: var(--pcn-teal) !important;
    background: var(--pcn-teal-soft) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-danger-command {
    color: #fff !important;
    border-color: var(--pcn-red) !important;
    background: var(--pcn-red) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-status-message {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .6rem;
    padding: .65rem .8rem;
    color: var(--pcn-teal-dark);
    border: 1px solid #a9cec7;
    background: var(--pcn-teal-soft);
    font-size: .82rem;
    font-weight: 750;
}

body.pmidt-ui.pm-theme-civic .pcn-summary-ledger {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .6rem;
    border: 1px solid var(--pcn-line);
    background: var(--pcn-line);
    gap: 1px;
}

body.pmidt-ui.pm-theme-civic .pcn-summary-ledger > div {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .65rem .85rem;
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic .pcn-summary-ledger span {
    color: var(--pcn-muted);
    font-size: .78rem;
    font-weight: 750;
}

body.pmidt-ui.pm-theme-civic .pcn-summary-ledger strong {
    color: var(--pcn-teal-dark);
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

body.pmidt-ui.pm-theme-civic .pcn-register {
    margin-top: .6rem;
    border: 1px solid var(--pcn-line-strong);
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic .pcn-register__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--pcn-line);
    background: var(--pcn-cool);
}

body.pmidt-ui.pm-theme-civic .pcn-register__head h2,
body.pmidt-ui.pm-theme-civic .pcn-preview-rail h2,
body.pmidt-ui.pm-theme-civic .pcn-delete-sheet h2 {
    margin: 0;
    color: var(--pcn-ink);
    font-size: 1rem;
    line-height: 1.4;
}

body.pmidt-ui.pm-theme-civic .pcn-search {
    position: relative;
    width: min(100%, 430px);
}

body.pmidt-ui.pm-theme-civic .pcn-search i {
    position: absolute;
    top: 50%;
    right: .75rem;
    color: var(--pcn-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

body.pmidt-ui.pm-theme-civic .pcn-search input {
    width: 100%;
    min-height: 40px;
    padding: .48rem 2.15rem .48rem .7rem;
    color: var(--pcn-ink);
    border: 1px solid var(--pcn-line-strong);
    border-radius: 3px;
    background: #fff;
    font-size: .82rem;
}

body.pmidt-ui.pm-theme-civic .pcn-register__status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .4rem;
    min-height: 32px;
    padding: .3rem 1rem;
    color: var(--pcn-muted);
    border-bottom: 1px solid var(--pcn-line);
    font-size: .74rem;
}

body.pmidt-ui.pm-theme-civic .pcn-register__status strong {
    color: var(--pcn-ink);
    font-variant-numeric: tabular-nums;
}

body.pmidt-ui.pm-theme-civic .pcn-table-viewport {
    width: 100%;
    max-height: calc(100vh - 350px);
    min-height: 280px;
    overflow: auto;
    overscroll-behavior: contain;
}

body.pmidt-ui.pm-theme-civic .pcn-folio-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--pcn-ink);
    font-size: .79rem;
}

body.pmidt-ui.pm-theme-civic .pcn-folio-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: .62rem .7rem;
    color: #eef6f4;
    border-left: 1px solid #3f5a55;
    background: #203934 !important;
    font-size: .72rem;
    font-weight: 850;
    text-align: right;
}

body.pmidt-ui.pm-theme-civic .pcn-folio-table th:nth-child(1) { width: 74px; }
body.pmidt-ui.pm-theme-civic .pcn-folio-table th:nth-child(2) { width: 35%; }
body.pmidt-ui.pm-theme-civic .pcn-folio-table th:nth-child(3) { width: 27%; }
body.pmidt-ui.pm-theme-civic .pcn-folio-table th:nth-child(4) { width: 145px; }
body.pmidt-ui.pm-theme-civic .pcn-folio-table th:nth-child(5) { width: 145px; }

body.pmidt-ui.pm-theme-civic .pcn-folio-table td {
    padding: .65rem .7rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--pcn-line);
    background: var(--pcn-paper);
    overflow-wrap: anywhere;
}

body.pmidt-ui.pm-theme-civic .pcn-note-row:hover td {
    background: #f4f8f7 !important;
}

body.pmidt-ui.pm-theme-civic .pcn-folio-number span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--pcn-teal-dark);
    border: 1px solid var(--pcn-line-strong);
    background: var(--pcn-cool);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

body.pmidt-ui.pm-theme-civic .pcn-template-identity strong {
    display: block;
    margin-bottom: .22rem;
    font-size: .86rem;
}

body.pmidt-ui.pm-theme-civic .pcn-template-identity p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--pcn-muted);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.pmidt-ui.pm-theme-civic .pcn-token-ledger,
body.pmidt-ui.pm-theme-civic .pcn-detected-variables {
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
}

body.pmidt-ui.pm-theme-civic :is(.pcn-token-ledger, .pcn-detected-variables) code,
body.pmidt-ui.pm-theme-civic .pcn-variable-rail code {
    color: var(--pcn-teal-dark);
    font-family: Consolas, "Courier New", monospace;
    font-size: .72rem;
    font-weight: 800;
    direction: ltr;
    unicode-bidi: isolate;
}

body.pmidt-ui.pm-theme-civic .pcn-token-ledger > code,
body.pmidt-ui.pm-theme-civic .pcn-detected-variables > code {
    padding: .25rem .35rem;
    border: 1px solid #b8d5cf;
    border-radius: 2px;
    background: var(--pcn-teal-soft);
}

body.pmidt-ui.pm-theme-civic .pcn-token-empty {
    color: var(--pcn-muted);
    font-size: .73rem;
}

body.pmidt-ui.pm-theme-civic .pcn-dependency {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    padding: .38rem .45rem;
    border-right: 3px solid;
}

body.pmidt-ui.pm-theme-civic .pcn-dependency strong {
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
}

body.pmidt-ui.pm-theme-civic .pcn-dependency small {
    grid-column: 2;
    font-size: .66rem;
}

body.pmidt-ui.pm-theme-civic .pcn-dependency--locked {
    color: #714b10;
    border-color: var(--pcn-amber);
    background: var(--pcn-amber-soft);
}

body.pmidt-ui.pm-theme-civic .pcn-dependency--available {
    color: var(--pcn-teal-dark);
    border-color: var(--pcn-teal);
    background: var(--pcn-teal-soft);
}

body.pmidt-ui.pm-theme-civic .pcn-row-actions {
    display: flex;
    justify-content: flex-start;
    gap: .32rem;
}

body.pmidt-ui.pm-theme-civic .pcn-icon-command {
    width: 40px;
    height: 40px;
    display: inline-grid;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    color: var(--pcn-ink) !important;
    border: 1px solid var(--pcn-line-strong);
    border-radius: 3px;
    background: #fff !important;
    text-decoration: none;
}

body.pmidt-ui.pm-theme-civic .pcn-icon-command:hover {
    color: var(--pcn-teal-dark) !important;
    border-color: var(--pcn-teal);
    background: var(--pcn-teal-soft) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-icon-command--danger {
    color: var(--pcn-red) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-icon-command--danger:hover {
    border-color: var(--pcn-red);
    background: var(--pcn-red-soft) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-icon-command--disabled {
    color: #8b9693 !important;
    border-style: dashed;
    background: #f1f3f2 !important;
    cursor: not-allowed;
}

body.pmidt-ui.pm-theme-civic .pcn-detail-row td {
    padding: 0;
    background: var(--pcn-cool) !important;
}

body.pmidt-ui.pm-theme-civic .pcn-template-sheet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: .55rem;
    background: var(--pcn-line);
}

body.pmidt-ui.pm-theme-civic .pcn-template-sheet section {
    min-height: 110px;
    padding: .7rem;
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic :is(.pcn-template-sheet, .pcn-preview-rail, .pcn-delete-content) section > span {
    display: block;
    margin-bottom: .35rem;
    color: var(--pcn-teal-dark);
    font-size: .7rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic :is(.pcn-template-sheet, .pcn-preview-rail, .pcn-delete-content) p {
    margin: 0;
    color: var(--pcn-ink);
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body.pmidt-ui.pm-theme-civic .pcn-empty-row td {
    height: 220px;
    padding: 2rem !important;
    color: var(--pcn-muted);
    text-align: center;
}

body.pmidt-ui.pm-theme-civic .pcn-empty-row :is(i, strong, span) {
    display: block;
}

body.pmidt-ui.pm-theme-civic .pcn-empty-row i { margin-bottom: .55rem; color: var(--pcn-teal); font-size: 1.6rem; }
body.pmidt-ui.pm-theme-civic .pcn-empty-row strong { color: var(--pcn-ink); font-size: .95rem; }
body.pmidt-ui.pm-theme-civic .pcn-empty-row span { margin-top: .25rem; font-size: .78rem; }

body.pmidt-ui.pm-theme-civic .pcn-document-state {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .58rem;
    color: var(--pcn-teal-dark);
    border: 1px solid #a9cec7;
    border-radius: 3px;
    background: var(--pcn-teal-soft);
    font-size: .75rem;
    font-weight: 850;
    white-space: nowrap;
}

body.pmidt-ui.pm-theme-civic .pcn-document-state i { font-size: .48rem; }
body.pmidt-ui.pm-theme-civic .pcn-document-state--locked { color: #714b10; border-color: #e0c48d; background: var(--pcn-amber-soft); }
body.pmidt-ui.pm-theme-civic .pcn-document-state--danger { color: #842a2a; border-color: #e0afab; background: var(--pcn-red-soft); }

body.pmidt-ui.pm-theme-civic .pcn-authoring-form {
    margin-top: .6rem;
}

body.pmidt-ui.pm-theme-civic .pcn-validation-summary:empty {
    display: none;
}

body.pmidt-ui.pm-theme-civic .pcn-validation-summary:not(:empty) {
    margin-bottom: .6rem;
    padding: .65rem .8rem;
    color: #842a2a;
    border: 1px solid #e0afab;
    background: var(--pcn-red-soft);
    font-size: .8rem;
}

body.pmidt-ui.pm-theme-civic .pcn-validation-summary ul { margin: 0; padding-right: 1.2rem; }

body.pmidt-ui.pm-theme-civic .pcn-authoring-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr);
    gap: .6rem;
    align-items: start;
}

body.pmidt-ui.pm-theme-civic .pcn-editor-sheet,
body.pmidt-ui.pm-theme-civic .pcn-preview-rail,
body.pmidt-ui.pm-theme-civic .pcn-delete-sheet {
    border: 1px solid var(--pcn-line-strong);
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic .pcn-field-block {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--pcn-line);
}

body.pmidt-ui.pm-theme-civic .pcn-field-block:last-child {
    border-bottom: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .42rem;
}

body.pmidt-ui.pm-theme-civic .pcn-field-heading label {
    margin: 0;
    color: var(--pcn-ink);
    font-size: .8rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .pcn-field-heading label b { color: var(--pcn-red); }

body.pmidt-ui.pm-theme-civic .pcn-field-heading > span {
    color: var(--pcn-muted);
    font-size: .7rem;
}

body.pmidt-ui.pm-theme-civic .pcn-character-count {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

body.pmidt-ui.pm-theme-civic .pcn-character-count.is-near-limit {
    color: var(--pcn-red);
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .pcn-control {
    width: 100%;
    min-height: 40px;
    padding: .55rem .65rem;
    color: var(--pcn-ink);
    border: 1px solid var(--pcn-line-strong);
    border-radius: 3px;
    background: #fff;
    font-size: .82rem;
    line-height: 1.75;
    resize: vertical;
}

body.pmidt-ui.pm-theme-civic .pcn-control:focus {
    border-color: var(--pcn-teal) !important;
    outline: 3px solid rgba(23, 107, 98, .16);
    outline-offset: 0;
    box-shadow: none !important;
}

body.pmidt-ui.pm-theme-civic .pcn-field-error:not(:empty) {
    display: block;
    margin-top: .32rem;
    color: var(--pcn-red);
    font-size: .72rem;
    font-weight: 750;
}

body.pmidt-ui.pm-theme-civic .pcn-variable-rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .32rem;
    margin-top: .45rem;
    padding-top: .45rem;
    border-top: 1px dashed var(--pcn-line);
}

body.pmidt-ui.pm-theme-civic .pcn-variable-rail > span {
    margin-left: .15rem;
    color: var(--pcn-muted);
    font-size: .68rem;
    font-weight: 800;
}

body.pmidt-ui.pm-theme-civic .pcn-variable-rail button {
    min-height: 34px;
    padding: .3rem .42rem;
    border: 1px solid #b8d5cf;
    border-radius: 2px;
    background: var(--pcn-teal-soft);
    cursor: pointer;
}

body.pmidt-ui.pm-theme-civic .pcn-variable-rail button:hover {
    border-color: var(--pcn-teal);
    background: #d6eae6;
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail {
    position: sticky;
    top: .6rem;
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail > header,
body.pmidt-ui.pm-theme-civic .pcn-delete-sheet > header {
    padding: .72rem .8rem;
    border-bottom: 1px solid var(--pcn-line);
    background: var(--pcn-cool);
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail > section {
    min-height: 120px;
    padding: .75rem .8rem;
    border-bottom: 1px solid var(--pcn-line);
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail > section:last-child {
    border-bottom: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail p {
    color: var(--pcn-muted);
    font-size: .78rem;
}

body.pmidt-ui.pm-theme-civic .pcn-preview-rail .pcn-detected-section {
    min-height: 88px;
}

body.pmidt-ui.pm-theme-civic .pcn-detected-variables {
    color: var(--pcn-muted);
    font-size: .73rem;
}

body.pmidt-ui.pm-theme-civic .pcn-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .6rem;
    padding: .65rem .8rem;
    border: 1px solid var(--pcn-line-strong);
    background: rgba(255, 254, 250, .96);
    box-shadow: 0 -5px 14px rgba(24, 37, 35, .08);
}

body.pmidt-ui.pm-theme-civic .pcn-save-bar > span {
    color: var(--pcn-muted);
    font-size: .72rem;
}

body.pmidt-ui.pm-theme-civic .pcn-save-bar > span i {
    margin-left: .3rem;
    color: var(--pcn-teal);
}

body.pmidt-ui.pm-theme-civic .pcn-save-bar > div,
body.pmidt-ui.pm-theme-civic .pcn-delete-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

body.pmidt-ui.pm-theme-civic .pcn-delete {
    max-width: 1120px;
}

body.pmidt-ui.pm-theme-civic .pcn-delete-sheet {
    margin-top: .6rem;
}

body.pmidt-ui.pm-theme-civic :is(.pcn-deletion-blocked, .pcn-deletion-warning) {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .75rem;
    padding: .75rem .85rem;
    border: 1px solid;
    font-size: .8rem;
    line-height: 1.7;
}

body.pmidt-ui.pm-theme-civic .pcn-deletion-blocked {
    color: #714b10;
    border-color: #e0c48d;
    background: var(--pcn-amber-soft);
}

body.pmidt-ui.pm-theme-civic .pcn-deletion-warning {
    color: #842a2a;
    border-color: #e0afab;
    background: var(--pcn-red-soft);
}

body.pmidt-ui.pm-theme-civic .pcn-deletion-blocked strong { display: block; color: #5e3d0b; }
body.pmidt-ui.pm-theme-civic .pcn-deletion-blocked p { margin: .18rem 0 0; }

body.pmidt-ui.pm-theme-civic .pcn-delete-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 .75rem .75rem;
    background: var(--pcn-line);
}

body.pmidt-ui.pm-theme-civic .pcn-delete-content section {
    min-height: 135px;
    padding: .75rem;
    background: var(--pcn-paper);
}

body.pmidt-ui.pm-theme-civic .pcn-delete-content section:last-child {
    grid-column: 1 / -1;
    min-height: 90px;
}

body.pmidt-ui.pm-theme-civic .pcn-delete-actions {
    justify-content: flex-end;
    padding: .7rem .75rem;
    border-top: 1px solid var(--pcn-line);
    background: var(--pcn-cool);
}

body.pmidt-ui.pm-theme-civic .pcn-delete-actions form {
    margin: 0;
}

body.pmidt-ui.pm-theme-civic .pcn-library :is(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(23, 107, 98, .28) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .pcn-library { padding: .5rem; }
    body.pmidt-ui.pm-theme-civic .pcn-masthead { align-items: flex-start; }
    body.pmidt-ui.pm-theme-civic .pcn-register__head { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .pcn-search { width: 100%; }
    body.pmidt-ui.pm-theme-civic .pcn-table-viewport { max-height: calc(100vh - 390px); }
    body.pmidt-ui.pm-theme-civic .pcn-authoring-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pcn-preview-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.pmidt-ui.pm-theme-civic .pcn-preview-rail > header,
    body.pmidt-ui.pm-theme-civic .pcn-preview-rail .pcn-detected-section { grid-column: 1 / -1; }
    body.pmidt-ui.pm-theme-civic .pcn-preview-rail > section { min-height: 100px; border-left: 1px solid var(--pcn-line); }
    body.pmidt-ui.pm-theme-civic .pcn-save-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .pcn-save-bar > div { justify-content: flex-end; }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .pcn-library { padding: .3rem; }
    body.pmidt-ui.pm-theme-civic .pcn-masthead { flex-direction: column; padding: .75rem; border-right-width: 4px; }
    body.pmidt-ui.pm-theme-civic .pcn-masthead .pcn-primary-command,
    body.pmidt-ui.pm-theme-civic .pcn-document-state { width: 100%; }
    body.pmidt-ui.pm-theme-civic .pcn-summary-ledger { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pcn-summary-ledger > div { min-height: 50px; }
    body.pmidt-ui.pm-theme-civic .pcn-table-viewport { max-height: calc(100vh - 430px); min-height: 260px; }
    body.pmidt-ui.pm-theme-civic .pcn-field-block { padding: .72rem; }
    body.pmidt-ui.pm-theme-civic .pcn-field-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
    body.pmidt-ui.pm-theme-civic .pcn-variable-rail { align-items: stretch; }
    body.pmidt-ui.pm-theme-civic .pcn-variable-rail > span { width: 100%; }
    body.pmidt-ui.pm-theme-civic .pcn-variable-rail button { flex: 1 1 calc(50% - .32rem); min-width: 0; }
    body.pmidt-ui.pm-theme-civic .pcn-preview-rail { display: block; }
    body.pmidt-ui.pm-theme-civic .pcn-save-bar > div,
    body.pmidt-ui.pm-theme-civic .pcn-delete-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    body.pmidt-ui.pm-theme-civic .pcn-save-bar :is(.pcn-primary-command, .pcn-secondary-command),
    body.pmidt-ui.pm-theme-civic .pcn-delete-actions :is(.pcn-secondary-command, .pcn-danger-command, form) { width: 100%; }
    body.pmidt-ui.pm-theme-civic .pcn-delete-content { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .pcn-delete-content section:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .pcn-library *,
    body.pmidt-ui.pm-theme-civic .pcn-library *::before,
    body.pmidt-ui.pm-theme-civic .pcn-library *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* InsuMedicalAudit - clinical review workspace */
body.pmidt-ui.pm-theme-civic .medical-audit-page {
    --ima-ink: #20343a;
    --ima-muted: #63797e;
    --ima-line: #cfddda;
    --ima-paper: #ffffff;
    --ima-canvas: #edf3f1;
    --ima-navy: #173f46;
    --ima-green: #215d53;
    --ima-red: #8a3d39;
    width: calc(100% - 18px);
    max-width: 1900px;
    height: calc(100dvh - 154px);
    min-height: 560px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: .42rem;
    margin: .3rem auto 0;
    padding: .5rem;
    overflow: hidden;
    direction: rtl;
    color: var(--ima-ink);
    background: var(--ima-canvas);
    border: 1px solid #d5e3e0;
    border-radius: 8px;
    font-family: Tahoma, Arial, system-ui, sans-serif;
}

body.pmidt-ui.pm-theme-civic .medical-audit-page,
body.pmidt-ui.pm-theme-civic .medical-audit-page * { box-sizing: border-box; letter-spacing: 0 !important; }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.medical-audit-page) {
        overflow: hidden !important;
    }

    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.medical-audit-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
}

body.pmidt-ui.pm-theme-civic .ima-masthead {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1rem;
    color: #fff;
    background: linear-gradient(112deg, #123941, #205a52 62%, #2d5f66);
    border: 1px solid #11353b;
    border-bottom: 4px solid #bd8a41;
    border-radius: 7px 7px 3px 3px;
    box-shadow: 0 10px 24px rgba(17, 57, 65, .16);
}

body.pmidt-ui.pm-theme-civic .ima-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #c2dbd7;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em !important;
    text-transform: uppercase;
}

body.pmidt-ui.pm-theme-civic .ima-kicker i { color: #e9bd70; }
body.pmidt-ui.pm-theme-civic .ima-masthead h1 { margin: .32rem 0 .22rem; color: #fff; font-size: 1.38rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ima-masthead p { margin: 0; color: #d4e7e2; font-size: .74rem; line-height: 1.6; }

body.pmidt-ui.pm-theme-civic .ima-masthead-status {
    min-width: 188px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: .58rem;
    padding: .55rem .65rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
}

body.pmidt-ui.pm-theme-civic .ima-masthead-status i { color: #efc578; font-size: 1.05rem; }
body.pmidt-ui.pm-theme-civic .ima-masthead-status small,
body.pmidt-ui.pm-theme-civic .ima-masthead-status strong { display: block; }
body.pmidt-ui.pm-theme-civic .ima-masthead-status small { color: #b8d4cf; font-size: .56rem; text-transform: uppercase; }
body.pmidt-ui.pm-theme-civic .ima-masthead-status strong { color: #fff; font-size: .7rem; }

body.pmidt-ui.pm-theme-civic .ima-workspace {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    margin-top: 0;
    overflow: hidden;
    background: var(--ima-paper);
    border: 1px solid var(--ima-line);
    border-radius: 6px 6px 10px 10px;
    box-shadow: 0 10px 22px rgba(25, 65, 62, .09);
}

body.pmidt-ui.pm-theme-civic .ima-workspace-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .8rem;
    background: linear-gradient(90deg, #edf6f2, #fff);
    border-bottom: 1px solid var(--ima-line);
    border-inline-start: 4px solid var(--ima-green);
}

body.pmidt-ui.pm-theme-civic .ima-workflow-kicker { color: #4e6f78; font-size: .56rem; font-weight: 900; letter-spacing: .1em !important; }
body.pmidt-ui.pm-theme-civic .ima-workspace-head h2 { margin: .15rem 0 0; color: var(--ima-navy); font-size: .95rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ima-workflow-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .5rem; color: #4f666a; background: #eaf3ef; border: 1px solid #d2e0dc; border-radius: 4px; font-size: .6rem; }

body.pmidt-ui.pm-theme-civic .ima-command-rail {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .48rem .75rem;
    background: #f8fbf9;
    border-bottom: 1px solid var(--ima-line);
}

body.pmidt-ui.pm-theme-civic .ima-mode-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .45rem .76rem;
    color: #244247;
    background: #fff;
    border: 1px solid #cddad7;
    border-radius: 4px;
    font-size: .67rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .ima-mode-btn i { font-size: .86rem; }
body.pmidt-ui.pm-theme-civic .ima-mode-btn.is-active { color: #fff; background: var(--ima-green); border-color: var(--ima-green); box-shadow: 0 5px 12px rgba(33, 93, 83, .2); }
body.pmidt-ui.pm-theme-civic .ima-mode-btn.ima-mode-btn-reject.is-active { background: var(--ima-red); border-color: var(--ima-red); }

body.pmidt-ui.pm-theme-civic .ima-content-surface {
    min-height: 0;
    overflow: hidden;
    padding: .6rem;
    background: var(--ima-paper);
}

body.pmidt-ui.pm-theme-civic .ima-review-grid {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(720px, 1.55fr) minmax(440px, 1fr);
    align-items: stretch;
    gap: .6rem;
}

body.pmidt-ui.pm-theme-civic .ima-register-panel {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    background: var(--ima-paper);
    border: 1px solid var(--ima-line);
    border-radius: 5px;
}

body.pmidt-ui.pm-theme-civic .ima-register-toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .65rem;
    background: #f4f8f6;
    border-bottom: 1px solid var(--ima-line);
    border-inline-start: 4px solid var(--ima-green);
}

body.pmidt-ui.pm-theme-civic .ima-register-summary,
body.pmidt-ui.pm-theme-civic .ima-register-summary > div,
body.pmidt-ui.pm-theme-civic .ima-register-search,
body.pmidt-ui.pm-theme-civic .ima-primary-actions,
body.pmidt-ui.pm-theme-civic .ima-action-button,
body.pmidt-ui.pm-theme-civic .ima-rejection-decision summary {
    display: flex;
    align-items: center;
}

body.pmidt-ui.pm-theme-civic .ima-register-summary { min-width: 190px; gap: .55rem; }
body.pmidt-ui.pm-theme-civic .ima-register-summary > div { align-items: flex-start; flex-direction: column; line-height: 1.35; }
body.pmidt-ui.pm-theme-civic .ima-register-summary strong { color: var(--ima-navy); font-size: .76rem; }
body.pmidt-ui.pm-theme-civic .ima-register-summary span { color: var(--ima-muted); font-size: .6875rem; }
body.pmidt-ui.pm-theme-civic .ima-register-summary span b { color: var(--ima-green); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ima-register-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    color: #fff !important;
    background: var(--ima-green);
    border-radius: 4px;
}

body.pmidt-ui.pm-theme-civic .ima-register-search {
    width: min(330px, 48%);
    min-width: 220px;
    position: relative;
    color: #557078;
}

body.pmidt-ui.pm-theme-civic .ima-register-search > i { position: absolute; inset-inline-start: .65rem; pointer-events: none; }
body.pmidt-ui.pm-theme-civic .ima-register-search input {
    width: 100%;
    height: 40px;
    padding: .4rem 2.55rem .4rem 2.2rem;
    color: var(--ima-ink);
    background: #fff;
    border: 1px solid #b9cdc8;
    border-radius: 4px;
    font-size: .75rem;
}
body.pmidt-ui.pm-theme-civic .ima-register-search input::placeholder { color: #728589; opacity: 1; }
body.pmidt-ui.pm-theme-civic .ima-register-search button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    position: absolute;
    inset-inline-end: 0;
    padding: 0;
    color: #587075;
    background: transparent;
    border: 0;
}

body.pmidt-ui.pm-theme-civic .ima-table-shell,
body.pmidt-ui.pm-theme-civic .ima-pdf-panel,
body.pmidt-ui.pm-theme-civic .ima-grid-shell,
body.pmidt-ui.pm-theme-civic .ima-detail-shell {
    max-width: 100%;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--ima-line);
    border-radius: 5px;
}

body.pmidt-ui.pm-theme-civic .ima-table-shell,
body.pmidt-ui.pm-theme-civic .ima-pdf-panel {
    min-height: 0;
    height: 100%;
    max-height: none;
}
body.pmidt-ui.pm-theme-civic .ima-register-panel > .ima-table-shell { border: 0; border-radius: 0; }
body.pmidt-ui.pm-theme-civic .ima-grid-shell { height: 100%; padding: .65rem; }

body.pmidt-ui.pm-theme-civic .ima-claims-table { min-width: 810px; margin-bottom: 0; font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ima-detail-table { min-width: 540px; margin-bottom: 0; font-size: .75rem; }

body.pmidt-ui.pm-theme-civic .ima-claims-table { table-layout: fixed; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(1) { width: 46px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(2) { width: 110px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(3) { width: 118px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(4) { width: 112px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(5) { width: 150px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(6) { width: 54px; }
body.pmidt-ui.pm-theme-civic .ima-claims-table th:nth-child(7) { width: 220px; }

body.pmidt-ui.pm-theme-civic .ima-claims-table thead th,
body.pmidt-ui.pm-theme-civic .ima-detail-table thead th {
    padding: .6rem .48rem;
    color: #fff;
    background: var(--ima-navy);
    border-color: rgba(255, 255, 255, .12);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}
body.pmidt-ui.pm-theme-civic .ima-claims-table thead th { position: sticky; top: 0; z-index: 4; box-shadow: inset 0 -1px rgba(255, 255, 255, .14); }
body.pmidt-ui.pm-theme-civic .ima-claims-table thead th:nth-child(7),
body.pmidt-ui.pm-theme-civic .ima-action-cell {
    position: sticky;
    inset-inline-end: 0;
    box-shadow: 4px 0 10px rgba(23, 63, 70, .1);
}
body.pmidt-ui.pm-theme-civic .ima-claims-table thead th:nth-child(7) { z-index: 6; }
body.pmidt-ui.pm-theme-civic .ima-action-cell { z-index: 2; background: #fff; }
body.pmidt-ui.pm-theme-civic .ima-claims-table tbody tr:nth-child(even) .ima-action-cell { background: #f8fbfa; }

body.pmidt-ui.pm-theme-civic .ima-claims-table tbody td,
body.pmidt-ui.pm-theme-civic .ima-detail-table tbody td { padding: .48rem .42rem; border-color: #dfe8e5; text-align: center; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .ima-claims-table tbody tr:nth-child(even) td,
body.pmidt-ui.pm-theme-civic .ima-detail-table tbody tr:nth-child(even) td { background: #f8fbfa; }

body.pmidt-ui.pm-theme-civic .ima-claim-row { border-inline-start: 3px solid transparent; }
body.pmidt-ui.pm-theme-civic .ima-claim-row:hover { border-inline-start-color: #72a295; }
body.pmidt-ui.pm-theme-civic .ima-claim-row:hover > td { background: #f0f7f4 !important; }
body.pmidt-ui.pm-theme-civic .ima-expand-cell { width: 46px; color: var(--ima-green); font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ima-expand-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: auto;
    padding: 0;
    color: var(--ima-green);
    background: #eaf3ef;
    border: 1px solid #bad2ca;
    border-radius: 4px;
}
body.pmidt-ui.pm-theme-civic .ima-expand-button[aria-expanded="true"] { color: #fff; background: var(--ima-green); border-color: var(--ima-green); }
body.pmidt-ui.pm-theme-civic .ima-claim-identity,
body.pmidt-ui.pm-theme-civic .ima-beneficiary-cell { text-align: right !important; }
body.pmidt-ui.pm-theme-civic .ima-claim-identity > strong,
body.pmidt-ui.pm-theme-civic .ima-claim-identity > span,
body.pmidt-ui.pm-theme-civic .ima-claim-identity > small,
body.pmidt-ui.pm-theme-civic .ima-beneficiary-cell > strong,
body.pmidt-ui.pm-theme-civic .ima-beneficiary-cell > span { display: block; }
body.pmidt-ui.pm-theme-civic .ima-claim-identity > strong { color: var(--ima-navy); font-size: .78rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .ima-claim-identity > span { margin-top: .13rem; color: var(--ima-muted); font-size: .6875rem; }
body.pmidt-ui.pm-theme-civic .ima-claim-identity > small { margin-top: .22rem; color: var(--ima-green); font-size: .6875rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .ima-claim-identity > small i { margin-inline-end: .22rem; font-size: .38rem; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .ima-employee-name { color: #29464b; font-weight: 800; line-height: 1.55; }
body.pmidt-ui.pm-theme-civic .ima-beneficiary-cell > strong { color: var(--ima-ink); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ima-beneficiary-cell > span,
body.pmidt-ui.pm-theme-civic .ima-currency-badge {
    width: fit-content;
    margin-top: .2rem;
    padding: .12rem .35rem;
    color: #365c57;
    background: #e7f0ed;
    border: 1px solid #c8dcd6;
    border-radius: 3px;
    font-size: .6875rem;
    font-weight: 800;
}
body.pmidt-ui.pm-theme-civic .ima-currency-badge { display: inline-block; margin-top: 0; direction: ltr; }
body.pmidt-ui.pm-theme-civic .ima-date-flow { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: .2rem; }
body.pmidt-ui.pm-theme-civic .ima-date-flow span { min-width: 0; }
body.pmidt-ui.pm-theme-civic .ima-date-flow small,
body.pmidt-ui.pm-theme-civic .ima-date-flow b { display: block; white-space: nowrap; }
body.pmidt-ui.pm-theme-civic .ima-date-flow small { color: var(--ima-muted); font-size: .6875rem; }
body.pmidt-ui.pm-theme-civic .ima-date-flow b { margin-top: .12rem; color: #29464b; font-size: .7rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .ima-date-flow > i { color: #79a097; font-size: .55rem; }
body.pmidt-ui.pm-theme-civic .ima-action-cell { min-width: 220px; white-space: normal; }
body.pmidt-ui.pm-theme-civic .ima-primary-actions { justify-content: center; gap: .3rem; }
body.pmidt-ui.pm-theme-civic .ima-action-button {
    min-height: 40px;
    justify-content: center;
    gap: .28rem;
    padding: .3rem .48rem;
    border: 1px solid;
    border-radius: 4px;
    font-size: .6875rem;
    font-weight: 850;
}
body.pmidt-ui.pm-theme-civic .ima-document-action { color: #234f59; background: #edf5f5; border-color: #b8d1d2; }
body.pmidt-ui.pm-theme-civic .ima-approve-action { color: #fff; background: var(--ima-green); border-color: var(--ima-green); }
body.pmidt-ui.pm-theme-civic .ima-action-button:hover { filter: brightness(.95); }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision { margin: .32rem auto 0; border-top: 1px solid #dce7e4; }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision summary {
    min-height: 40px;
    justify-content: center;
    gap: .3rem;
    padding-top: .3rem;
    color: var(--ima-red);
    cursor: pointer;
    font-size: .6875rem;
    font-weight: 850;
    list-style: none;
}
body.pmidt-ui.pm-theme-civic .ima-rejection-decision summary::-webkit-details-marker { display: none; }
body.pmidt-ui.pm-theme-civic .ima-rejection-close-label { display: none; }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision[open] .ima-rejection-open-label { display: none; }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision[open] .ima-rejection-close-label { display: inline; }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision summary i:last-child { margin-inline-start: auto; transition: transform .16s ease; }
body.pmidt-ui.pm-theme-civic .ima-rejection-decision[open] summary i:last-child { transform: rotate(180deg); }
body.pmidt-ui.pm-theme-civic .ima-rejection-panel { padding-top: .38rem; text-align: right; }
body.pmidt-ui.pm-theme-civic .ima-rejection-panel label { display: block; margin-bottom: .2rem; color: #684642; font-size: .6875rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .ima-reject-input { width: 100%; min-width: 0; min-height: 64px; resize: vertical; font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ima-final-reject {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    margin-top: .3rem;
    color: #fff;
    background: var(--ima-red);
    border: 1px solid var(--ima-red);
    border-radius: 4px;
    font-size: .6875rem;
    font-weight: 850;
}
body.pmidt-ui.pm-theme-civic .ima-claim-detail-row > td { padding: 0 !important; background: #f3f8f6 !important; }
body.pmidt-ui.pm-theme-civic .ima-search-empty > td > div { min-height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem; color: var(--ima-muted); }
body.pmidt-ui.pm-theme-civic .ima-search-empty i { color: #64827f; font-size: 1.2rem; }
body.pmidt-ui.pm-theme-civic .ima-search-empty strong { color: var(--ima-ink); font-size: .75rem; }
body.pmidt-ui.pm-theme-civic .ima-search-empty span { font-size: .63rem; }
body.pmidt-ui.pm-theme-civic .ima-cell-center { text-align: center; vertical-align: middle; }

body.pmidt-ui.pm-theme-civic .ima-state,
body.pmidt-ui.pm-theme-civic .ima-inline-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .3rem;
    padding: 1.25rem;
    color: var(--ima-muted);
    text-align: center;
}

body.pmidt-ui.pm-theme-civic .ima-state i,
body.pmidt-ui.pm-theme-civic .ima-inline-empty i { font-size: 1.5rem; color: #5a7a82; }
body.pmidt-ui.pm-theme-civic .ima-state strong,
body.pmidt-ui.pm-theme-civic .ima-inline-empty strong { color: var(--ima-ink); font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .ima-state p,
body.pmidt-ui.pm-theme-civic .ima-inline-empty span { margin: 0; font-size: .68rem; line-height: 1.6; }
body.pmidt-ui.pm-theme-civic .ima-state-loading i { color: var(--ima-green); }
body.pmidt-ui.pm-theme-civic .ima-state-error i,
body.pmidt-ui.pm-theme-civic .ima-inline-error { color: var(--ima-red); }

body.pmidt-ui.pm-theme-civic .ima-inline-loading,
body.pmidt-ui.pm-theme-civic .ima-inline-error {
    padding: .7rem;
    color: var(--ima-muted);
    text-align: center;
    font-size: .7rem;
    background: #f7fbf9;
    border: 1px dashed #ceded9;
}

body.pmidt-ui.pm-theme-civic .ima-pdf-embed { width: 100% !important; height: 100% !important; min-height: 100% !important; display: block; }
body.pmidt-ui.pm-theme-civic .ima-dialog-root { display: flex; justify-content: center; }
body.pmidt-ui.pm-theme-civic #dialog.ima-dialog-root { display: none !important; }
body.pmidt-ui.pm-theme-civic .ima-dialog-container { width: 100%; max-height: calc(100vh - 88px); overflow: auto; }

@media (min-width: 992px) and (max-width: 1599px) {
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell { padding-inline: 6px; }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .navbar { padding-inline: 8px; }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .navbar-brand {
        min-width: 148px;
        padding-inline: 4px;
    }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .navbar-brand img { width: 150px !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .navbar-nav { gap: 0; }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .nav-link {
        min-height: 36px;
        padding: 7px 4px !important;
        font-size: .68rem;
    }
    body.pmidt-ui.pm-theme-civic .pmidt-header-shell .nav-link i {
        width: 16px;
        min-width: 16px;
        margin-inline-end: 3px !important;
    }
}

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) {
    max-width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 14px) !important;
    border: 1px solid #c4d5d0 !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 54px rgba(18, 53, 58, .26) !important;
}

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) .ui-dialog-titlebar {
    color: #fff;
    background: #1f4f56;
    border: 0;
}

body.pmidt-ui.pm-theme-civic .ui-dialog:has(#dialogPdf) .ui-dialog-content {
    max-width: 100% !important;
    max-height: calc(100vh - 68px) !important;
    overflow: auto !important;
    background: #f4f8f7 !important;
}

body.pmidt-ui.pm-theme-civic .medical-audit-page :is(button, a, input, textarea, select):focus-visible {
    outline: 3px solid rgba(180, 130, 55, .35);
    outline-offset: 2px;
    box-shadow: none !important;
}

@media (max-width: 1180px) {
    body.pmidt-ui.pm-theme-civic .medical-audit-page { height: auto; min-height: 0; overflow: visible; }
    body.pmidt-ui.pm-theme-civic .ima-workspace { display: block; }
    body.pmidt-ui.pm-theme-civic .ima-content-surface { overflow: visible; }
    body.pmidt-ui.pm-theme-civic .ima-review-grid { height: auto; grid-template-columns: 1fr; min-height: auto; }
    body.pmidt-ui.pm-theme-civic .ima-register-panel { min-height: 320px; max-height: 55vh; }
    body.pmidt-ui.pm-theme-civic .ima-table-shell { height: auto; max-height: 55vh; }
    body.pmidt-ui.pm-theme-civic .ima-pdf-panel { min-height: 300px; }
    body.pmidt-ui.pm-theme-civic .ima-pdf-embed { height: 55vh !important; min-height: 340px !important; }
    body.pmidt-ui.pm-theme-civic .ima-register-search input,
    body.pmidt-ui.pm-theme-civic .ima-register-search button,
    body.pmidt-ui.pm-theme-civic .ima-expand-button { height: 44px; }
    body.pmidt-ui.pm-theme-civic .ima-register-search button,
    body.pmidt-ui.pm-theme-civic .ima-expand-button { width: 44px; }
    body.pmidt-ui.pm-theme-civic .ima-action-button,
    body.pmidt-ui.pm-theme-civic .ima-rejection-decision summary,
    body.pmidt-ui.pm-theme-civic .ima-final-reject { min-height: 44px; }
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .medical-audit-page { width: calc(100vw - 8px); margin-top: .25rem; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .ima-masthead { align-items: flex-start; flex-direction: column; gap: .72rem; padding: .85rem; }
    body.pmidt-ui.pm-theme-civic .ima-masthead-status { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .ima-workspace-head { align-items: flex-start; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .ima-workflow-chip { display: none; }
    body.pmidt-ui.pm-theme-civic .ima-content-surface { min-height: 0; padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .ima-mode-btn { flex: 1 1 calc(50% - .45rem); justify-content: center; }
    body.pmidt-ui.pm-theme-civic .ima-register-toolbar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .ima-register-search { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .ima-table-shell,
    body.pmidt-ui.pm-theme-civic .ima-pdf-panel { min-height: 280px; max-height: calc(100vh - 360px); }
    body.pmidt-ui.pm-theme-civic .ima-pdf-embed { height: max(360px, calc(100vh - 390px)) !important; }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .ima-mode-btn { flex-basis: 100%; }
    body.pmidt-ui.pm-theme-civic .ima-content-surface { padding: .3rem; }
    body.pmidt-ui.pm-theme-civic .ima-claims-table { min-width: 810px; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .medical-audit-page *,
    body.pmidt-ui.pm-theme-civic .medical-audit-page *::before,
    body.pmidt-ui.pm-theme-civic .medical-audit-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Insurance delegate - claim custody and dispatch desk */
body.pmidt-ui.pm-theme-civic .idw-page {
    --idw-ink: #20383b;
    --idw-muted: #617679;
    --idw-navy: #173b40;
    --idw-teal: #24685f;
    --idw-teal-dark: #185048;
    --idw-steel: #527786;
    --idw-paper: #ffffff;
    --idw-cool: #eef4f3;
    --idw-line: #ccd9d6;
    --idw-amber: #a86f1d;
    --idw-amber-soft: #fff4df;
    --idw-red: #9a403b;
    --idw-red-soft: #faece9;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin: 0 auto;
    padding: .65rem;
    overflow-x: hidden;
    color: var(--idw-ink);
    background: #edf2f1;
    font-family: Tahoma, "Segoe UI", sans-serif;
    font-size: .8125rem;
}

body.pmidt-ui.pm-theme-civic .idw-page,
body.pmidt-ui.pm-theme-civic .idw-page * { box-sizing: border-box; letter-spacing: 0 !important; }
body.pmidt-ui.pm-theme-civic .idw-hidden-form { display: none; }

body.pmidt-ui.pm-theme-civic .idw-masthead {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    color: #fff;
    background: var(--idw-navy);
    border: 1px solid #0d2d31;
    border-bottom: 4px solid var(--idw-amber);
    border-radius: 5px 5px 2px 2px;
    box-shadow: 0 7px 16px rgba(18, 53, 57, .13);
}

body.pmidt-ui.pm-theme-civic .idw-identity { display: flex; align-items: center; gap: .75rem; min-width: 0; }
body.pmidt-ui.pm-theme-civic .idw-mark { width: 46px; height: 52px; display: grid; flex: 0 0 46px; place-items: center; color: #edc77f; border: 1px solid rgba(255,255,255,.24); border-top: 4px solid #edc77f; font-size: 1.15rem; }
body.pmidt-ui.pm-theme-civic .idw-kicker { color: #b8d4d0; font-size: .7rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-masthead h1 { margin: .12rem 0 .16rem; color: #fff; font-size: 1.28rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .idw-masthead p { margin: 0; color: #d7e5e2; font-size: .78rem; }
body.pmidt-ui.pm-theme-civic .idw-custody-stamp { min-width: 210px; display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; background: #102f34; border: 1px solid rgba(255,255,255,.14); }
body.pmidt-ui.pm-theme-civic .idw-custody-stamp > i { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; color: #edc77f; border: 1px solid rgba(237,199,127,.48); }
body.pmidt-ui.pm-theme-civic .idw-custody-stamp span,
body.pmidt-ui.pm-theme-civic .idw-custody-stamp small,
body.pmidt-ui.pm-theme-civic .idw-custody-stamp strong { display: block; }
body.pmidt-ui.pm-theme-civic .idw-custody-stamp small { color: #9fc2bd; font-size: .65rem; }
body.pmidt-ui.pm-theme-civic .idw-custody-stamp strong { margin-top: .08rem; color: #fff; font-size: .75rem; }

body.pmidt-ui.pm-theme-civic .idw-workdesk { min-width: 0; min-height: 430px; margin-top: .55rem; overflow: hidden; background: var(--idw-paper); border: 1px solid var(--idw-line); box-shadow: 0 7px 17px rgba(28, 61, 62, .09); }
body.pmidt-ui.pm-theme-civic .idw-workdesk-head { min-height: 64px; display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; padding-inline-start: .8rem; background: #f4f7f6; border-bottom: 1px solid var(--idw-line); border-inline-start: 4px solid var(--idw-teal); }
body.pmidt-ui.pm-theme-civic .idw-workdesk-head > div { display: flex; justify-content: center; flex-direction: column; padding-block: .5rem; }
body.pmidt-ui.pm-theme-civic .idw-section-code,
body.pmidt-ui.pm-theme-civic .idw-panel-code { color: var(--idw-steel); font-size: .68rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-workdesk-head h2 { margin: .08rem 0 0; font-size: .96rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .idw-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); }
body.pmidt-ui.pm-theme-civic .idw-mode-tab { min-height: 62px; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; padding: .5rem .8rem; color: #506568; background: #edf2f1; border: 0; border-inline-start: 1px solid var(--idw-line); border-bottom: 3px solid transparent; font-size: .78rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-mode-tab:hover { color: var(--idw-teal-dark); background: #e5efec; }
body.pmidt-ui.pm-theme-civic .idw-mode-tab.is-active { color: #fff; background: var(--idw-teal); border-bottom-color: #e6bd70; }

body.pmidt-ui.pm-theme-civic .idw-status { min-height: 0; padding: 0 .75rem; color: var(--idw-muted); border-bottom: 0 solid transparent; transition: min-height .16s ease, padding .16s ease; }
body.pmidt-ui.pm-theme-civic .idw-status:not(:empty) { min-height: 36px; display: flex; align-items: center; padding-block: .35rem; border-bottom-width: 1px; }
body.pmidt-ui.pm-theme-civic .idw-status.is-success { color: var(--idw-teal-dark); background: #e8f3ef; border-color: #c3dcd5; }
body.pmidt-ui.pm-theme-civic .idw-status.is-error { color: #842f2b; background: var(--idw-red-soft); border-color: #e3bdb9; }
body.pmidt-ui.pm-theme-civic .idw-stage { min-width: 0; min-height: 360px; max-height: min(72vh, 760px); padding: .6rem; overflow: auto; overscroll-behavior: contain; }

body.pmidt-ui.pm-theme-civic .idw-panel { min-width: 0; overflow: hidden; background: var(--idw-paper); border: 1px solid var(--idw-line); }
body.pmidt-ui.pm-theme-civic .idw-panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .7rem; background: var(--idw-cool); border-bottom: 1px solid var(--idw-line); border-inline-start: 4px solid var(--idw-steel); }
body.pmidt-ui.pm-theme-civic .idw-manifest-panel .idw-panel-head { border-inline-start-color: var(--idw-amber); }
body.pmidt-ui.pm-theme-civic .idw-panel-head h3 { margin: .08rem 0 0; color: var(--idw-ink); font-size: .95rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .idw-panel-state { display: inline-flex; align-items: center; gap: .35rem; color: var(--idw-steel); font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-manifest-count { min-width: 82px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .3rem; padding: .35rem .55rem; color: var(--idw-teal-dark); background: #e5f0ed; border: 1px solid #c5dcd6; }
body.pmidt-ui.pm-theme-civic .idw-manifest-count strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

body.pmidt-ui.pm-theme-civic .idw-claim-lookup { display: grid; grid-template-columns: 150px minmax(240px, 580px); align-items: center; gap: .55rem; padding: .7rem; background: #f8faf9; border-bottom: 1px solid var(--idw-line); }
body.pmidt-ui.pm-theme-civic .idw-claim-lookup > label,
body.pmidt-ui.pm-theme-civic .idw-reference-field > span:first-child,
body.pmidt-ui.pm-theme-civic .idw-summary-grid label > span { color: #40575a; font-size: .72rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-input-command { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; }
body.pmidt-ui.pm-theme-civic .idw-page .form-control { width: 100% !important; min-width: 0; min-height: 40px; margin: 0 !important; color: var(--idw-ink); background: #fff; border: 1px solid #c4d3d0; border-radius: 2px; font-family: inherit; font-size: .8rem; }
body.pmidt-ui.pm-theme-civic .idw-page .form-control[readonly] { color: #304b4e; background: #f3f7f6; }
body.pmidt-ui.pm-theme-civic .idw-command-btn,
body.pmidt-ui.pm-theme-civic .idw-icon-btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .38rem; padding: .45rem .7rem; color: var(--idw-ink); background: #fff; border: 1px solid #bfcfcb; border-radius: 2px; font-family: inherit; font-size: .76rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-icon-btn { width: 40px; flex: 0 0 40px; padding: 0; }
body.pmidt-ui.pm-theme-civic .idw-search-btn,
body.pmidt-ui.pm-theme-civic .idw-add-btn,
body.pmidt-ui.pm-theme-civic .idw-save-btn,
body.pmidt-ui.pm-theme-civic .idw-accept-btn { color: #fff; background: var(--idw-teal); border-color: var(--idw-teal); }
body.pmidt-ui.pm-theme-civic .idw-document-btn { color: #315c6b; background: #eaf2f5; border-color: #bfd1d8; }
body.pmidt-ui.pm-theme-civic .idw-print-btn { color: #594312; background: #f8e9c7; border-color: #dfc58e; }
body.pmidt-ui.pm-theme-civic .idw-return-btn,
body.pmidt-ui.pm-theme-civic .idw-remove-btn { color: #fff; background: var(--idw-red); border-color: var(--idw-red); }
body.pmidt-ui.pm-theme-civic .idw-command-btn:hover:not(:disabled),
body.pmidt-ui.pm-theme-civic .idw-icon-btn:hover:not(:disabled) { filter: brightness(.93); }
body.pmidt-ui.pm-theme-civic .idw-command-btn:disabled,
body.pmidt-ui.pm-theme-civic .idw-icon-btn:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }

body.pmidt-ui.pm-theme-civic .idw-result-stage { min-height: 285px; padding: .65rem; background: #f8faf9; }
body.pmidt-ui.pm-theme-civic .idw-history-register { min-width: 0; margin-top: .65rem; border: 1px solid var(--idw-line); background: #fff; }
body.pmidt-ui.pm-theme-civic .idw-register-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .7rem; background: var(--idw-navy); border-bottom: 3px solid var(--idw-amber); color: #fff; }
body.pmidt-ui.pm-theme-civic .idw-register-head .idw-panel-code { color: #b8d4d0; }
body.pmidt-ui.pm-theme-civic .idw-register-head h3 { margin: .08rem 0 0; color: #fff; font-size: .92rem; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .idw-register-head .idw-panel-state { color: #e6d5ae; }
body.pmidt-ui.pm-theme-civic :is(.idw-empty-state,.idw-error-state,.idw-loading-state) { min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .4rem; color: var(--idw-muted); text-align: center; }
body.pmidt-ui.pm-theme-civic :is(.idw-empty-state,.idw-error-state) > i { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: .3rem; color: var(--idw-steel); background: #e8f0f1; border: 1px solid #cbdadd; font-size: 1.2rem; }
body.pmidt-ui.pm-theme-civic .idw-error-state > i { color: var(--idw-red); background: var(--idw-red-soft); border-color: #e3c2be; }
body.pmidt-ui.pm-theme-civic :is(.idw-empty-state,.idw-error-state) strong { color: var(--idw-ink); font-size: .88rem; }
body.pmidt-ui.pm-theme-civic .idw-loader { width: 30px; height: 30px; border: 3px solid #c8d8d4; border-top-color: var(--idw-teal); animation: idw-spin .8s linear infinite; }
@keyframes idw-spin { to { transform: rotate(360deg); } }

body.pmidt-ui.pm-theme-civic .idw-dossier { overflow: hidden; background: #fff; border: 1px solid var(--idw-line); border-top: 4px solid var(--idw-steel); }
body.pmidt-ui.pm-theme-civic .idw-dossier.is-accepted { border-top-color: var(--idw-teal); }
body.pmidt-ui.pm-theme-civic .idw-dossier-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .75rem; background: #f0f5f4; border-bottom: 1px solid var(--idw-line); }
body.pmidt-ui.pm-theme-civic .idw-dossier-head span:first-child { color: var(--idw-muted); font-size: .68rem; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-dossier-head h3 { margin: .1rem 0 0; font-size: 1.12rem; font-weight: 900; font-variant-numeric: tabular-nums; }
body.pmidt-ui.pm-theme-civic .idw-custody-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .55rem; color: var(--idw-teal-dark); background: #e5f1ed; border: 1px solid #c4ddd5; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid > div { min-height: 72px; padding: .55rem .65rem; border-inline-end: 1px solid var(--idw-line); border-bottom: 1px solid var(--idw-line); }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid dt { color: var(--idw-muted); font-size: .68rem; font-weight: 800; }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid dd { margin: .3rem 0 0; color: var(--idw-ink); font-size: .82rem; font-weight: 850; overflow-wrap: anywhere; }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid .idw-amount { color: var(--idw-teal-dark); font-size: 1rem; font-variant-numeric: tabular-nums; }
body.pmidt-ui.pm-theme-civic .idw-dossier-grid .idw-amount small { color: var(--idw-muted); font-size: .68rem; }
body.pmidt-ui.pm-theme-civic .idw-exception-note { display: flex; align-items: flex-start; gap: .55rem; padding: .6rem .7rem; color: #7a332f; background: var(--idw-red-soft); border-bottom: 1px solid #e5c0bc; }
body.pmidt-ui.pm-theme-civic .idw-exception-note strong { display: block; margin-bottom: .12rem; }
body.pmidt-ui.pm-theme-civic .idw-dossier-actions { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; padding: .55rem .65rem; background: #f4f7f6; }

body.pmidt-ui.pm-theme-civic .idw-lookup-strip { display: grid; grid-template-columns: minmax(165px, .65fr) minmax(500px, 2.2fr) auto; align-items: end; gap: .55rem; padding: .65rem; background: #f8faf9; border-bottom: 1px solid var(--idw-line); }
body.pmidt-ui.pm-theme-civic .idw-reference-field { display: grid; gap: .3rem; margin: 0; }
body.pmidt-ui.pm-theme-civic .idw-summary-grid { display: grid; grid-template-columns: .7fr 1.35fr 1.35fr .75fr .65fr; gap: .4rem; }
body.pmidt-ui.pm-theme-civic .idw-summary-grid label { min-width: 0; display: grid; gap: .3rem; margin: 0; }
body.pmidt-ui.pm-theme-civic .idw-lookup-actions { display: flex; gap: .35rem; }
body.pmidt-ui.pm-theme-civic .idw-table-shell { width: 100%; max-height: min(43vh, 440px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table { width: 100%; min-width: 920px; margin: 0; border-collapse: collapse; table-layout: fixed; font-size: .77rem; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table th { position: sticky; top: 0; z-index: 2; padding: .58rem .6rem; color: #fff; background: var(--idw-navy); border-inline-end: 1px solid #496268; text-align: right; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table th:nth-child(1) { width: 130px; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table th:nth-child(2) { width: 110px; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table th:nth-child(5),
body.pmidt-ui.pm-theme-civic .idw-manifest-table th:nth-child(6) { width: 100px; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table th:last-child { width: 74px; text-align: center; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table td { padding: .55rem .6rem; background: #fff; border-bottom: 1px solid var(--idw-line); overflow-wrap: anywhere; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table tbody tr:hover td { background: #f1f6f4; }
body.pmidt-ui.pm-theme-civic .idw-manifest-table td:last-child { text-align: center; }
body.pmidt-ui.pm-theme-civic .idw-empty-row td { height: 190px; text-align: center !important; }
body.pmidt-ui.pm-theme-civic .idw-empty-row td > * { display: block; margin: .25rem auto; }
body.pmidt-ui.pm-theme-civic .idw-empty-row i { color: var(--idw-steel); font-size: 1.35rem; }
body.pmidt-ui.pm-theme-civic .idw-empty-row span { color: var(--idw-muted); }
body.pmidt-ui.pm-theme-civic .idw-save-bar { position: sticky; bottom: 0; z-index: 3; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; background: #eaf2ef; border-top: 1px solid #c6d9d3; }
body.pmidt-ui.pm-theme-civic .idw-save-bar span,
body.pmidt-ui.pm-theme-civic .idw-save-bar strong { display: block; }
body.pmidt-ui.pm-theme-civic .idw-save-bar span { color: var(--idw-muted); font-size: .67rem; }
body.pmidt-ui.pm-theme-civic .idw-save-bar strong { margin-top: .12rem; font-size: .76rem; }

body.pmidt-ui.pm-theme-civic .idw-grid-shell { width: 100%; max-width: 100%; max-height: min(62vh, 650px); overflow: auto; }
body.pmidt-ui.pm-theme-civic .idw-grid-shell .dx-datagrid { min-width: 980px; }
body.pmidt-ui.pm-theme-civic .idw-detail-caption { padding: .45rem .55rem; color: var(--idw-teal-dark); background: #eaf3f0; border-inline-start: 3px solid var(--idw-teal); }
body.pmidt-ui.pm-theme-civic .idw-document-preview,
body.pmidt-ui.pm-theme-civic .idw-document-preview object { width: 100%; height: 100%; min-height: 420px; }
body.pmidt-ui.pm-theme-civic .idw-report-viewer { width: 100%; min-width: 0; min-height: calc(100vh - 190px); overflow: visible; }
body.pmidt-ui.pm-theme-civic .idw-report-container,
body.pmidt-ui.pm-theme-civic .idw-pdf-container { width: 100%; min-width: 0; overflow: visible; }
body.pmidt-ui.pm-theme-civic .idw-report-recovery { min-height: min(420px, calc(100vh - 150px)); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .75rem; padding: 1rem; color: var(--idw-ink); background: #f6f8f7; border: 1px solid var(--idw-line); text-align: center; }
body.pmidt-ui.pm-theme-civic .idw-report-recovery strong { font-size: 1rem; }
body.pmidt-ui.pm-theme-civic .idw-report-recovery > span { max-width: 520px; color: var(--idw-muted); }

body.pmidt-ui.pm-theme-civic .ui-dialog.idw-jquery-dialog { max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 24px) !important; padding: 0; border: 1px solid #b9cac6; border-radius: 3px; box-shadow: 0 20px 55px rgba(16, 47, 52, .28); }
body.pmidt-ui.pm-theme-civic .ui-dialog.idw-jquery-dialog .ui-dialog-titlebar { color: #fff; background: var(--idw-navy, #173b40); border: 0; border-radius: 2px 2px 0 0; }
body.pmidt-ui.pm-theme-civic .ui-dialog.idw-jquery-dialog .ui-dialog-content { width: 100% !important; max-height: calc(100vh - 84px) !important; padding: .45rem; overflow: auto; }

body.pmidt-ui.pm-theme-civic .idw-page :is(button,input,a,[tabindex]):focus-visible,
body.pmidt-ui.pm-theme-civic .ui-dialog.idw-jquery-dialog :is(button,a,[tabindex]):focus-visible { outline: 3px solid rgba(168, 111, 29, .36) !important; outline-offset: 2px; box-shadow: none !important; }

/* Insurance audit uses the same custody-workdesk frame as InsuDelegate. */
body.pmidt-ui.pm-theme-civic .insurance-audit-page {
    --iaw-ink: var(--idw-ink);
    --iaw-teal: var(--idw-teal);
    --iaw-teal-deep: var(--idw-navy);
    --iaw-amber: var(--idw-amber);
    --iaw-line: var(--idw-line);
    --iaw-panel: var(--idw-cool);
    width: calc(100% - 18px);
    max-width: 1900px;
}

body.pmidt-ui.pm-theme-civic .insurance-audit-mode-tabs { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
body.pmidt-ui.pm-theme-civic .insurance-audit-workdesk { min-height: 0; }
body.pmidt-ui.pm-theme-civic .insurance-audit-stage { min-height: 0; }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.insurance-audit-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.insurance-audit-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.pmidt-ui.pm-theme-civic .insurance-audit-page {
        height: calc(100dvh - 154px);
        min-height: 560px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
    }
    body.pmidt-ui.pm-theme-civic .insurance-audit-workdesk {
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
    }
    body.pmidt-ui.pm-theme-civic .insurance-audit-stage {
        height: 100%;
        max-height: none;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .insurance-audit-mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .insurance-audit-mode-tabs { grid-template-columns: 1fr; }
}

/* Medical audit uses the same custody-workdesk frame as InsuDelegate. */
body.pmidt-ui.pm-theme-civic .medical-audit-page {
    --ima-ink: var(--idw-ink);
    --ima-muted: var(--idw-muted);
    --ima-line: var(--idw-line);
    --ima-paper: var(--idw-paper);
    --ima-canvas: #edf2f1;
    --ima-navy: var(--idw-navy);
    --ima-green: var(--idw-teal);
    --ima-red: var(--idw-red);
    width: calc(100% - 18px);
    max-width: 1900px;
}

body.pmidt-ui.pm-theme-civic .medical-audit-mode-tabs { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
body.pmidt-ui.pm-theme-civic .medical-audit-mode-tabs .medical-audit-reject-tab.is-active { background: var(--idw-red); border-bottom-color: #e6bd70; }
body.pmidt-ui.pm-theme-civic .medical-audit-workdesk { min-height: 0; }
body.pmidt-ui.pm-theme-civic .medical-audit-stage { min-height: 0; }
body.pmidt-ui.pm-theme-civic .medical-audit-stage:has(.ima-native-register) { padding: .55rem; background: #e9efed; }
body.pmidt-ui.pm-theme-civic .ima-native-register { height: 100%; border-color: #cad8d5; }
body.pmidt-ui.pm-theme-civic .ima-completed-head { border-inline-start-color: var(--ima-green); }
body.pmidt-ui.pm-theme-civic .ima-rejected-head { border-inline-start-color: var(--ima-red); }
body.pmidt-ui.pm-theme-civic .ima-rejected-count { color: #87423d; background: #f8e9e7; border-color: #e4c1bd; }
body.pmidt-ui.pm-theme-civic .ima-history-table { min-width: 1680px; }
body.pmidt-ui.pm-theme-civic .ima-rejected-table { min-width: 1540px; }
body.pmidt-ui.pm-theme-civic .ima-rejection-reason { min-width: 250px; max-width: 340px; color: #733c38; text-align: right !important; }
body.pmidt-ui.pm-theme-civic .ima-rejection-reason span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.medical-audit-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.medical-audit-page) {
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }
    body.pmidt-ui.pm-theme-civic .medical-audit-page {
        height: calc(100dvh - 154px);
        min-height: 560px;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
    }
    body.pmidt-ui.pm-theme-civic .medical-audit-workdesk {
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
    }
    body.pmidt-ui.pm-theme-civic .medical-audit-stage {
        height: 100%;
        max-height: none;
        overflow: hidden;
    }
}

@media (max-width: 1180px) {
    body.pmidt-ui.pm-theme-civic .medical-audit-stage { max-height: none; overflow: visible; }
    body.pmidt-ui.pm-theme-civic .ima-native-register { height: auto; }
    body.pmidt-ui.pm-theme-civic .ima-native-register .spt-table-viewport { max-height: 65vh; }
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .medical-audit-mode-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .medical-audit-mode-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
    body.pmidt-ui.pm-theme-civic .idw-lookup-strip { grid-template-columns: minmax(160px, .6fr) minmax(0, 1.4fr); }
    body.pmidt-ui.pm-theme-civic .idw-lookup-actions { grid-column: 1 / -1; justify-content: flex-end; }
    body.pmidt-ui.pm-theme-civic .idw-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    body.pmidt-ui.pm-theme-civic .idw-page { padding: .45rem; }
    body.pmidt-ui.pm-theme-civic .idw-masthead { min-height: 84px; }
    body.pmidt-ui.pm-theme-civic .idw-workdesk-head { align-items: stretch; flex-direction: column; gap: 0; padding: 0; border-inline-start: 0; }
    body.pmidt-ui.pm-theme-civic .idw-workdesk-head > div { min-height: 55px; padding: .45rem .65rem; border-inline-start: 4px solid var(--idw-teal); }
    body.pmidt-ui.pm-theme-civic .idw-mode-tabs { width: 100%; }
    body.pmidt-ui.pm-theme-civic .idw-mode-tab { min-height: 48px; border-top: 1px solid var(--idw-line); }
    body.pmidt-ui.pm-theme-civic .idw-stage { max-height: 74vh; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .idw-claim-lookup { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .idw-dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.pmidt-ui.pm-theme-civic .idw-lookup-strip { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .idw-lookup-actions { grid-column: auto; }
    body.pmidt-ui.pm-theme-civic .idw-save-bar { align-items: stretch; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .idw-save-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .idw-document-preview,
    body.pmidt-ui.pm-theme-civic .idw-document-preview object { min-height: 360px; }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .idw-page { padding: .28rem; }
    body.pmidt-ui.pm-theme-civic .idw-masthead { align-items: stretch; flex-direction: column; padding: .65rem; }
    body.pmidt-ui.pm-theme-civic .idw-custody-stamp { width: 100%; min-width: 0; }
    body.pmidt-ui.pm-theme-civic .idw-mode-tabs { grid-template-columns: 1fr 1fr; }
    body.pmidt-ui.pm-theme-civic .idw-mode-tab { min-width: 0; padding: .4rem .25rem; font-size: .72rem; }
    body.pmidt-ui.pm-theme-civic .idw-panel-head,
    body.pmidt-ui.pm-theme-civic .idw-dossier-head,
    body.pmidt-ui.pm-theme-civic .idw-register-head { align-items: flex-start; flex-direction: column; }
    body.pmidt-ui.pm-theme-civic .idw-result-stage { min-height: 250px; padding: .4rem; }
    body.pmidt-ui.pm-theme-civic .idw-dossier-grid,
    body.pmidt-ui.pm-theme-civic .idw-summary-grid { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .idw-dossier-actions { display: grid; grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .idw-dossier-actions .idw-command-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .idw-lookup-actions { display: grid; grid-template-columns: 1fr 40px; }
    body.pmidt-ui.pm-theme-civic .idw-add-btn { width: 100%; }
    body.pmidt-ui.pm-theme-civic .idw-stage { max-height: 76vh; }
    body.pmidt-ui.pm-theme-civic .idw-document-preview,
    body.pmidt-ui.pm-theme-civic .idw-document-preview object { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
    body.pmidt-ui.pm-theme-civic .idw-page *,
    body.pmidt-ui.pm-theme-civic .idw-page *::before,
    body.pmidt-ui.pm-theme-civic .idw-page *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Insurance work - full claim lifecycle workdesk */
body.pmidt-ui.pm-theme-civic .insurance-work-page {
    width: calc(100% - 18px);
    max-width: 1900px;
}

body.pmidt-ui.pm-theme-civic .insurance-work-head-mark {
    min-width: 205px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: .45rem;
    padding-inline: .75rem;
    color: var(--idw-teal-dark);
    background: #e8f1ef;
    border-inline-start: 1px solid var(--idw-line);
    font-size: .72rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .insurance-work-head-mark i { color: var(--idw-amber); font-size: 1rem; }
body.pmidt-ui.pm-theme-civic .insurance-work-workdesk { min-height: 0; }
body.pmidt-ui.pm-theme-civic .insurance-work-command-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(190px, 2fr);
    background: #e9efed;
    border-bottom: 1px solid var(--idw-line);
}
body.pmidt-ui.pm-theme-civic .insurance-work-command-deck {
    display: grid;
    grid-template-columns: 2fr 3fr 4fr 2fr;
}

body.pmidt-ui.pm-theme-civic .insurance-work-command-group {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 25px auto;
    border-inline-end: 1px solid var(--idw-line);
}

body.pmidt-ui.pm-theme-civic .insurance-work-command-group:nth-child(2) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.pmidt-ui.pm-theme-civic .insurance-work-command-group:nth-child(3) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.pmidt-ui.pm-theme-civic .insurance-work-service-rail {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 25px auto;
    border-inline-start: 1px solid var(--idw-line);
}
body.pmidt-ui.pm-theme-civic .insurance-work-command-label {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding-inline: .55rem;
    color: #52696c;
    background: #f5f8f7;
    border-bottom: 1px solid var(--idw-line);
    font-size: .65rem;
    font-weight: 850;
}

body.pmidt-ui.pm-theme-civic .insurance-work-command-layout .idw-mode-tab {
    min-width: 0;
    min-height: 48px;
    padding: .35rem .3rem;
    line-height: 1.25;
    text-decoration: none;
}

body.pmidt-ui.pm-theme-civic .insurance-work-command-layout .idw-mode-tab:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(168, 111, 29, .38);
    outline-offset: -3px;
}

body.pmidt-ui.pm-theme-civic .insurance-work-service-rail .insurance-work-utility-tab { color: #684b14; background: #f9efd9; }
body.pmidt-ui.pm-theme-civic .insurance-work-service-rail .insurance-work-utility-tab:hover { color: #49330c; background: #f4e3bf; }
body.pmidt-ui.pm-theme-civic .insurance-work-service-rail .insurance-work-logout-tab { color: #7b332f; background: #f8e9e7; }
body.pmidt-ui.pm-theme-civic .insurance-work-service-rail .insurance-work-logout-tab:hover { color: #fff; background: var(--idw-red); }
body.pmidt-ui.pm-theme-civic .insurance-work-surface { min-height: 0; background: #f8faf9; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-panel,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-table-shell,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-table-pane,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-doc-side,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-partial > .table,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-partial > .table-responsive { border: 1px solid var(--idw-line); background: #fff; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-panel { padding: .75rem; margin-bottom: .7rem; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-soft-bg { background: #f3f7f6; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-layout { min-height: 100%; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-table-pane,
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-pdf-pane { max-height: 100%; overflow: auto; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-pdf-embed { display: block; width: 100%; height: min(700px, 62dvh); min-height: 0; border: 0; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface table { margin-bottom: 0; text-align: center; vertical-align: middle; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface :is(thead,.table-primary),
body.pmidt-ui.pm-theme-civic .insurance-work-surface thead :is(tr,th,td) { color: var(--idw-ink); background: #e8f1ef !important; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .cclick { width: 42px; color: var(--idw-teal-dark); cursor: pointer; font-weight: 900; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface :is(.iw-highlight-cell .btn,td .btn) { margin: .1rem; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .dx-datagrid-headers { color: var(--idw-ink); background: #e8f1ef; font-weight: 850; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-finance-release { height: auto !important; max-height: min(700px, calc(100dvh - 300px)); overflow: hidden; }
body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-finance-release-table { max-height: min(700px, calc(100dvh - 310px)) !important; overflow: auto; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog { max-width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog .ui-dialog-content { width: 100% !important; max-width: 100%; max-height: calc(100dvh - 64px) !important; overflow: auto; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog :is(#repoContainer,#pdfContainer) { width: 100%; max-width: 100%; max-height: calc(100dvh - 72px) !important; overflow: auto; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog .iw-pdf-embed { display: block; width: 100% !important; height: min(700px, calc(100dvh - 80px)) !important; min-height: 0 !important; border: 0; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog .insurance-work-report-viewer { width: 100%; max-width: 100%; height: min(1000px, calc(100dvh - 80px)); min-height: 0; overflow: hidden; }
body.pmidt-ui.pm-theme-civic .ui-dialog.insurance-work-dialog #WebDocumentViewer { width: 100% !important; max-width: 100% !important; height: 100% !important; min-height: 0 !important; }

@media (min-width: 1181px) {
    body.pmidt-ui.pm-theme-civic:has(.insurance-work-page) { overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .pmidt-content-shell:has(.insurance-work-page) { height: calc(100dvh - 68px) !important; min-height: 0 !important; overflow: hidden !important; }
    body.pmidt-ui.pm-theme-civic .insurance-work-page { height: calc(100dvh - 154px); min-height: 620px; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
    body.pmidt-ui.pm-theme-civic .insurance-work-workdesk { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); }
    body.pmidt-ui.pm-theme-civic .insurance-work-surface { height: 100%; max-height: none; overflow: auto; }
}

@media (max-width: 1180px) {
    body.pmidt-ui.pm-theme-civic .insurance-work-command-layout { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .insurance-work-command-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.pmidt-ui.pm-theme-civic .insurance-work-service-rail { border-top: 1px solid var(--idw-line); border-inline-start: 0; }
    body.pmidt-ui.pm-theme-civic .insurance-work-surface { max-height: none; overflow: visible; }
    body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-table-pane,
    body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-claims-pdf-pane { max-height: 68vh; }
}

@media (max-width: 700px) {
    body.pmidt-ui.pm-theme-civic .insurance-work-head-mark { min-width: 0; border-top: 1px solid var(--idw-line); border-inline-start: 4px solid var(--idw-amber); }
    body.pmidt-ui.pm-theme-civic .insurance-work-command-deck { grid-template-columns: 1fr; }
    body.pmidt-ui.pm-theme-civic .insurance-work-command-group { border-inline-end: 0; }
    body.pmidt-ui.pm-theme-civic .insurance-work-command-layout .idw-mode-tab { min-height: 44px; }
    body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-finance-release,
    body.pmidt-ui.pm-theme-civic .insurance-work-surface .iw-finance-release-table { max-height: 62dvh !important; }
}

@media (max-width: 430px) {
    body.pmidt-ui.pm-theme-civic .insurance-work-command-group:nth-child(2),
    body.pmidt-ui.pm-theme-civic .insurance-work-command-group:nth-child(3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
