﻿#processing-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
    color: white;
}

    #processing-indicator p {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
    }

.yes-confirmation {
    border-color: #ccc;
    border-style: solid;
    border-width: 1px;
}

.no-confirmation {
    color: #000;
    background-color: #fff;
    border-color: #ccc;
    border-style: solid;
    border-width: 1px;
}

    .no-confirmation:hover {
        border-color: #fff;
        background-color: #c6c6c6;
    }

.dialog-description {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.dialog-timer {
    font-size: 1.4em;
    color: red;
    text-align: center;
    margin-bottom: 1.5em;
}

    .dialog-timer span {
        font-weight: bold;
    }

.timer-display {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    color: white;
    border-radius: 5px;
    display: none;
}

.custom-dialog-title {
    background-color: #4086af !important;
    color: #ffffff !important;
}

.custom-dialog-button {
    background-color: #2f6fad !important;
    color: #ffffff !important;
}

    .custom-dialog-button:hover {
        background-color: #245f9a; /* This is a slightly darker shade for hover effect */
    }

.icon-blue {
    color: #2c7be5;
}

.icon-yellow {
    color: #f0ad4e;
}

.icon-green {
    color: #28a745;
}

.icon-red {
    color: #dc3545;
}

.dashboard-stat-card {
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* OPEN (blue) */

.dashboard-stat-card.stat-open {
    background: #f3f8ff;
    border-color: #dbeafe;
}

/* PENDING (yellow) */

.dashboard-stat-card.stat-pending {
    background: #fff9e6;
    border-color: #ffe58f;
}

/* COMPLETED (green) */

.dashboard-stat-card.stat-completed {
    background: #f1fbf4;
    border-color: #cdeed7;
}

/* RECORDS (red) */

.dashboard-stat-card.stat-records {
    background: #fff3f3;
    border-color: #ffd6d6;
}

nav ul li a.fa-nav-link {
    background-image: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: #ffffff;
    border-left: 3px solid transparent;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

nav ul li a.fa-nav-link i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    margin-right: 0;
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.18s ease;
}

nav ul li a.fa-nav-link:hover,
nav ul li a.fa-nav-link:focus,
nav ul li a.fa-nav-link.is-active {
    color: #2ac7b8;
    background-color: rgba(42, 199, 184, 0.14);
    border-left-color: #2ac7b8;
    text-decoration: none;
}

nav ul li a.fa-nav-link:hover i,
nav ul li a.fa-nav-link:focus i,
nav ul li a.fa-nav-link.is-active i {
    color: #2ac7b8;
}

.dashboard-primary-action.button {
    background: transparent;
    color: #2f6fad;
    border: 1px solid #2f6fad;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(31, 42, 55, 0.10);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-primary-action.button:hover,
.dashboard-primary-action.button:focus {
    background: rgba(47, 111, 173, 0.80);
    color: #ffffff;
    border-color: rgba(47, 111, 173, 0.80);
    box-shadow: 0 1px 4px rgba(31, 42, 55, 0.08);
}

.dashboard-primary-action.button i {
    color: currentColor;
    font-size: 0.92rem;
    margin-right: 4px;
    line-height: 1;
}

.dashboard-secondary-action.button {
    background: #eef3f8;
    color: #2d4052;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
}

.dashboard-secondary-action.button:hover,
.dashboard-secondary-action.button:focus {
    background: #dfe8f2;
    color: #233141;
}

.account-form-shell {
    padding: 0 16px 16px;
}

.account-form-grid {
    width: 100%;
    max-width: 100%;
}

.account-form-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #f1c0c0;
    border-radius: 8px;
    background: #fff5f5;
    color: #a94442;
}

.account-form-alert .validation-list {
    margin: 6px 0 0;
}

.account-form-group {
    margin-bottom: 16px;
}

.account-form-group:last-of-type {
    margin-bottom: 20px;
}

.account-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

.account-form-input {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #27384a;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.account-form-input:focus {
    border-color: #2f6fad;
    box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.12);
    outline: none;
}

.account-form-actions {
    margin-top: 4px;
}

.account-form-actions .button {
    width: 100%;
    justify-content: center;
}

@media screen and (min-width: 640px) {
    .account-form-shell {
        padding: 0 20px 20px;
    }

    .account-form-grid {
        max-width: 32rem;
    }

    .account-form-actions .button {
        width: auto;
    }
}

@media screen and (min-width: 1024px) {
    .account-form-grid {
        max-width: 30rem;
    }
}

@media screen and (max-width: 768px) {
    .dashboard-primary-action.button.tiny {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .dashboard-secondary-action.button.tiny {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

.mobile-nav-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #2ac7b8;
}

.mobile-nav-toggle i {
    font-size: 1.15rem;
    line-height: 1;
}

.site-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(16, 24, 40, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

body {
    padding: 0;
}

.nav-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand-row img {
    display: block;
    width: 116px;
    max-width: 100%;
    height: auto;
}

.site-nav {
    z-index: 1100;
    width: min(86vw, 320px);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.26);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-nav .nav-header {
    flex-shrink: 0;
}

.nav-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 24px;
}

.nav-scroll-body::-webkit-scrollbar,
.site-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

nav ul li.has-submenu > a.nav-submenu-toggle {
    position: static;
}

nav ul li.has-submenu.is-open > ul.sub-item {
    max-height: none;
}

main {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    box-sizing: border-box;
}

header {
    left: 0;
    width: 100%;
    height: 64px;
}

header .row.collapse {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 12px;
}

header .site-title {
    flex: 1 1 auto;
    margin-top: 0;
    padding-right: 0;
    min-width: 0;
}

header .site-title .row,
header .site-title .col {
    margin: 0;
    padding: 0;
}

header .site-title span {
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

header .logo {
    position: static;
    flex: 0 0 88px;
    width: 88px;
    height: 44px;
    background-color: transparent;
    background-size: contain;
    background-position: right center;
}

#contentMain {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    padding-top: 5.5rem;
    box-sizing: border-box;
}

body.nav-is-open {
    overflow: hidden;
}

body.nav-is-open .site-nav {
    transform: translateX(0);
}

body.nav-is-open .site-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (min-width: 64em) {
    .mobile-nav-toggle,
    .site-nav-overlay {
        display: none;
    }

    .site-nav {
        width: 173px;
        transform: none;
        box-shadow: none;
    }

    .nav-brand-row {
        display: block;
        padding: 0;
        border-bottom: 0;
    }

    .nav-brand-row img {
        width: auto;
        max-width: 100%;
    }

    .nav-scroll-body {
        padding-bottom: 60px;
    }

    nav ul li.has-submenu > a.nav-submenu-toggle {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #324660;
    }

    main {
        width: auto;
        margin-left: 173px;
        padding-left: 0;
    }

    header {
        left: 173px;
        right: 0;
        width: auto;
        height: 55px;
    }

    header .row.collapse {
        display: block;
        min-height: 0;
        padding: 0;
    }

    header .site-title {
        margin-top: 15px;
        padding-right: 10.25rem;
    }

    header .site-title span {
        font-size: inherit;
        line-height: inherit;
        letter-spacing: normal;
    }

    header .logo {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 149px;
        height: 100%;
        background: #fff url("../images/app-logo.jpg") no-repeat left 50%;
    }

    #contentMain {
        width: 100%;
        max-width: 100%;
        padding: 1.875rem;
        padding-top: 5.3125rem;
    }

    body.nav-is-open {
        overflow: auto;
    }
}

.copy-text-container {
    --copy-feedback-bg: #0f2f4d;
    --copy-feedback-color: #ffffff;
    --copy-feedback-error-bg: #7d1c1c;
    --copy-trigger-bg: #eef3f8;
    --copy-trigger-bg-hover: #dfe8f2;
    --copy-trigger-color: #41566f;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-text-link {
    display: inline-block;
}

.copy-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 0;
    background: var(--copy-trigger-bg);
    color: var(--copy-trigger-color);
    cursor: pointer;
    padding: 0;
    margin: 0 !important;
    transition: background-color 0.16s ease, transform 0.16s ease, color 0.16s ease;
}

    .copy-text-button:hover,
    .copy-text-button:focus {
        background: var(--copy-trigger-bg-hover);
        color: #2f4359;
        transform: translateY(-1px);
    }

    .copy-text-button:focus {
        outline: 2px solid #7cb5e5;
        outline-offset: 1px;
    }

    .copy-text-button i {
        line-height: 1;
        font-size: 0.74rem;
    }

.copy-text-feedback {
    position: absolute;
    right: -4px;
    top: calc(100% + 6px);
    transform: translateY(-4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    z-index: 40;
    background: var(--copy-feedback-bg);
    color: var(--copy-feedback-color);
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 7px 10px;
    box-shadow: 0 10px 20px rgba(17, 31, 46, 0.18);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

    .copy-text-feedback:before {
        content: "";
        position: absolute;
        top: -4px;
        right: 14px;
        width: 8px;
        height: 8px;
        transform: rotate(45deg);
        background: inherit;
    }

    .copy-text-feedback.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0s;
    }

    .copy-text-feedback.is-error {
        background: var(--copy-feedback-error-bg);
    }

.cart-page-alert {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #f1c0c0;
    border-radius: 8px;
    background: #fff5f5;
    color: #a94442;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-table-modern .cart-item-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.cart-item-actions {
    text-align: center;
}

.cart-remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid #f5c2c2;
    background: #fff5f5;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cart-remove-link:hover,
.cart-remove-link:focus {
    background: #ffe6e6;
    border-color: #ef9a9a;
}

.cart-summary-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px 20px;
}

.cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.cart-summary-label {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.cart-summary-value {
    font-size: 1.2rem;
    color: #0f172a;
}

.cart-summary-actions .button {
    width: 100%;
    justify-content: center;
}

.cart-payment-form.is-hidden-on-load {
    display: none;
}

.cart-payment-content {
    padding: 0 16px 16px;
}

.cart-terms {
    margin-top: 14px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cart-terms-warning {
    color: #b42318;
}

.cart-agreement-row {
    margin-top: 14px;
}

.cart-submit-row {
    margin-top: 14px;
}

.cart-submit-row .button {
    width: 100%;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .cart-table-modern thead {
        display: none;
    }

    .cart-table-modern,
    .cart-table-modern tbody,
    .cart-table-modern tr,
    .cart-table-modern td {
        display: block;
        width: 100%;
    }

    .cart-table-modern tr {
        border: 1px solid #dbe3ec;
        border-radius: 8px;
        margin-bottom: 10px;
        background: #ffffff;
        padding: 10px 12px;
    }

    .cart-table-modern td {
        border: 0;
        padding: 6px 0;
    }

    .cart-table-modern td[data-label]:before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #64748b;
        margin-bottom: 3px;
    }

    .cart-item-actions {
        text-align: left;
    }
}

@media screen and (min-width: 641px) {
    .cart-summary-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cart-summary-total {
        justify-content: flex-start;
        gap: 16px;
    }

    .cart-summary-actions .button,
    .cart-submit-row .button {
        width: auto;
    }

    .cart-payment-content {
        padding: 0 20px 20px;
    }
}

.payment-shell {
    display: block;
}

.payment-method-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    background: #f8fbff;
}

.payment-method-title {
    display: inline-block;
    margin-right: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.payment-method-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 600;
    color: #334155;
}

.payment-card {
    border: 1px solid #dde5ee;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 14px;
}

.payment-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5ebf2;
    background: #f7fafc;
}

