:root {
    --hrm-quote-bg: #f6f4f0;
    --hrm-quote-card: #ffffff;
    --hrm-quote-ink: #1e1f24;
    --hrm-quote-muted: #6b6f76;
    --hrm-quote-accent: #1f6feb;
    --hrm-quote-accent-2: #f4b860;
    --hrm-quote-border: #e6e0d8;
    --hrm-quote-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.hrm-quote-page {
    background: radial-gradient(circle at top left, rgba(244, 184, 96, 0.22), transparent 45%),
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.12), transparent 50%),
        var(--hrm-quote-bg);
    padding: 28px;
    border-radius: 24px;
    color: var(--hrm-quote-ink);
}

.hrm-quotes-theme {
    background: radial-gradient(circle at top left, rgba(244, 184, 96, 0.18), transparent 45%),
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.1), transparent 50%),
        var(--hrm-quote-bg);
    padding: 28px;
    border-radius: 24px;
    color: var(--hrm-quote-ink);
}

.hrm-quote-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.12);
    color: var(--hrm-quote-accent);
    font-weight: 700;
    font-size: 12px;
}

.hrm-quote-code {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(244, 184, 96, 0.18);
    color: #8a5a12;
    font-weight: 700;
    font-size: 12px;
}

.hrm-quote-total {
    color: #1d7a4c;
    font-weight: 700;
}

.hrm-quote-view-btn {
    border-radius: 999px;
    padding: 6px 14px;
}

.hrm-myquotes-table td {
    vertical-align: middle;
}

@media (max-width: 991px) {
    .hrm-quotes-theme {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .hrm-quotes-theme {
        padding: 16px;
    }
}

.hrm-quote-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--hrm-quote-card);
    border: 1px solid var(--hrm-quote-border);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--hrm-quote-shadow);
    margin-bottom: 20px;
}

.hrm-quote-hero__content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hrm-quote-hero__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--hrm-quote-accent), #4ea2ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.hrm-quote-hero__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.hrm-quote-hero__subtitle {
    margin: 0;
    color: var(--hrm-quote-muted);
    font-size: 14px;
}

.hrm-quote-hero__count {
    text-align: right;
    background: rgba(31, 111, 235, 0.1);
    border-radius: 16px;
    padding: 10px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hrm-quote-muted);
}

.hrm-quote-hero__count strong {
    display: block;
    font-size: 24px;
    color: var(--hrm-quote-ink);
    letter-spacing: normal;
}

.hrm-quote-card {
    background: var(--hrm-quote-card);
    border: 1px solid var(--hrm-quote-border);
    border-radius: 20px;
    box-shadow: var(--hrm-quote-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.hrm-quote-card__header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--hrm-quote-border);
    background: linear-gradient(120deg, rgba(31, 111, 235, 0.08), rgba(244, 184, 96, 0.08));
}

.hrm-quote-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hrm-quote-card__body {
    padding: 20px 22px;
}

.hrm-quote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50px;
    background: rgba(31, 111, 235, 0.12);
    color: var(--hrm-quote-accent);
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.hrm-quote-table {
    margin: 0;
}

.hrm-quote-table thead th {
    border-top: none;
    border-bottom: 1px solid var(--hrm-quote-border);
    color: var(--hrm-quote-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.hrm-quote-table tbody tr {
    border-bottom: 1px solid rgba(230, 224, 216, 0.6);
}

.hrm-quote-table tbody tr:last-child {
    border-bottom: none;
}

.hrm-col-image {
    width: 90px;
}

.text-center {
    text-align: center;
}

.hrm-col-action {
    width: 70px;
}
.hrm-col-price {
    width: 140px;
}
.hrm-col-total {
    width: 140px;
}

.hrm-product-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hrm-quote-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrm-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hrm-product-name {
    font-weight: 700;
    font-size: 15px;
}

.hrm-product-variant {
    color: var(--hrm-quote-muted);
    font-size: 13px;
    margin-top: 2px;
}

.hrm-quote-qty-input {
    max-width: 120px;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
}

.hrm-quote-unit-price,
.hrm-quote-line-total {
    font-weight: 600;
}

.hrm-quote-line-total {
    color: #13476e;
}

.hrm-quote-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--hrm-quote-border);
    font-size: 14px;
    color: var(--hrm-quote-muted);
    background: rgba(31, 111, 235, 0.04);
}

.hrm-quote-summary strong {
    font-size: 18px;
    color: var(--hrm-quote-ink);
}

