﻿html {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color-scheme: light;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background-image: url(../images/wl-header-centered-01.jpg);
    background-repeat: repeat-x;
    background-color: #fff;
}

.pcm-startup {
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 20px;
    color: #003366;
    text-align: center;
}

.pcm-auth-loading {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #fff url(../images/wl-header-centered-01.jpg) repeat-x top;
}

.pcm-startup-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.pcm-startup-title {
    font-size: 20px;
    font-weight: 400;
}

.pcm-startup-spinner {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 3px solid #e9ecef;
    border-top-color: #337ab7;
    border-radius: 50%;
    animation: pcm-startup-spin 1s linear infinite;
}

@keyframes pcm-startup-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pcm-startup-spinner { animation: none; }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--colorPaletteGreenBorderActive);
}

.invalid {
    outline: 1px solid var(--colorPaletteRedBorderActive);
}

.validation-message {
    color: var(--colorPaletteRedForeground1);
}

.page-title {
    margin: 0 0 8px;
    color: #003366;
    font-size: 20px;
    font-weight: 400;
}

#blazor-error-ui {
    background: var(--colorPaletteYellowBackground2);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
.pcm-status-success {
    color: green;
    font-weight: 600;
}

.pcm-status-error {
    color: red;
}

.pcm-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pcm-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 4px;
    color: #003366;
    text-decoration: none;
}

.pcm-nav a.active {
    background: #337ab7;
    color: #fff;
    font-weight: 600;
}

.pcm-nav a:hover:not(.active) {
    background: #fff;
    color: #696969;
}

.pcm-nav hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid rgba(0, 51, 102, .15);
}

.pcm-salesrep-page {
    --colorBrandBackground: #337ab7;
    --colorBrandBackgroundHover: #286090;
    --colorBrandBackgroundPressed: #204d74;
    --colorBrandBackgroundDisabled: #66b5ff;
    --colorNeutralForegroundDisabled: #fff;
    color: #003366;
}

.pcm-salesrep-page .page-title {
    line-height: 24px;
}

.pcm-rep-grid {
    display: grid;
    grid-template-columns: 190px repeat(6, minmax(0, 1fr));
    width: min(100%, calc(190px + 50%));
    align-items: center;
    row-gap: 16px;
}

.pcm-field-label {
    min-width: 0;
    padding-right: 15px;
    text-align: right;
    font-size: 14px;
}

.pcm-form-control {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font: inherit;
}

.pcm-form-control[readonly] {
    background: #e9ecef;
}

.pcm-form-control.pcm-status-success {
    color: green;
}

.pcm-form-control.pcm-status-error {
    color: red;
}

.pcm-salesrep-page #rep-pin-status,
.pcm-salesrep-page #validation-status,
.pcm-salesrep-page .pcm-lock-row .pcm-status-error {
    font-weight: 700;
}

.pcm-form-control:focus {
    border-color: #80bdff;
    outline: 2px solid #337ab7;
    outline-offset: 1px;
}

.pcm-two-columns { grid-column: span 2; }
.pcm-three-columns { grid-column: span 3; }
.pcm-four-columns { grid-column: span 4; }
.pcm-six-columns { grid-column: span 6; }
.pcm-offset-fields { grid-column: 2 / -1; min-width: 0; }

.pcm-action {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    border-radius: 4px;
    font-size: 16px;
    white-space: normal;
}

.pcm-salesrep-page .pcm-action[disabled] {
    background-color: #66b5ff;
    border-color: #66b5ff;
    color: #fff;
    opacity: 1;
}

.pcm-lookup-row { margin-bottom: 16px; }
.pcm-details-grid { margin-bottom: 24px; }
.pcm-status-controls { margin-bottom: 20px; row-gap: 24px; }
.pcm-clear-action { grid-column: 2 / span 2; }
.pcm-last-action { grid-column: 6 / span 2; }

.pcm-lock-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 15px;
}

.pcm-lock-row .pcm-status-success,
.pcm-lock-row .pcm-status-error {
    margin-left: auto;
    text-align: right;
}

.pcm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.pcm-checkbox-label input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #337ab7;
}

.pcm-checkbox-label:has(input:disabled),
.pcm-verify-lock-label {
    color: #6c757d;
}

