/* ── Quotation Cards ───────────────────────────────────────── */

.card-quotation {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all .18s;
}
.card-quotation:hover { background: rgba(0,191,255,.07); }
.card-quotation__header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-quotation__title { font-weight: 700; font-size: 13px; color: var(--text-light); }
.card-quotation__status {
    font-size: 11px; padding: 2px 8px; border-radius: 99px;
    background: rgba(0,191,255,.12); color: var(--primary); white-space: nowrap;
}
.card-quotation__date { font-size: 11px; color: #888; margin-top: 3px; }
.card-list { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }

/* ── Category List ── */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 360px;
    width: 100%;
}
.cat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(0,5,133,0.08);
    background: rgba(0,5,133,0.03);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    text-align: start;
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}
.cat-list-item--plain .cat-list-item__name {
    padding-inline-start: 2px;
}
.option-drawer__list .cat-list-item {
    border-radius: 12px;
}
.cat-list-item:not(:disabled):hover {
    background: rgba(0,5,133,0.07);
    border-color: rgba(0,5,133,0.2);
    box-shadow: 0 3px 12px rgba(0,5,133,0.08);
}
.cat-list-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,5,133,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: background 0.18s;
}
.cat-list-item:not(:disabled):hover .cat-list-item__icon {
    background: rgba(0,5,133,0.12);
}
.cat-list-item__name { flex: 1; }
.cat-list-item__arrow {
    font-size: 20px;
    color: var(--primary);
    opacity: 0.35;
    font-weight: 300;
}
.cat-list-item--chosen {
    background: linear-gradient(135deg, var(--primary) 0%, #2832a8 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,5,133,0.35) !important;
}
.cat-list-item--chosen .cat-list-item__icon { background: rgba(255,255,255,0.18) !important; }
.cat-list-item--chosen .cat-list-item__arrow { opacity: 0.6 !important; color: #fff !important; }
.cat-list-item:disabled { opacity: 0.3; cursor: not-allowed; }

.dark-mode .cat-list-item {
    border-color: rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    color: var(--text-dark);
}
.dark-mode .cat-list-item:not(:disabled):hover {
    background: rgba(233,193,118,0.07);
    border-color: rgba(233,193,118,0.2);
    box-shadow: 0 3px 14px rgba(233,193,118,0.12);
}
.dark-mode .cat-list-item__icon { background: rgba(255,255,255,0.07); }
.dark-mode .cat-list-item:not(:disabled):hover .cat-list-item__icon { background: rgba(233,193,118,0.12); }
.dark-mode .cat-list-item__arrow { color: var(--secondary); }

/* ── Sub-category Pills ── */
.sub-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 400px;
    padding: 2px 0;
}
.sub-pill {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(0,5,133,0.15);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--primary);
    transition: all 0.18s;
    white-space: nowrap;
}
.sub-pill:not(:disabled):hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,5,133,0.22);
}
.sub-pill--chosen {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.sub-pill:disabled { opacity: 0.3; cursor: not-allowed; }

.dark-mode .sub-pill {
    border-color: rgba(233,193,118,0.22);
    color: rgba(233,193,118,0.85);
}
.dark-mode .sub-pill:not(:disabled):hover,
.dark-mode .sub-pill--chosen {
    background: var(--secondary) !important;
    color: #111 !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 3px 10px rgba(233,193,118,0.28);
}

/* ── Budget Range Grid ── */
.budget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 400px;
    width: 100%;
    padding: 4px 0 6px;
}

.budget-tile {
    padding: 11px 10px;
    border-radius: 12px;
    border: 1.5px solid rgba(0, 5, 133, 0.12);
    background: rgba(0, 5, 133, 0.03);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #222;
    text-align: center;
    line-height: 1.35;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}

.budget-tile:not(:disabled):hover {
    background: rgba(0, 5, 133, 0.07);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 5, 133, 0.12);
}

