@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.15) !important;
}

.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.15) !important;
    background-color: #fff8f8 !important;
}

.validation-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.validation-message::before {
    content: "⚠";
    font-size: 0.75rem;
    flex-shrink: 0;
}

#blazor-error-ui {
    background: lightyellow;
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0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NjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.sidebar {
    background-image: linear-gradient(180deg, rgb(31, 57, 95) 0%, #647AA0 70%) !important;
}

/* ****************    CUSTOM CSS *****************/

table {
    font-size:0.9em;
}

.pageNums {
    padding:5px;
    background-color: #e5e5e5;
}
textarea {
    resize: both;
}

.mmToolTip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

    .mmToolTip .mmToolTipText {
        visibility: hidden;
        width: 300px;
        background-color: #c4c4c4;
        color: #000;
        text-align: left;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        top: 115%;
        left: 0;
        margin-left: 0px;
    }

    /* .mmToolTip .mmToolTipText::after {
            content: "";
            position: absolute;
            bottom: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent black transparent;
        }*/

    .mmToolTip:hover .mmToolTipText {
        visibility: visible;
    }

.noteItemContainer {
    margin: 5px;
    padding: 5px;
    border: 2px solid #000;
}

.claimStatus {
    display: inline-block;
    padding: 0.35em 0.75em;
    border-radius: 4px;
    border: 1px solid #c0c0c0;
    background: #f5f5f5;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.02em;
}

.searchIcon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-size: cover;
    vertical-align: bottom;
    margin-right: 10px;
}

.searchResLink {
    display: inline-block;
    vertical-align: bottom;
}

.PolicyHolderIcon {
    background-image: url(/imgs/PolicyHolderIcon.png);
}

.ClaimCaseIcon {
    background-image: url(/imgs/CaseIcon.png);
}

.ComplaintCaseIcon {
    background-image: url(/imgs/ComplaintCaseIcon.png);
}

.ClientContactIcon {
    background-image: url(/imgs/ClientContactIcon.png);
}


