/* Shared TRC module theme (sage accents + leather-tan 3D frames). Scope with .trc-module on module root panel. */

/* Site content panel — raised leather-tan frame */
.aperture-theme .aperture-main {
    border: 5px solid #a67c52 !important;
    border-top-color: #e2d0b0 !important;
    border-left-color: #d4b896 !important;
    border-right-color: #8b6914 !important;
    border-bottom-color: #6b4f2a !important;
    border-radius: 12px !important;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.85),
        inset 1px 0 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 6px rgba(107, 79, 42, 0.14),
        inset 0 0 0 1px rgba(232, 220, 200, 0.95),
        0 4px 0 #6b4f2a,
        0 10px 22px rgba(70, 48, 22, 0.3) !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #fefefe 100%) !important;
}

.trc-module {
    border-radius: 8px;
}

.trc-module table.dataentryform,
.trc-module table.DataEntryForm {
    border-collapse: collapse !important;
    border: 3px solid #a67c52 !important;
    border-top-color: #d4b896 !important;
    border-left-color: #c4a484 !important;
    border-right-color: #8b6914 !important;
    border-bottom-color: #6b4f2a !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px 0 rgba(107, 79, 42, 0.35) !important;
    background: linear-gradient(180deg, #fff 0%, #f5f6f2 38%, #eceee6 100%) !important;
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
    line-height: 12px !important;
}

.trc-module table.dataentryform td,
.trc-module table.dataentryform th,
.trc-module table.DataEntryForm td,
.trc-module table.DataEntryForm th {
    border: 1px solid #cfcfdf !important;
    padding: 2px 4px !important;
    vertical-align: middle !important;
}

.trc-module .Normal,
.trc-module span.Normal,
.trc-module label.Normal,
.trc-module select.Normal {
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
    line-height: 12px !important;
    color: #000 !important;
}

.trc-module input.NormalTextBox,
.trc-module select.NormalTextBox,
.trc-module textarea.NormalTextBox,
.trc-module input[type="text"],
.trc-module select {
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 12px !important;
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #848284 !important;
}

.trc-module input[type="checkbox"],
.trc-module input[type="radio"] {
    accent-color: #87986a !important;
}

.trc-module input.CommandButton,
.trc-module button.CommandButton,
.trc-module .CommandButton {
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: normal !important;
}

.trc-module .trc-module-title,
.trc-module .gridheaderlabel {
    display: block;
    color: #f8faf5 !important;
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(180deg, #9aab7e 0%, #87986a 48%, #6f8055 100%) !important;
    border: 1px solid #5a6a44 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
    padding: 4px 8px !important;
}

.trc-module td.datagridheader,
.trc-module td.Fixeddatagridheader,
.trc-module table.datagrid td.datagridheader,
.trc-module table.datagrid td.Fixeddatagridheader,
.trc-module table.DataGrid td.datagridheader,
.trc-module table.DataGrid td.Fixeddatagridheader,
.trc-module table.datagrid th,
.trc-module table.DataGrid th {
    color: #f8faf5 !important;
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
    background-color: #87986a !important;
    background-image: linear-gradient(
        180deg,
        #a8b88c 0%,
        #9aab7e 18%,
        #87986a 52%,
        #6f8055 100%
    ) !important;
    border: 1px solid #5a6a44 !important;
    border-left-color: #73885a !important;
    border-right-color: #4f5f3c !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
    padding: 4px 8px !important;
    vertical-align: middle !important;
}

.trc-module td.Fixeddatagridheader {
    position: relative;
    z-index: 10;
}

.trc-module table.datagrid,
.trc-module table.DataGrid,
.trc-module .datagrid {
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    color: #000 !important;
    background-color: #fff !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #6f8055 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow:
        0 2px 5px rgba(35, 42, 26, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.trc-module .datagriditem,
.trc-module .datagridItem {
    background-color: #fff !important;
    background-image: linear-gradient(180deg, #fff 0%, #fafbf8 100%) !important;
}

.trc-module .datagridaltitem {
    background-color: #f5f6f2 !important;
    background-image: linear-gradient(180deg, #f4f6ef 0%, #e8ece0 100%) !important;
}

.trc-module table.datagrid td,
.trc-module table.DataGrid td,
.trc-module table.datagrid th,
.trc-module table.DataGrid th {
    border: 1px solid #d8dfd0 !important;
    padding: 3px 6px !important;
    vertical-align: middle !important;
}

.trc-module table.datagrid tr:hover td.datagriditem,
.trc-module table.datagrid tr:hover td.datagridItem,
.trc-module table.datagrid tr:hover td.datagridaltitem,
.trc-module table.DataGrid tr:hover td.datagriditem,
.trc-module table.DataGrid tr:hover td.datagridaltitem {
    background-color: #dfe8d2 !important;
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        #d5e0c8 55%,
        #c8d4b8 100%
    ) !important;
    color: #1a1f14 !important;
}

.trc-module table.datagrid tr.selected td,
.trc-module table.datagrid tr.selected td.datagriditem,
.trc-module table.datagrid tr.selected td.datagridaltitem,
.trc-module table.DataGrid tr.selected td {
    background-color: #cdd9bc !important;
    background-image: linear-gradient(180deg, #b8c8a4 0%, #a8b894 45%, #95a882 100%) !important;
    box-shadow: inset 0 2px 5px rgba(45, 54, 33, 0.25) !important;
    color: #1a1f14 !important;
}

/* Web 2.0 glossy module tabs (PORecap, AddParty, etc.) */
.trc-module .trc-module-shell {
    display: block;
    max-width: 100%;
}

.trc-module .trc-tab-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 5px 5px 0;
    font-size: 0;
    background: linear-gradient(180deg, #5a6a44 0%, #4a5838 55%, #3f4d30 100%);
    border: 1px solid #3d4a2f;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 2px 4px rgba(35, 42, 26, 0.2);
}

.trc-module .trc-tab-bar .CommandButton,
.trc-module .trc-tab-bar input.CommandButton,
.trc-module .trc-tab-bar button.CommandButton {
    margin: 0 2px 0 0 !important;
    min-height: 30px;
    padding: 0 14px !important;
    line-height: 28px !important;
    font-family: Verdana, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: none;
    border-radius: 4px 4px 0 0 !important;
    cursor: pointer;
    vertical-align: bottom;
    color: #f8faf5 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
    background-color: #87986a !important;
    background-image: linear-gradient(
        180deg,
        #a8b88c 0%,
        #9aab7e 22%,
        #87986a 55%,
        #6f8055 100%
    ) !important;
    border: 1px solid #5a6a44 !important;
    border-bottom: 1px solid #4f5f3c !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.22) !important;
}

.trc-module .trc-tab-bar .CommandButton:not(.trc-tab-active):hover,
.trc-module .trc-tab-bar input.CommandButton:not(.trc-tab-active):hover,
.trc-module .trc-tab-bar button.CommandButton:not(.trc-tab-active):hover {
    color: #fff !important;
    background-image: linear-gradient(
        180deg,
        #b4c498 0%,
        #a5b68a 24%,
        #92a476 58%,
        #77885e 100%
    ) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 1px 3px rgba(0, 0, 0, 0.28) !important;
}

.trc-module .trc-tab-bar .trc-tab-active,
.trc-module .trc-tab-bar input.trc-tab-active,
.trc-module .trc-tab-bar button.trc-tab-active {
    position: relative;
    z-index: 2;
    margin-bottom: -1px !important;
    color: #2a3320 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    background-color: #f5f6f2 !important;
    background-image: linear-gradient(
        180deg,
        #fff 0%,
        #f5f6f2 38%,
        #eceee6 100%
    ) !important;
    border: 1px solid #6f8055 !important;
    border-bottom: 2px solid #f5f6f2 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 -1px 0 rgba(255, 255, 255, 0.2) !important;
}

.trc-module .trc-tab-content {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 12px 10px 10px;
    background: linear-gradient(180deg, #f5f6f2 0%, #eceee6 100%);
    border: 1px solid #6f8055;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 2px 5px rgba(35, 42, 26, 0.12);
    overflow: hidden;
}

.trc-module .trc-tab-content table.dataentryform,
.trc-module .trc-tab-content table.DataEntryForm {
    background-color: transparent !important;
    border: none !important;
}

.trc-module .tabtitle {
    display: inline-block;
    color: #f8faf5 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(180deg, #9aab7e 0%, #87986a 48%, #6f8055 100%) !important;
    border: 1px solid #5a6a44 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
    padding: 4px 8px !important;
}

.trc-module .trc-status {
    display: block;
    margin: 8px 0;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 11px;
}

.trc-module .trc-status-error {
    color: #800;
}

.trc-module .trc-status-ok {
    color: #2d5016;
}

/* Theme-aligned links (replace default blue) */
.trc-module a:link {
    color: #4d5f3a !important;
    text-decoration: none;
}

.trc-module a:visited {
    color: #6f8055 !important;
    text-decoration: none;
}

.trc-module a:hover,
.trc-module a:active {
    color: #87986a !important;
    text-decoration: underline;
}

/* Keep sort-header links readable on the green header background */
.trc-module table.datagrid th a:link,
.trc-module table.datagrid th a:visited,
.trc-module table.datagrid td.datagridheader a:link,
.trc-module table.datagrid td.datagridheader a:visited,
.trc-module table.datagrid .datagridheader a:link,
.trc-module table.datagrid .datagridheader a:visited,
.trc-module table.DataGrid th a:link,
.trc-module table.DataGrid th a:visited,
.trc-module table.DataGrid td.datagridheader a:link,
.trc-module table.DataGrid td.datagridheader a:visited {
    color: #4d5f3a !important;
    text-decoration: none;
}

.trc-module table.datagrid th a:hover,
.trc-module table.datagrid th a:active,
.trc-module table.datagrid td.datagridheader a:hover,
.trc-module table.datagrid td.datagridheader a:active,
.trc-module table.datagrid .datagridheader a:hover,
.trc-module table.datagrid .datagridheader a:active,
.trc-module table.DataGrid th a:hover,
.trc-module table.DataGrid th a:active,
.trc-module table.DataGrid td.datagridheader a:hover,
.trc-module table.DataGrid td.datagridheader a:active {
    color: #1a1f14 !important;
    text-decoration: underline;
}

/* Modal overlay for in-page popups (reports, PO contracts, details) */
.trc-report-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.trc-report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 36, 22, 0.45);
}

.trc-report-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    height: min(520px, calc(100vh - 3rem));
    background: #f5f6f3;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(30, 36, 22, 0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.trc-report-modal-panel--document {
    width: min(920px, 96vw);
    height: min(820px, calc(100vh - 2rem));
}

/* Integrate New Vendors TRC — wide enough for the vendor grid plus keyword / GP search */
#trcLinksModal:has(iframe[src*="IntegrateVendorsToGP"]),
#trcLinksModal:has(iframe[src*="AR_Invoices.aspx"]),
#trcLinksModal:has(iframe[src*="AP_Integration.aspx"]),
#trcLinksModal:has(iframe[src*="IntegrateCustomersToGP.aspx"]) {
    inset: 0 !important;
    width: auto !important;
    padding: 8px !important;
}

#trcLinksModal:has(iframe[src*="IntegrateVendorsToGP"]) .trc-report-modal-panel,
#trcLinksModal:has(iframe[src*="AR_Invoices.aspx"]) .trc-report-modal-panel,
#trcLinksModal:has(iframe[src*="AP_Integration.aspx"]) .trc-report-modal-panel,
#trcLinksModal:has(iframe[src*="IntegrateCustomersToGP.aspx"]) .trc-report-modal-panel,
.trc-report-modal-panel--document.is-trc-vendors {
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    height: calc(100vh - 16px) !important;
    flex: 0 0 auto !important;
}

body.dnnEditState .trc-report-modal:has(.is-trc-vendors),
html:has(#personaBar-iframe) .trc-report-modal:has(.is-trc-vendors),
html:has(.personaBarContainer) .trc-report-modal:has(.is-trc-vendors) {
    inset: 0 0 0 80px;
    width: auto;
}

body.dnnEditState .trc-report-modal-panel--document.is-trc-vendors,
html:has(#personaBar-iframe) .trc-report-modal-panel--document.is-trc-vendors,
html:has(.personaBarContainer) .trc-report-modal-panel--document.is-trc-vendors {
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
}

/* Integrate New Customers BAC — near full viewport (scoped; other document modals unchanged) */
.trc-report-modal-panel--document.is-bac-customers {
    width: calc(100vw - 24px);
    height: min(920px, calc(100vh - 16px));
}

/* DNN Persona Bar (~80px left) — keep BAC modal clear of the bar */
body.dnnEditState .trc-report-modal:has(.is-bac-customers),
html:has(#personaBar-iframe) .trc-report-modal:has(.is-bac-customers),
html:has(.personaBarContainer) .trc-report-modal:has(.is-bac-customers) {
    inset: 0 0 0 80px;
    width: auto;
}

body.dnnEditState .trc-report-modal-panel--document.is-bac-customers,
html:has(#personaBar-iframe) .trc-report-modal-panel--document.is-bac-customers,
html:has(.personaBarContainer) .trc-report-modal-panel--document.is-bac-customers {
    width: calc(100% - 24px);
    max-width: 100%;
}

.trc-report-modal-panel--document.is-bac-customers .trc-report-modal-header {
    padding-right: 0;
}

.trc-report-modal-panel--document.is-bac-customers .trc-report-modal-close {
    width: 46px;
    height: 2.5rem;
    border-radius: 0;
}

.trc-report-modal-panel--document.is-bac-customers .trc-report-modal-close:hover,
.trc-report-modal-panel--document.is-bac-customers .trc-report-modal-close:focus {
    background: #e81123;
    color: #fff;
}

/* Search Customer in GP — host chrome uses GP blue; overrides olive .trc-report-modal-header */
.trc-report-modal-panel--document.is-gp-customer-search,
.trc-report-modal-panel--document[data-gp-customer-search="1"] {
    background: #f2f2f2 !important;
    border-color: #4a6680;
}

.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-header,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-header {
    padding: 0 0 0 0.85rem !important;
    background: linear-gradient(180deg, #7a96b4 0%, #5f7a96 48%, #4a6680 100%) !important;
    border-bottom: 1px solid #3a5168 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-title,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-title {
    color: #ffffff !important;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-close,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-close {
    width: 46px !important;
    height: 2.5rem !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-close:hover,
.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-close:focus,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-close:hover,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-close:focus {
    background: #e81123 !important;
    color: #fff !important;
    outline: none !important;
}

.trc-report-modal-panel--document.is-gp-customer-search .trc-report-modal-frame,
.trc-report-modal-panel--document[data-gp-customer-search="1"] .trc-report-modal-frame {
    background: #f2f2f2 !important;
}

.trc-report-modal-panel--details {
    width: min(520px, 96vw);
    height: min(680px, calc(100vh - 2rem));
    background: #fff;
}

.trc-report-modal-panel--details .trc-report-modal-frame {
    background: #fff;
}

.trc-report-modal-panel--details .trc-report-modal-header {
    padding: 0.33rem 0.85rem;
}

.trc-report-modal-panel--details .trc-report-modal-close {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1rem;
}

.trc-report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: #87986a;
    color: #fff;
    flex-shrink: 0;
}

.trc-report-modal-title {
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.02em;
}

.trc-report-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}

.trc-report-modal-email {
    display: inline-block;
    margin: 0;
    padding: 0.22rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.trc-report-modal-email:hover {
    background: rgba(255, 255, 255, 0.28);
}

.trc-report-modal-email:disabled {
    opacity: 0.65;
    cursor: default;
}

.trc-report-modal-email-status {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 10px;
    color: #f3f5ee;
}

.trc-report-modal-email-status.is-ok {
    color: #e8f2e0;
}

.trc-report-modal-email-status.is-err {
    color: #ffe0e0;
}

.trc-report-modal-close {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

/* Windows-style close — sitewide for TRC report/confirm modals */
.trc-report-modal-close:hover,
.trc-report-modal-close:focus,
.trc-confirm-modal-close:hover,
.trc-confirm-modal-close:focus,
.trc-gp-search-modal-close:hover,
.trc-gp-search-modal-close:focus,
.trc-check-modal-close:hover,
.trc-check-modal-close:focus {
    background: #e81123 !important;
    color: #fff !important;
    outline: none !important;
}

/* Olive confirm dialog (replaces native window.confirm) */
.trc-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.trc-confirm-modal.is-open {
    display: flex;
}

.trc-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 51, 32, 0.45);
}

.trc-confirm-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 32px));
    background: #f8faf4;
    border: 1px solid #87986a;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(35, 42, 26, 0.35);
    overflow: hidden;
    font-family: Verdana, Helvetica, sans-serif;
}

.trc-confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 0 8px 0 14px;
    background: #87986a;
    border-bottom: 1px solid #5a6a44;
}

.trc-confirm-modal-title {
    color: #ffffff;
    font: 400 13px Verdana, Helvetica, sans-serif;
}

.trc-confirm-modal-close {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #f8faf5;
    font: 700 22px/1 Verdana, Helvetica, sans-serif;
    cursor: pointer;
}

.trc-confirm-modal-body {
    padding: 16px 18px;
    font-size: 12px;
    line-height: 1.45;
    color: #2a3320;
}

.trc-confirm-modal-warn {
    display: inline-block;
    margin-top: 8px;
    color: #7a3030;
    font-weight: 700;
}

.trc-confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 16px 16px;
}

.trc-confirm-btn {
    min-width: 88px;
    padding: 6px 14px;
    border-radius: 4px;
    font: 700 11px Verdana, Helvetica, sans-serif;
    cursor: pointer;
    background-image: none;
}

.trc-confirm-btn-cancel {
    color: #3f4d30;
    background: #eef2e6;
    border: 1px solid #87986a;
}

.trc-confirm-btn-cancel:hover {
    background: #e2e9d6;
}

.trc-confirm-btn-danger {
    color: #ffffff;
    background: #a84848;
    background-image: none;
    border: 1px solid #6e2c2c;
}

.trc-confirm-btn-danger:hover {
    background: #b85858;
    background-image: none;
}

.trc-confirm-btn-primary {
    color: #ffffff;
    background: #87986a;
    background-image: none;
    border: 1px solid #6f8055;
}

.trc-confirm-btn-primary:hover {
    background: #6f8055;
    background-image: none;
}

.trc-report-modal-frame {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    border: none;
    background: #f5f6f3;
}

.trc-report-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 0.85rem 1rem 1rem;
    background: #fff;
    text-align: left;
}

.trc-report-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: #eceee6;
    border-top: 1px solid #c5cbb8;
    flex-shrink: 0;
}