.pcm-verify-lock-label { max-width: 280px; }
.pcm-section-divider { width: min(100%, 800px); margin: 16px 0; border: 0; border-top: 1px solid #dee2e6; }
.pcm-validation-status { margin-top: 16px; }
.pcm-create-action { margin-top: 16px; }
.pcm-address-section { margin-top: 52px; }
.pcm-section-heading { font-size: 18px; font-weight: 400; margin: 0 0 8px; }
.pcm-address-grid-scroll { overflow-x: auto; }
.pcm-address-section table.pcm-data-grid { width: 100%; min-width: 480px; font-size: 14px; }
.pcm-address-section .pcm-data-grid th { padding: 0; background: #e9ecef; font-weight: 400; }
.pcm-address-section .pcm-data-grid th [col-title] { min-width: 0; padding: 0; }
.pcm-address-heading {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #003366;
    font: inherit;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.pcm-sort-indicator {
    display: inline-flex;
    align-items: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.pcm-address-heading:focus-visible { outline: 2px solid #337ab7; outline-offset: 2px; }
.pcm-address-section .pcm-data-grid td { padding: 8px 10px; border: 1px solid #dee2e6; }

.pcm-ivr-page { max-width: 900px; color: #003366; }
.pcm-ivr-page .page-title { line-height: 24px; }
.pcm-ivr-add { margin-bottom: 10px; min-height: 38px; padding: 6px 12px; }
.pcm-ivr-grid-scroll { overflow-x: auto; }
.pcm-ivr-grid-scroll:has(details[open]) { min-height: 180px; }
.pcm-ivr-page table.pcm-data-grid { width: 100%; min-width: 900px; font-size: 14px; }
.pcm-ivr-page .pcm-data-grid th { padding: 0; background: #e9ecef; font-weight: 400; }
.pcm-ivr-page .pcm-data-grid th [col-title] { min-width: 0; padding: 0; width: 100%; }
.pcm-ivr-page .pcm-data-grid th [col-title-text] { width: 100%; overflow: visible; font-weight: 400; }
.pcm-ivr-page .pcm-data-grid td { padding: 8px 10px; border: 1px solid #dee2e6; }
.pcm-ivr-page .pcm-data-grid th:last-child [col-title-text] { font-size: 11px; text-transform: uppercase; }
.pcm-ivr-column-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcm-ivr-actions { display: flex; align-items: center; gap: 4px; }
.pcm-ivr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 8px;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font: inherit;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
}
.pcm-ivr-primary { background: #337ab7; }
.pcm-ivr-success { background: #28a745; }
.pcm-ivr-danger { background: #dc3545; }
.pcm-ivr-warning { background: #ffc107; color: #212529; }
.pcm-ivr-button:hover:not(:disabled) { filter: brightness(.9); }
.pcm-ivr-button:disabled { opacity: .65; cursor: default; }
.pcm-ivr-button:focus-visible { outline: 2px solid #003366; outline-offset: 2px; }
.pcm-ivr-rep-input { height: 36px; }
.pcm-ivr-filter { position: relative; flex: 0 0 20px; }
.pcm-ivr-filter summary { display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.pcm-ivr-filter summary::-webkit-details-marker { display: none; }
.pcm-ivr-filter summary:focus-visible { outline: 2px solid #337ab7; }
.pcm-ivr-filter-menu {
    position: absolute;
    top: 24px;
    right: 0;
    z-index: 10;
    display: grid;
    gap: 8px;
    width: 220px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    font-size: 14px;
    text-transform: none;
}

.pcm-create-pin {
    color: #003366;
}
.pcm-create-pin:not(.pcm-create-pin-dialog) {
    width: min(100%, 520px);
}
.pcm-create-pin:not(.pcm-create-pin-dialog) .pcm-pin-dialog-grid {
    grid-template-columns: 190px minmax(0, 1fr);
}
.pcm-create-pin-dialog {
    box-sizing: border-box;
    width: min(438px, calc(100vw - 40px));
    max-width: 100%;
    padding: 16px 8px 30px 20px;
}
.pcm-create-pin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    margin: 0 0 14px;
}
.pcm-create-pin-header h2 {
    margin: 0;
    color: #555;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}
.pcm-create-pin-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
}
.pcm-create-pin-close:hover { color: #000; }
.pcm-create-pin-close:focus-visible { outline: 2px solid #337ab7; }
.pcm-pin-dialog-form + .pcm-pin-dialog-form { margin-top: 12px; }
.pcm-pin-dialog-grid {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    max-width: 520px;
    align-items: center;
    gap: 10px 8px;
}
.pcm-create-pin-dialog .pcm-pin-dialog-grid {
    grid-template-columns: 146px minmax(0, 250px);
    max-width: none;
}
.pcm-pin-dialog-grid > label {
    margin: 0;
    padding-right: 4px;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
}
.pcm-pin-dialog-input {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font: inherit;
    font-size: 14px;
}
.pcm-create-pin-dialog .pcm-pin-dialog-input {
    max-width: 250px;
    height: 32px;
    padding: 4px 8px;
}
.pcm-pin-dialog-input[readonly],
.pcm-pin-dialog-input:disabled { background: #e9ecef; }
.pcm-pin-dialog-input:focus { border-color: #80bdff; outline: 2px solid #337ab7; outline-offset: 1px; }
.pcm-pin-dialog-grid .validation-message,
.pcm-pin-dialog-grid .validation-summary,
.pcm-pin-dialog-grid fluent-validation-summary,
.pcm-pin-dialog-grid fluent-message-bar,
.pcm-server-validation-errors { grid-column: 1 / -1; }
.pcm-server-validation-errors p { margin: 0; color: red; font-size: 14px; }
.pcm-pin-validation-errors { margin-top: 16px; }
.pcm-pin-validation-errors .validation-errors {
    margin: 0;
    padding: 0;
    list-style: none;
    color: red;
    font-size: 14px;
    overflow-wrap: anywhere;
}
fluent-toast-b[intent="success"] { --success: #fff; }
fluent-toast-b[intent="error"] { --error: #fff; }
fluent-toast-b[intent="info"] { --info: #fff; }
fluent-toast-b[intent="warning"] { --warning: #fff; }
fluent-toast-b[intent="success"]::part(dialog) { background: #5fba7d; }
fluent-toast-b[intent="error"]::part(dialog) { background: #ba5e5e; }
fluent-toast-b[intent="info"]::part(dialog) { background: #34a9ad; }
fluent-toast-b[intent="warning"]::part(dialog) { background: #c1c13e; }
fluent-toast-b[intent="success"]::part(dialog),
fluent-toast-b[intent="error"]::part(dialog),
fluent-toast-b[intent="info"]::part(dialog),
fluent-toast-b[intent="warning"]::part(dialog) {
    min-height: 80px;
    padding: 6px 16px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
fluent-toast-b[intent="success"] [slot="media"],
fluent-toast-b[intent="error"] [slot="media"],
fluent-toast-b[intent="info"] [slot="media"],
fluent-toast-b[intent="warning"] [slot="media"] {
    color: #fff;
    font-size: 40px;
    position: relative;
    top: 12px;
}
fluent-toast-b[intent="success"] [slot="title"],
fluent-toast-b[intent="error"] [slot="title"],
fluent-toast-b[intent="info"] [slot="title"],
fluent-toast-b[intent="warning"] [slot="title"] {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}
fluent-toast-b[intent="success"] [id$="-body"],
fluent-toast-b[intent="error"] [id$="-body"],
fluent-toast-b[intent="info"] [id$="-body"],
fluent-toast-b[intent="warning"] [id$="-body"] { color: #fff; font-size: 16px; position: relative; top: -6px; }
fluent-toast-b[intent="success"] fluent-button[slot="action"],
fluent-toast-b[intent="error"] fluent-button[slot="action"],
fluent-toast-b[intent="info"] fluent-button[slot="action"],
fluent-toast-b[intent="warning"] fluent-button[slot="action"] { color: #fff; }
.pcm-pin-dialog-verify { justify-self: end; min-width: 170px; }
.pcm-create-pin-dialog .pcm-pin-dialog-verify { justify-self: start; }
.pcm-pin-dialog-submit-row { display: flex; justify-content: flex-end; }
.pcm-pin-entry-grid { margin-top: 12px; }

@media (max-width: 1100px) {
    .pcm-rep-grid { width: 100%; grid-template-columns: 170px repeat(6, minmax(0, 1fr)); }
    .pcm-action { font-size: 14px; }
}

@media (max-width: 640px) {
    .pcm-rep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
    .pcm-field-label { grid-column: 1 / -1; text-align: left; padding: 0; margin-top: 8px; }
    .pcm-offset-fields { grid-column: 1 / -1; }
    .pcm-clear-action { grid-column: 1 / span 2; }
    .pcm-last-action { grid-column: 5 / span 2; }
    .pcm-lock-row { padding-left: 0; }
    .pcm-create-pin-dialog { padding: 12px; }
    .pcm-create-pin-header { margin-bottom: 10px; }
    .pcm-pin-dialog-grid { grid-template-columns: 1fr; max-width: none; gap: 6px; }
    .pcm-pin-dialog-grid > label { text-align: left; white-space: normal; }
    .pcm-pin-dialog-input { max-width: 100%; }
    .pcm-pin-dialog-grid > span { display: none; }
    .pcm-pin-dialog-verify,
    .pcm-pin-dialog-submit-row,
    .pcm-pin-dialog-grid .validation-message,
    .pcm-pin-dialog-grid .validation-summary,
    .pcm-pin-dialog-grid fluent-validation-summary,
    .pcm-pin-dialog-grid fluent-message-bar,
    .pcm-server-validation-errors { grid-column: 1; }
    .pcm-create-pin:not(.pcm-create-pin-dialog) .pcm-pin-dialog-grid,
    .pcm-create-pin-dialog .pcm-pin-dialog-grid { grid-template-columns: 1fr; max-width: none; }
    .pcm-create-pin:not(.pcm-create-pin-dialog) .pcm-pin-dialog-grid > label,
    .pcm-create-pin-dialog .pcm-pin-dialog-grid > label { text-align: left; white-space: normal; }
    .pcm-create-pin:not(.pcm-create-pin-dialog) .pcm-pin-dialog-grid > span,
    .pcm-create-pin-dialog .pcm-pin-dialog-grid > span { display: none; }
    .pcm-create-pin-dialog .pcm-pin-dialog-input { max-width: 100%; }
    .pcm-create-pin:not(.pcm-create-pin-dialog) .pcm-pin-dialog-verify { justify-self: start; }
}