
/* MOLLED PREMIUM QUOTATION STUDIO */

body:has(.mq-page) {
    background: #f3f5f9 !important;
}

.mq-page {
    --mq-dark: #111827;
    --mq-border: #e4e8ef;
    --mq-accent: #c5a46d;
    --mq-muted: #64748b;

    background: #f3f5f9 !important;
    min-height: 100vh;
    padding: 32px 18px 70px !important;
    color: #172033;
    font-family: Inter, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mq-page * {
    box-sizing: border-box;
}

.mq-wrap {
    max-width: 1480px !important;
    margin: 0 auto !important;
}

/* PREMIUM HEADER */

.mq-top {
    background: linear-gradient(
        120deg,
        #101827 0%,
        #1d2b40 65%,
        #273750 100%
    ) !important;

    color: white !important;
    border: 1px solid #344155 !important;
    border-radius: 22px !important;
    padding: 32px 36px !important;
    margin-bottom: 26px !important;

    box-shadow: 0 16px 38px rgba(15,23,42,.12);
}

.mq-top h1 {
    color: #ffffff !important;
    font-size: clamp(26px, 3vw, 38px) !important;
    font-weight: 800 !important;
    letter-spacing: -1.2px;
    margin: 8px 0 !important;
}

.mq-top p {
    color: #cbd5e1 !important;
    font-size: 14px;
}

.mq-tag {
    display: inline-flex !important;
    align-items: center;
    background: rgba(197,164,109,.12) !important;
    border: 1px solid rgba(197,164,109,.4) !important;
    color: #e8c992 !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.8px;
}

/* CARDS */

.mq-card {
    background: #ffffff !important;
    border: 1px solid var(--mq-border) !important;
    border-radius: 20px !important;
    padding: 28px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 5px 22px rgba(15,23,42,.035) !important;
    transition: box-shadow .2s ease;
}

.mq-card:hover {
    box-shadow: 0 9px 30px rgba(15,23,42,.065) !important;
}

.mq-card h2 {
    color: #172033 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.4px;
    margin: 0 0 22px !important;
    padding-bottom: 17px !important;
    border-bottom: 1px solid #edf0f5;
}

/* FORM FIELDS */

.mq-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mq-field > span {
    color: #526078 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .1px;
}

.mq-field input,
.mq-field select,
.mq-field textarea,
.mq-table input,
.mq-table select,
.mq-table textarea {
    width: 100%;
    max-width: 100%;
    background: #f9fafc !important;
    color: #172033 !important;
    border: 1px solid #dfe5ee !important;
    border-radius: 11px !important;
    padding: 12px 13px !important;
    font-size: 13px !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s;
}

.mq-field input:focus,
.mq-field select:focus,
.mq-field textarea:focus,
.mq-table input:focus,
.mq-table select:focus,
.mq-table textarea:focus {
    background: #ffffff !important;
    border-color: #9b8055 !important;
    box-shadow: 0 0 0 3px rgba(197,164,109,.13) !important;
}

.mq-field input:disabled {
    background: #f1f4f8 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.mq-field textarea {
    min-height: 85px;
    resize: vertical;
}

/* CUSTOMER SEARCH */

.mq-customer-search {
    position: relative;
}

.mq-customer-results,
.mq-product-suggestions {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(15,23,42,.15) !important;
    overflow-y: auto;
    max-height: 320px;
    z-index: 100;
}

.mq-customer-result,
.mq-product-suggestion {
    padding: 13px 15px !important;
    border-bottom: 1px solid #edf0f5;
    cursor: pointer;
}

.mq-customer-result:hover,
.mq-product-suggestion:hover {
    background: #f4f6fa !important;
}

/* PRODUCT TABLE */

.mq-table-wrap {
    width: 100%;
    overflow-x: auto !important;
    border: 1px solid #e5e9f0 !important;
    border-radius: 15px !important;
    background: #ffffff;
}

.mq-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.mq-table th {
    background: #172235 !important;
    color: #ffffff !important;
    padding: 15px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .25px;
    white-space: nowrap;
    text-align: left;
}

.mq-table td {
    padding: 13px 10px !important;
    border-bottom: 1px solid #edf0f5 !important;
    vertical-align: middle !important;
    background: #ffffff;
}

.mq-table tbody tr:hover td {
    background: #fafbfe;
}

.mq-table input {
    min-width: 75px;
}

.mq-product-detail {
    background: #f8fafc !important;
    border-radius: 13px !important;
    padding: 15px !important;
}

.mq-product-image {
    border-radius: 12px !important;
    border: 1px solid #e5e9f0 !important;
    background: white !important;
    overflow: hidden;
}

/* BUTTONS */

.mq-btn {
    border-radius: 11px !important;
    padding: 13px 20px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s;
}

.mq-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.mq-btn.primary {
    background: linear-gradient(135deg,#172235,#30415b) !important;
    color: white !important;
    border: 1px solid #172235 !important;
    box-shadow: 0 5px 14px rgba(23,34,53,.15);
}

.mq-btn.secondary {
    background: #ffffff !important;
    color: #25344a !important;
    border: 1px solid #dbe2ec !important;
}

.mq-btn.secondary:hover {
    background: #f5f7fa !important;
}

.mq-btn.danger {
    background: #fff5f5 !important;
    color: #b42332 !important;
    border: 1px solid #ffd7d7 !important;
}

.mq-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* TOTAL SUMMARY */

.mq-bottom {
    display: grid !important;
    grid-template-columns: minmax(0,1.45fr) minmax(320px,1fr);
    gap: 22px !important;
    align-items: start;
}

.mq-bottom > .mq-card {
    min-width: 0;
}

.mq-bottom > .mq-card:last-child {
    position: sticky;
    top: 24px;
    border: 1px solid #d7deea !important;
    box-shadow: 0 12px 32px rgba(15,23,42,.08) !important;
}

.mq-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0 !important;
    border-bottom: 1px solid #edf0f5;
    font-size: 13px;
}

.mq-total-row span {
    color: #64748b !important;
}

.mq-total-row strong {
    color: #172033 !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mq-total-row.final {
    background: #172235 !important;
    color: white !important;
    border-radius: 13px !important;
    padding: 19px !important;
    margin: 18px 0 12px !important;
    border: none !important;
}

.mq-total-row.final span,
.mq-total-row.final strong {
    color: white !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

/* ALERTS */

.mq-alert {
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 13px;
}

.mq-alert.success {
    background: #ecfdf3 !important;
    color: #067647 !important;
    border: 1px solid #abefc6 !important;
}

.mq-alert.error {
    background: #fef3f2 !important;
    color: #b42318 !important;
    border: 1px solid #fecdca !important;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .mq-bottom {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .mq-bottom > .mq-card:last-child {
        position: static;
    }
}

@media (max-width: 700px) {
    .mq-page {
        padding: 14px 10px 40px !important;
    }

    .mq-top {
        padding: 23px 19px !important;
        border-radius: 16px !important;
    }

    .mq-top h1 {
        font-size: 27px !important;
    }

    .mq-card {
        padding: 18px 14px !important;
        border-radius: 15px !important;
    }

    .mq-grid,
    .mq-grid.two {
        grid-template-columns: minmax(0,1fr) !important;
    }

    .mq-table {
        min-width: 950px;
    }

    .mq-bottom {
        display: block !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mq-page *,
    .mq-page *::before,
    .mq-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