.trc-report-modal-footer .trc-report-modal-btn,
.trc-report-modal-btn {
    display: inline-block;
    margin: 0;
    padding: 0.35rem 1rem;
    border: 1px solid #6f8055;
    border-radius: 3px;
    background: #87986a;
    color: #fff;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.trc-report-modal-btn:hover {
    background: #6f8055;
}

.trc-report-modal-btn-back {
    background: #8a6a5a;
    border-color: #6b5044;
}

.trc-report-modal-btn-back:hover {
    background: #6b5044;
}

.trc-report-modal-btn-submit {
    background: #87986a;
    border-color: #6f8055;
}

/* Compact Yes/No confirm (Billing unsaved, OOO success, QSPL GP confirm) */
.trc-report-modal-panel--confirm {
    width: min(420px, 100%);
    height: auto;
    max-height: calc(100vh - 3rem);
}

.trc-report-modal-panel--confirm .trc-report-modal-body {
    padding: 1rem 1.1rem 0.85rem;
    font-family: Verdana, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: #2a3320;
}

/* Soft-pink void / cancelled (GP Inquiry source: #fdeaea) */
:root {
    --trc-void-bg: #fdeaea;
    --trc-void-text: #8a6a6a;
}

/* Beat .aperture-theme .trc-module .datagriditem|altitem !important (portal.css) */
.trc-row-void,
.trc-row-void td,
.trc-module tr.trc-row-void,
.trc-module tr.trc-row-void td,
.trc-module tr.trc-row-void td.datagriditem,
.trc-module tr.trc-row-void td.datagridaltitem,
.trc-module tr.trc-row-void.datagriditem,
.trc-module tr.trc-row-void.datagridaltitem,
.trc-module tr.trc-row-void.datagriditem td,
.trc-module tr.trc-row-void.datagridaltitem td,
.trc-module .datagriditem.trc-row-void,
.trc-module .datagridaltitem.trc-row-void,
.trc-module .datagriditem.trc-row-void td,
.trc-module .datagridaltitem.trc-row-void td,
.aperture-theme .trc-module tr.trc-row-void td,
.aperture-theme .trc-module .datagriditem.trc-row-void,
.aperture-theme .trc-module .datagridaltitem.trc-row-void,
.aperture-theme .trc-module .datagriditem.trc-row-void td,
.aperture-theme .trc-module .datagridaltitem.trc-row-void td {
    background-color: var(--trc-void-bg, #fdeaea) !important;
    background-image: none !important;
    color: var(--trc-void-text, #8a6a6a);
    text-decoration: line-through;
}

/* Pink highlight without strikethrough (e.g. SUPERSEDED) */
.trc-row-void-soft,
.trc-row-void-soft td,
.trc-module tr.trc-row-void-soft,
.trc-module tr.trc-row-void-soft td,
.trc-module tr.trc-row-void-soft td.datagriditem,
.trc-module tr.trc-row-void-soft td.datagridaltitem,
.trc-module tr.trc-row-void-soft.datagriditem,
.trc-module tr.trc-row-void-soft.datagridaltitem,
.trc-module tr.trc-row-void-soft.datagriditem td,
.trc-module tr.trc-row-void-soft.datagridaltitem td,
.trc-module .datagriditem.trc-row-void-soft,
.trc-module .datagridaltitem.trc-row-void-soft,
.trc-module .datagriditem.trc-row-void-soft td,
.trc-module .datagridaltitem.trc-row-void-soft td,
.aperture-theme .trc-module tr.trc-row-void-soft td,
.aperture-theme .trc-module .datagriditem.trc-row-void-soft,
.aperture-theme .trc-module .datagridaltitem.trc-row-void-soft,
.aperture-theme .trc-module .datagriditem.trc-row-void-soft td,
.aperture-theme .trc-module .datagridaltitem.trc-row-void-soft td {
    background-color: var(--trc-void-bg, #fdeaea) !important;
    background-image: none !important;
    color: var(--trc-void-text, #8a6a6a);
}

/* Pill / status label — bg only, no strikethrough */
.trc-status-void,
.trc-status-cancelled {
    background-color: var(--trc-void-bg, #fdeaea) !important;
    color: var(--trc-void-text, #8a6a6a);
}

/* GP Integration customapps: DataGrid puts datagridheader on TR, not TD */
.trc-module.trc-customapps-gp.trc-gp-theme table.Datagrid tr.datagridheader td,
.trc-module.trc-customapps-gp.trc-gp-theme table.datagrid tr.datagridheader td,
.trc-module.trc-customapps-gp.trc-gp-theme tr.datagridheader td {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
    background-color: #4a6680 !important;
    background-image: linear-gradient(180deg, #5f7a96 0%, #4a6680 55%, #3a5168 100%) !important;
    border: 1px solid #3a5168 !important;
}

/* Tools tab: gear (overrides cached portal.css?cdv=) */
.logo-menu-bar #nav-desktop.desktop-menu > li > a[href*="/Tools"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.4 1.4h3.2l.3 1.6a5 5 0 0 1 1.3.8l1.6-.5 1.6 2.8-1.3 1c.1.4.1.7.1 1.1s0 .7-.1 1.1l1.3 1-1.6 2.8-1.6-.5a5 5 0 0 1-1.3.8l-.3 1.6H6.4l-.3-1.6a5 5 0 0 1-1.3-.8l-1.6.5L1.6 10l1.3-1A5 5 0 0 1 2.8 8c0-.4 0-.7.1-1.1l-1.3-1 1.6-2.8 1.6.5a5 5 0 0 1 1.3-.8l.3-1.6zM8 5.6A2.4 2.4 0 1 0 8 10.4 2.4 2.4 0 0 0 8 5.6z'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.4 1.4h3.2l.3 1.6a5 5 0 0 1 1.3.8l1.6-.5 1.6 2.8-1.3 1c.1.4.1.7.1 1.1s0 .7-.1 1.1l1.3 1-1.6 2.8-1.6-.5a5 5 0 0 1-1.3.8l-.3 1.6H6.4l-.3-1.6a5 5 0 0 1-1.3-.8l-1.6.5L1.6 10l1.3-1A5 5 0 0 1 2.8 8c0-.4 0-.7.1-1.1l-1.3-1 1.6-2.8 1.6.5a5 5 0 0 1 1.3-.8l.3-1.6zM8 5.6A2.4 2.4 0 1 0 8 10.4 2.4 2.4 0 0 0 8 5.6z'/%3E%3C/svg%3E") !important;
}

/* Merge/Split PDFs: red PDF file icon */
.logo-menu-bar #nav-desktop.desktop-menu a[href*="/Merge-Split"]::before,
.logo-menu-bar #nav-desktop.desktop-menu a[href*="/MergeSplit"]::before {
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23E5252A' d='M2.85 1.05h6.4L13.15 5.15v9.8H2.85z'/%3E%3Cpath fill='%23B71C1C' d='M9.25 1.05v4.1h3.9'/%3E%3Cpath fill='%23fff' d='M3.95 8.45h1.62c.82 0 1.35.44 1.35 1.1 0 .54-.34.94-.88 1.06l1.02 1.78H6.1L5.22 11H4.7v1.4H3.95zm.72.55v1.02h.82c.34 0 .56-.18.56-.52s-.22-.5-.56-.5zM8.15 8.45h1.38c1.08 0 1.78.66 1.78 1.7s-.7 1.7-1.78 1.7H8.15zm.72.55v2.3h.66c.62 0 1.05-.44 1.05-1.15s-.43-1.15-1.05-1.15zM12.15 8.45h2.12v.6h-1.4v.78h1.22v.55h-1.22v1.37h-.72z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1 !important;
}