.payment-card-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.payment-card-header p {
    margin: 6px 0 0;
    color: #526174;
    font-size: 0.88rem;
}

.payment-card-header--secondary {
    border-top: 1px solid #e5ebf2;
}

.payment-card-body {
    padding: 14px 16px;
}

.payment-card-body .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* GENERIC FORM CONTROL STYLES (applies to any .form-control) */
.form-control,
.form-control select,
.payment-control,
.payment-select-wrap select {
    display: block;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #27384a;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Override margins for form controls in card/container contexts */
.payment-card-body input.payment-control,
.payment-card-body select.payment-control,
.payment-card-body .payment-select-wrap select,
.form-body input.form-control,
.form-body select.form-control {
    margin-bottom: 0 !important;
}

.payment-select-wrap select {
    padding-right: 28px;
}

.form-control:focus,
.form-control select:focus,
.payment-control:focus,
.payment-select-wrap select:focus {
    border-color: #2f6fad;
    box-shadow: 0 0 0 3px rgba(47, 111, 173, 0.12);
    outline: none;
}

.payment-field {
    margin-bottom: 12px;
}

/* GENERIC REQUIRED FIELD INDICATION */
.required-note,
.payment-required-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: #556577;
}

.required-mark,
.payment-required-mark {
    color: #d33d3d;
    font-weight: 700;
    line-height: 1;
}