.hrm-quote-tnc {
    background: #fbfaf7;
    border: 1px dashed var(--hrm-quote-border);
    padding: 16px;
    border-radius: 12px;
    max-height: 240px;
    overflow: auto;
    color: var(--hrm-quote-muted);
    font-size: 14px;
}

.hrm-quote-checkbox {
    margin-top: 12px;
}

.hrm-quote-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--hrm-quote-border);
    padding-top: 16px;
}

.hrm-add-to-quote {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}

.hrm-add-to-quote.hrm-is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.hrm-add-to-quote .material-icons {
    font-size: 18px;
    line-height: 1 !important;
}

.hrm-quote-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.hrm-quote-modal .modal-header {
    background: linear-gradient(120deg, #1f6feb, #5aa1ff);
    border-bottom: none;
}

.hrm-quote-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.hrm-quote-modal .modal-footer {
    text-align: unset !important;
}

.hrm-quote-modal .btn-close {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    background-image: none;
}

.hrm-quote-modal .btn-close span {
    font-size: 22px;
    line-height: 1;
}

.hrm-quote-modal--danger .modal-header {
    background: linear-gradient(120deg, #dc2626, #f97316);
}

.hrm-quote-confirm-text {
    margin-bottom: 12px;
    color: var(--hrm-quote-muted);
}

.hrm-quote-confirm-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 235, 0.08);
    border: 1px solid var(--hrm-quote-border);
    color: var(--hrm-quote-ink);
    font-weight: 600;
}

.hrm-quote-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--hrm-quote-card);
    border-radius: 24px;
    border: 1px solid var(--hrm-quote-border);
    box-shadow: var(--hrm-quote-shadow);
}

.hrm-quote-empty__icon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    background: rgba(31, 111, 235, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hrm-quote-accent);
    margin-bottom: 16px;
    font-size: 32px;
}

.hrm-quote-empty__title {
    font-weight: 700;
    margin-bottom: 8px;
}

.hrm-quote-empty__text {
    color: var(--hrm-quote-muted);
    margin-bottom: 20px;
}

.hrm-quote-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: 24px;
    background: var(--hrm-quote-card);
    border: 1px solid var(--hrm-quote-border);
    box-shadow: var(--hrm-quote-shadow);
}

.hrm-quote-notice__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--hrm-quote-accent);
    background: rgba(31, 111, 235, 0.12);
}

.hrm-quote-notice__title {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--hrm-quote-ink);
}

.hrm-quote-notice__text {
    color: var(--hrm-quote-muted);
}

.hrm-quote-notice__close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: var(--hrm-quote-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hrm-quote-notice__close .material-icons {
    font-size: 20px;
}

.hrm-quote-notice--success .hrm-quote-notice__icon {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
}

.hrm-quote-notice--danger .hrm-quote-notice__icon {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.hrm-quote-notice--info .hrm-quote-notice__icon {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
}

.hrm-quote-success {
    text-align: center;
    padding: 64px 24px;
    background: var(--hrm-quote-card);
    border-radius: 28px;
    border: 1px solid var(--hrm-quote-border);
    box-shadow: var(--hrm-quote-shadow);
}

.hrm-quote-success__icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 40px;
}

.hrm-quote-success__title {
    font-weight: 700;
    margin-bottom: 10px;
}

.hrm-quote-success__text {
    color: var(--hrm-quote-muted);
    margin-bottom: 24px;
}

.hrm-quote-success__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 576px) {
    .hrm-quote-notice {
        grid-template-columns: auto 1fr;
        row-gap: 12px;
    }

    .hrm-quote-notice__close {
        justify-self: end;
    }
}

.hrm-quote-form .form-control {
    border-radius: 12px;
    border-color: var(--hrm-quote-border);
    box-shadow: none;
}

.hrm-quote-form .form-control:focus {
    border-color: rgba(31, 111, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

.hrm-quote-form .btn-primary {
    background: linear-gradient(120deg, var(--hrm-quote-accent), #4ea2ff);
    border: none;
    box-shadow: 0 12px 18px rgba(31, 111, 235, 0.2);
}

.hrm-quote-form .btn-primary:hover {
    filter: brightness(1.02);
}

@media (max-width: 991px) {
    .hrm-quote-page {
        padding: 20px;
    }

    .hrm-quote-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hrm-quote-hero__count {
        width: 100%;
        text-align: left;
    }

    .hrm-quote-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575px) {
    .hrm-quote-page {
        padding: 16px;
    }

    .hrm-quote-hero__title {
        font-size: 20px;
    }

    .hrm-quote-card__header,
    .hrm-quote-card__body {
        padding: 16px;
    }
}