@media (min-width: 641px) {
    main .top-row {
        background: url(https://www.jcpjewelleryclaims.co.uk/images/top-menu.png);
    }

    .top-row {
        height: 6rem !important;
    }

        .top-row .companyTitle {
            text-align: left;
            width: 100%;
            color: #fff;
            font-size: 2rem;
        }

        .top-row a:link, .top-row a:visited {
            color: #fff;
            text-decoration: none;
        }

    .btnMainLogin {
        border: 2px solid #566E96;
        background-color: #647AA0;
        color: #fff;
        font-weight:800;
        text-decoration: none;
    }
}

/* Removed: old dark-sidebar rule that forced white on btn-link/nav-link.
   The new cp-sidebar uses cp-nav-item (not nav-link) and the topbar is light. */

/* Response Template Styling */

/*.signDiv {
    margin-top: 20px;
}

.compLinks {
    margin-top: 20px;
    font-size: 10pt;
}

.headerImg {*/
/*width: 50%;*/
/*}

.headTable, .mainContentTable {
    display: table;
    width: 100%;
}

.headTable {
    margin-bottom: 20px;
}

.headTableRow, .mainContentTableRow {
    display: table-row;
}

.headTableCell, .mainContentTableCell {
    display: table-cell;
    width: 50%;
}

.headTableCell100 {
    display: table-cell;
    width: 100%;
}

.alignRight {
    text-align: right;
}

.alignCenter {
    text-align: center;
}

.quotationTable {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}

    .quotationTable td, .quotationTable th {
        border: 1px solid #000;
    }

    .quotationTable td {
        padding-left: 10px;
    }*/

/* END Response Template Styling */


/* ===== DASHBOARD ===== */

.dash-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.dash-stat-icon {
    font-size: 2.5rem;
    opacity: 0.15;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    width: calc(100vw - 3rem);
    pointer-events: none;
}

.toast-item {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-left: 4px solid #ccc;
    overflow: hidden;
    pointer-events: all;
    animation: toast-in 0.25s ease;
}

@keyframes toast-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.toast-item.toast-success { border-left-color: #28a745; }
.toast-item.toast-error   { border-left-color: #dc3545; }
.toast-item.toast-warning { border-left-color: #ffc107; }
.toast-item.toast-info    { border-left-color: #17a2b8; }

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.toast-icon {
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toast-item.toast-success .toast-icon { color: #28a745; }
.toast-item.toast-error   .toast-icon { color: #dc3545; }
.toast-item.toast-warning .toast-icon { color: #e6a800; }
.toast-item.toast-info    .toast-icon { color: #17a2b8; }

.toast-title {
    flex: 1;
    font-size: 0.875rem;
    color: #222;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #888;
    padding: 0;
    min-width: auto;
    margin: 0;
}

.toast-close:hover { color: #333; }

.toast-body {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.4;
}

/* ===== TYPEAHEAD ===== */

.typeahead-wrapper {
    position: relative;
}

.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 420px;
}

.typeahead-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f0f0;
    color: #1f2937;
}

.typeahead-item:last-child {
    border-bottom: none;
}

.typeahead-item:hover {
    background-color: #f0faf5;
    color: #00875b;
}

.typeahead-hint {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    color: #999;
    font-style: italic;
}

.typeahead-selected {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #00875b;
    font-weight: 500;
}

/* ===== NAV SUB-MENU ===== */

.nav-subnav {
    padding-left: 1rem;
    margin-top: 0.25rem;
    border-left: 2px solid rgba(255,255,255,0.15);
    margin-left: 1rem;
}

.nav-subnav .nav-link {
    font-size: 0.82rem !important;
    height: 2.5rem !important;
    color: rgba(215,215,215,0.85) !important;
    padding-left: 0.5rem !important;
}

.nav-subnav .nav-link:hover {
    color: #fff !important;
}

.nav-settings-toggle {
    cursor: pointer;
}

/* ===== FORM SECTION CARDS ===== */

.form-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.form-section-title {
    font-size: 0.775rem;
    font-weight: 700;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-section-title .oi {
    color: #00875b;
    font-size: 0.85rem;
    width: 1.2rem;
}

/* Required field asterisk */
.field-required {
    color: #dc3545;
    font-weight: 700;
    margin-left: 0.2rem;
    font-size: 0.8rem;
    vertical-align: super;
    line-height: 1;
}

/* Submit button loading state */
.btn-saving {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== VALIDATION ALERT BOX ===== */

.validation-alert {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 0.85rem 1rem 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.validation-alert-header {
    font-weight: 600;
    color: #c53030;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.validation-alert .validation-errors {
    margin: 0;
    padding-left: 1.4rem;
    color: #742a2a;
    font-size: 0.8125rem;
}

.validation-alert .validation-errors li {
    margin-bottom: 0.2rem;
}

/* ****************  END CUSTOM CSS *****************/




/* ****************  IDENTITY ACCOUNT PAGES  *****************
   Pages under Areas/Identity render through the _Layout shim,
   which wraps them in .identity-account inside the Sapphire shell. */

.identity-account {
    background: var(--cp-bg-primary);
    border: 0.5px solid var(--cp-border-subtle);
    border-radius: var(--cp-radius-lg);
    padding: 24px;
    max-width: 980px;
}

.identity-account h1 {
    font-family: var(--cp-font-sora);
    font-size: 22px;
    font-weight: 600;
    color: var(--cp-text-primary);
    margin-bottom: 2px;
}

.identity-account h2 {
    font-size: 14px;
    font-weight: 400;
    color: var(--cp-text-secondary);
    margin-bottom: 0;
}

.identity-account h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cp-text-primary);
    margin-bottom: 14px;
}

.identity-account hr {
    border-color: var(--cp-border-subtle);
    opacity: 1;
    margin: 14px 0 20px;
}

/* Manage-account side nav — mirrors .cp-nav-item from claimspro.css */
.manage-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--cp-radius-md);
    font-size: 13px;
    color: var(--cp-text-secondary);
}

.manage-nav .nav-link:hover {
    background: var(--cp-bg-secondary);
    color: var(--cp-text-primary);
}

.nav-pills.manage-nav .nav-link.active {
    background: var(--cp-blue-50);
    color: var(--cp-blue-600);
    font-weight: 500;
}

.manage-nav .nav-link .oi {
    font-size: 13px;
    flex-shrink: 0;
}