/* GENERIC FORM LABELS */
.form-field > label,
.payment-shell .payment-field > label,
.payment-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
}

.form-label.required,
.form-field > label.required,
.payment-shell .payment-field > label.required,
.payment-label.required {
    color: #1f2f40;
    font-weight: 600;
}

/* GENERIC VALIDATION SUMMARY */
.validation-summary,
.payment-validation-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #f3c4c4;
    border-radius: 10px;
    background: #fff8f8;
    color: #7f1d1d;
}

.validation-summary.is-hidden,
.payment-validation-summary.is-hidden {
    display: none;
}

.validation-summary i,
.payment-validation-summary i {
    margin-top: 2px;
    color: #c24141;
}

.validation-summary-content,
.payment-validation-summary-content {
    min-width: 0;
}

.validation-summary-content strong,
.payment-validation-summary-content strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.validation-summary-list,
.payment-validation-summary-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.82rem;
}

.validation-summary-list li,
.payment-validation-summary-list li {
    margin-bottom: 2px;
}

/* GENERIC ERROR STATE */
.form-control.input-validation-error,
.form-body select.input-validation-error,
.payment-shell .payment-control.input-validation-error,
.payment-shell .payment-select-wrap select.input-validation-error {
    border-color: #e14b4b;
    background: #fffafb;
    box-shadow: 0 0 0 3px rgba(225, 75, 75, 0.14);
}

.form-control.input-validation-error:focus,
.form-body select.input-validation-error:focus,
.payment-shell .payment-control.input-validation-error:focus,
.payment-shell .payment-select-wrap select.input-validation-error:focus {
    border-color: #d33d3d;
    box-shadow: 0 0 0 3px rgba(225, 75, 75, 0.2);
}

.payment-shell .field-validation-error,
.payment-shell .field-validation-valid {
    display: none;
}

.payment-shell .text-danger {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
}

@media screen and (min-width: 640px) {
    .payment-method-switch {
        margin-bottom: 16px;
    }

    .payment-card-header,
    .payment-card-body {
        padding: 16px 18px;
    }
}

@media screen and (min-width: 1024px) {
    .payment-field-wide {
        max-width: 42rem;
    }
}