.budget-tile--chosen {
    background: linear-gradient(135deg, var(--primary) 0%, #2832a8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0, 5, 133, 0.3) !important;
    transform: none;
}

.budget-tile--skip {
    grid-column: 1 / -1;
    border-style: dashed;
    border-color: rgba(0, 5, 133, 0.22);
    background: transparent;
    color: var(--primary);
}

.budget-tile--skip:not(:disabled):hover {
    background: rgba(0, 5, 133, 0.05);
    border-color: var(--primary);
    transform: none;
}

.budget-tile:disabled {
    cursor: not-allowed;
    transform: none;
}

.budget-tile:disabled:not(.budget-tile--chosen) {
    opacity: 0.38;
}

.budget-tile--chosen:disabled {
    opacity: 1;
}

.dark-mode .budget-tile {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
}

.dark-mode .budget-tile:not(:disabled):hover {
    background: rgba(233, 193, 118, 0.08);
    border-color: rgba(233, 193, 118, 0.35);
    color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.dark-mode .budget-tile--chosen {
    background: linear-gradient(135deg, var(--secondary) 0%, #d4a843 100%) !important;
    color: #111 !important;
    box-shadow: 0 4px 14px rgba(233, 193, 118, 0.35) !important;
}

.dark-mode .budget-tile--skip {
    border-color: rgba(233, 193, 118, 0.28);
    color: rgba(233, 193, 118, 0.75);
    background: transparent;
}

.dark-mode .budget-tile--skip:not(:disabled):hover {
    background: rgba(233, 193, 118, 0.06);
    border-color: rgba(233, 193, 118, 0.45);
    color: var(--secondary);
}

/* ── Governorate Grid ── */
.gov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    max-width: 340px;
    width: 100%;
}
.gov-pill {
    padding: 10px 8px;
    border-radius: 12px;
    border: 1.5px solid rgba(0,5,133,0.1);
    background: rgba(0,5,133,0.03);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: #222;
    text-align: center;
    transition: all 0.18s;
}
.gov-pill:not(:disabled):hover {
    background: rgba(0,5,133,0.07);
    border-color: var(--primary);
    color: var(--primary);
}
.gov-pill--chosen {
    background: linear-gradient(135deg, var(--primary) 0%, #2832a8 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(0,5,133,0.3) !important;
}
.gov-pill:disabled { opacity: 0.3; cursor: not-allowed; }
.gov-more-btn {
    grid-column: 1 / -1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: rgba(0,5,133,0.05);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s;
}
.gov-more-btn:hover { background: rgba(0,5,133,0.1); }

.dark-mode .gov-pill {
    border-color: rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
}
.dark-mode .gov-pill:not(:disabled):hover {
    background: rgba(233,193,118,0.07);
    border-color: rgba(233,193,118,0.3);
    color: var(--secondary);
}
.dark-mode .gov-more-btn {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}
.dark-mode .gov-more-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Suggest Widget (AI category match) ── */
.suggest-widget {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0px 10px;
    max-width: 340px;
    width: 100%;
    border-radius: 18px;
    background: rgba(0, 5, 133, 0.03);
    box-shadow: 0 4px 18px rgba(0, 5, 133, 0.08);
    overflow: hidden;
}

.suggest-widget__match {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 2px 2px 6px;
    border-bottom: 1px dashed rgba(0, 5, 133, 0.08);
}

[dir="rtl"] .suggest-widget__match {
    flex-direction: row-reverse;
}

.suggest-widget__icon {
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

iconify-icon.suggest-widget__iconify {
    width: 28px;
    height: 28px;
}

.suggest-widget__img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.suggest-widget__body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

[dir="rtl"] .suggest-widget__body {
    align-items: flex-end;
}

.suggest-widget__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #6b7694;
}

.suggest-widget__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary);
    word-break: break-word;
}

.suggest-widget__alt {
    font-size: 12px;
    font-weight: 500;
    color: #8a93ab;
    line-height: 1.35;
}

.suggest-widget__desc {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: #4a5270;
    word-break: break-word;
}

.dark-mode .suggest-widget__desc {
    color: rgba(255, 255, 255, 0.55);
}

.suggest-widget__sub {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 2px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 5, 133, 0.08);
    color: var(--primary);
    max-width: 100%;
    word-break: break-word;
}

.suggest-widget__actions {
    display: flex;
    gap: 8px;
}

.suggest-widget__yes {
    border: none;
    border-radius: 14px;
    min-width: fit-content;
    color:  #2832a8 ;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.18s;
}
.dark-mode .suggest-widget__yes {
    background: none;
    color: #e9c176;
}

[dir="rtl"] .suggest-widget__yes {
    flex-direction: row-reverse;
}

iconify-icon.suggest-widget__btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.95;
}



.suggest-widget__change {
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #7a849e;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.suggest-widget__change:not(:disabled):hover {
    color: black;
}

.suggest-widget--done {
    opacity: 0.72;
    pointer-events: none;
}

.dark-mode .suggest-widget {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.dark-mode .suggest-widget__match {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}



.dark-mode iconify-icon.suggest-widget__iconify {
    color: var(--secondary);
}

.dark-mode .suggest-widget__label {
    color: rgba(255, 255, 255, 0.58);
}

.dark-mode .suggest-widget__name {
    color: #f4f6fb;
}

.dark-mode .suggest-widget__alt {
    color: rgba(255, 255, 255, 0.48);
}

.dark-mode .suggest-widget__sub {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.dark-mode .suggest-widget__change {
    color: rgba(255, 255, 255, 0.55);
}

.dark-mode .suggest-widget__change:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

body:not(.dark-mode) .suggest-widget {
    box-shadow: 0 4px 20px rgba(0, 5, 133, 0.1);
}

/* ── Skip Row (sits below choice grids) ── */

.skip-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
    max-width: 520px;
}
