@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap");

:root {
    --navy: #0b2d5c;
    --navy-deep: #071d3c;
    --blue: #1769e0;
    --blue-2: #3b82f6;
    --blue-soft: #eaf3ff;
    --surface: #fff;
    --surface-2: #f5f8fc;
    --border: #dce6f2;
    --text: #15263c;
    --muted: #6c7d92;
    --success: #16865b;
    --warning: #b7791f;
    --danger: #c23a4d;
    --shadow: 0 14px 38px rgba(22, 60, 110, .08);
    --shadow-lg: 0 24px 70px rgba(26, 66, 119, .14);
}

* { box-sizing: border-box; }
html { min-height: 100%; font-family: Vazirmatn, Tahoma, Arial, sans-serif; color: var(--text); background: var(--surface-2); }
body { margin: 0; min-height: 100vh; }
body, button, input, select, textarea { font-family: Vazirmatn, Tahoma, Arial, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button, .btn { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

/* پوسته اصلی */
.app-body { background: var(--surface-2); }
.app-shell { display: grid; grid-template-columns: 282px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky; top: 0; z-index: 40; display: flex; flex-direction: column;
    width: 282px; height: 100vh; padding: 24px 18px 18px; overflow-y: auto;
    color: #fff; background:
        radial-gradient(circle at 20% 0, rgba(49, 132, 244, .28), transparent 31%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 88%);
    box-shadow: -10px 0 34px rgba(11, 45, 92, .12);
}
.brand { display: flex; align-items: center; gap: 13px; padding: 0 7px 22px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark, .logo-mark {
    display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px;
    color: #fff; background: linear-gradient(145deg, #3d91ff, #1769e0);
    border: 1px solid rgba(255,255,255,.28); border-radius: 17px;
    font-size: 29px; font-weight: 900; box-shadow: 0 12px 30px rgba(23,105,224,.28);
}
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { font-size: 17px; font-weight: 850; }
.brand-copy small { color: #bcd1ed; font-size: 10.5px; }
.brand-copy .brand-version { width: max-content; margin-top: 5px; padding: 2px 8px; color: #dceaff; background: rgba(255,255,255,.09); border-radius: 999px; }
.sidebar-nav { display: grid; gap: 5px; margin: 20px 0; }
.nav-item {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 9px 12px;
    color: #cad8eb; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 650;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); transform: translateX(-2px); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(59,130,246,.25), rgba(59,130,246,.11)); border-color: rgba(116,174,255,.22); }
.nav-item.active::before { content: ""; position: absolute; right: -18px; width: 4px; height: 27px; background: #4b9aff; border-radius: 5px 0 0 5px; box-shadow: 0 0 16px rgba(75,154,255,.75); }
.nav-icon { display: grid; place-items: center; width: 27px; height: 27px; color: #a9c9f5; background: rgba(255,255,255,.055); border-radius: 8px; font-size: 17px; }
.nav-item.active .nav-icon { color: #fff; background: rgba(59,130,246,.34); }
.nav-count { display: inline-grid; place-items: center; min-width: 25px; height: 23px; margin-inline-start: auto; padding: 0 7px; color: #fff; background: #e04444; border: 2px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1; box-shadow: 0 4px 14px rgba(224,68,68,.28); }
.nav-section { margin: 15px 13px 5px; color: #7894b9; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.security-note { display: flex; gap: 10px; margin-top: auto; padding: 12px; color: #c9d9ed; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; }
.security-note > span { color: #4bd3a0; font-size: 9px; padding-top: 4px; }
.security-note div { display: grid; gap: 2px; }
.security-note strong { font-size: 11px; }
.security-note small { color: #93a9c7; font-size: 9px; line-height: 1.7; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 8px 3px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #438ff2, #195cbe); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; font-weight: 800; }
.avatar-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-copy { display: grid; min-width: 0; flex: 1; }
.profile-copy strong { overflow: hidden; color: #f3f7fd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: #91a8c7; font-size: 9px; }
.logout-link { display: grid; place-items: center; width: 32px; height: 32px; color: #bdd0e8; border-radius: 9px; font-size: 20px; }
.logout-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.mobile-overlay { display: none; }
.app-main { min-width: 0; }
.content-topbar { position: relative; z-index: 120; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 102px; padding: 22px clamp(20px, 3.4vw, 52px); overflow: visible; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.page-identity { display: flex; align-items: center; gap: 13px; }
.page-identity p { margin: 0 0 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.page-identity h1 { margin: 0; color: var(--navy); font-size: clamp(21px, 2.3vw, 28px); font-weight: 850; }
.mobile-menu { display: none; width: 42px; height: 42px; padding: 0; color: var(--navy); background: var(--blue-soft); border: 0; border-radius: 11px; font-size: 22px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.today-chip { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 12px; color: #405673; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; font-size: 11px; font-weight: 700; }
.today-chip > span { color: var(--muted); font-weight: 500; }
.notification-menu { position: relative; }
.notification-button { position: relative; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; color: #173b68; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 17px; cursor: pointer; box-shadow: 0 5px 16px rgba(27,62,105,.07); transition: .2s ease; }
.notification-button:hover,.notification-button[aria-expanded="true"] { color: #fff; background: #1769c2; border-color: #1769c2; transform: translateY(-1px); }
.notification-count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; color: #fff; background: #e04444; border: 2px solid #fff; border-radius: 999px; font-size: 10px; font-weight: 900; line-height: 1; }
.notification-popover { position: absolute; z-index: 160; top: calc(100% + 12px); right: auto; left: 0; width: min(390px,calc(100vw - 32px)); max-width: calc(100vw - 32px); overflow: hidden; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 17px; box-shadow: 0 22px 55px rgba(8,38,76,.2); }
.notification-popover[hidden] { display: none; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 17px; border-bottom: 1px solid var(--border); background: #f7faff; }
.notification-heading > div { display: grid; gap: 3px; }
.notification-heading strong { font-size: 14px; }
.notification-heading small { color: var(--muted); font-size: 11px; }
.notification-heading a,.notification-more { color: #1769c2; font-size: 11px; font-weight: 800; }
.notification-list { max-height: 410px; overflow-y: auto; }
.notification-item { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 11px; align-items: start; padding: 13px 16px; color: inherit; border-bottom: 1px solid #edf1f6; transition: .18s ease; }
.notification-item:hover { background: #f5f9ff; }
.notification-type { display: grid; place-items: center; width: 35px; height: 35px; color: #1769c2; background: #e7f1ff; border-radius: 10px; font-weight: 900; }
.notification-type.transfer { color: #19704a; background: #e4f7ed; }
.notification-copy { min-width: 0; display: grid; gap: 4px; }
.notification-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy em { width: fit-content; padding: 3px 7px; color: #385c87; background: #edf4fc; border-radius: 999px; font-size: 9px; font-style: normal; font-weight: 800; }
.notification-empty { padding: 30px 18px; color: var(--muted); text-align: center; }
.notification-more { display: block; padding: 11px 16px; text-align: center; background: #f8fbff; }
.profile-shortcut { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 3px 5px 3px 12px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 11px; font-weight: 700; }
.avatar-small { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.container { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px clamp(20px, 3.4vw, 52px) 60px; }

/* ورود و نصب */
.auth-body { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #e8f3ff, #f6f8fc 52%); }
.auth-container { width: min(440px, 100%); }
.login-card, .install-card { background: rgba(255,255,255,.97); border: 1px solid rgba(220,230,242,.9); border-radius: 22px; box-shadow: var(--shadow-lg); }
.login-card { padding: 30px; }
.install-card { width: min(700px, 100%); padding: clamp(24px, 5vw, 40px); }
.auth-container:has(.install-card) { width: min(700px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 21px; border-bottom: 1px solid var(--border); }
.auth-brand .logo-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 25px; }
.auth-brand > div:last-child { display: grid; }
.auth-brand strong { color: var(--navy); font-size: 15px; font-weight: 850; }
.auth-brand span { color: var(--muted); font-size: 10px; }
.auth-heading { padding: 25px 0 19px; text-align: center; }
.auth-heading h2 { margin: 6px 0 8px; color: var(--navy); font-size: 24px; font-weight: 850; }
.auth-heading p { margin: 0; font-size: 11px; line-height: 1.9; }
.auth-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 15px; color: #8797aa; border-top: 1px solid var(--border); font-size: 9px; }
.input-shell { position: relative; display: block; }
.input-shell .input-icon { position: absolute; z-index: 1; top: 50%; right: 12px; color: #8ea0b5; transform: translateY(-50%); }
.input-shell input { padding-right: 38px; }
.logo-mark { margin: 0 auto 16px; }
.install-card h1, .install-card > p { text-align: center; }
.install-card h1 { margin: 9px 0; color: var(--navy); }
.app-version { display: inline-block; padding: 4px 10px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 11px; font-weight: 750; }

/* داشبورد و کارت‌ها */
.hero { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 168px; padding: 29px 31px; margin-bottom: 22px; overflow: hidden; color: #fff; background: linear-gradient(125deg, #0b3975, #1769e0 72%, #438ef0); border-radius: 20px; box-shadow: 0 18px 42px rgba(23,105,224,.16); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero::before { left: -65px; top: -105px; width: 270px; height: 270px; }
.hero::after { left: 70px; bottom: -155px; width: 250px; height: 250px; }
.hero h2 { margin: 5px 0 7px; font-size: clamp(23px, 3vw, 30px); font-weight: 850; }
.hero p { margin: 0; color: #d9e9ff; font-size: 12px; }
.eyebrow { margin: 0; color: #62a6ff !important; font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.hero .eyebrow { color: #9bc7ff !important; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.stat { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 17px; }
.stat > div { min-width: 0; }
.stat div > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.stat strong { display: block; overflow-wrap: anywhere; color: var(--navy); font-size: 18px; font-weight: 850; }
.stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; font-size: 18px; font-weight: 850; }
.stat-blue { color: #1769e0; background: #eaf3ff; }.stat-indigo { color: #4f46e5; background: #eeedff; }.stat-orange { color: #c46b11; background: #fff1dc; }.stat-cyan { color: #087f9c; background: #e3f8fc; }.stat-green { color: #16865b; background: #e5f7ef; }.stat-violet { color: #7c3aed; background: #f1eaff; }.stat-slate { color: #52657d; background: #edf1f6; }
.card { padding: 22px; margin-bottom: 20px; }
.card h2 { margin: 0 0 18px; color: var(--navy); font-size: 18px; font-weight: 800; }
.card h3 { margin: 0 0 8px; color: var(--navy); }
.section-title, .toolbar, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title { margin-bottom: 16px; }
.section-title h2 { margin: 0; }
.section-title a { font-size: 11px; font-weight: 750; }
.toolbar { justify-content: flex-end; margin-bottom: 14px; }

/* جدول */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 13px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: middle; }
th { color: #64768c; background: #f6f9fd; font-size: 10px; font-weight: 800; }
td { font-size: 11.5px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f9fbfe; }
tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.mono { direction: ltr; text-align: right; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-link { font-size: 11px; font-weight: 750; }
.table-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.table-actions form { margin: 0; }
.text-button { padding: 8px 0; color: var(--blue); background: none; border: 0; font-size: 11px; font-weight: 750; }
.text-danger { color: #b42318; }

/* وضعیت‌ها و دکمه‌ها */
.status { display: inline-block; padding: 5px 9px; color: #52657d; background: #edf1f6; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.status-draft { color: #9a4d16; background: #fff0df; }.status-submitted { color: #315d9b; background: #e7f0ff; }.status-project_approved, .status-finance_approved { color: #81601c; background: #fff3d7; }.status-procurement { color: #64469c; background: #efe8ff; }.status-awaiting_final_approval { color: #075f6d; background: #dcf7fb; }.status-approved, .status-completed { color: #17633f; background: #dff4e9; }.status-rejected { color: #913838; background: #fde4e4; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 10px 17px; border: 0; border-radius: 10px; font-size: 11.5px; font-weight: 750; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:focus-visible, .text-link:focus-visible, .text-button:focus-visible, summary:focus-visible { outline: 3px solid rgba(59,130,246,.28); outline-offset: 3px; }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--blue), #3184f4); box-shadow: 0 8px 20px rgba(23,105,224,.2); }
.btn-secondary { color: var(--blue); background: var(--blue-soft); }
.btn-success { color: #fff; background: var(--success); }.btn-danger { color: #fff; background: var(--danger); }.btn-light { color: var(--blue); background: #fff; box-shadow: 0 8px 18px rgba(8,46,95,.12); }.btn-ai { color: #fff; background: linear-gradient(125deg, #6c45c5, #3978c9); }.btn-block { width: 100%; }

/* فرم‌ها */
label { display: grid; gap: 7px; color: #405673; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid #cddaea; border-radius: 10px; outline: none; font-size: 12px; }
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a0adbd; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
small { color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid h2 { grid-column: 1 / -1; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wide { grid-column: 1 / -1; }
.stack-form { display: grid; gap: 16px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-top: 18px; }
.checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.checkbox-label input { width: 18px; min-height: 18px; }
.field-note { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #f6f9fe; border: 1px dashed #bed0ea; border-radius: 12px; }
.field-note span { color: #334155; font-weight: 700; }.field-note small { color: #64748b; }
.muted, .text-muted { color: var(--muted); }.text-success { color: var(--success); }
.alert { padding: 13px 15px; margin-bottom: 16px; border-radius: 11px; font-size: 12px; }.alert-success { color: #17603f; background: #dff4e9; border: 1px solid #bce7d2; }.alert-error { color: #853838; background: #fde5e5; border: 1px solid #f5caca; }.alert-warning { color: #74571a; background: #fff1cf; border: 1px solid #f0dda8; }

/* جزئیات و ابزارها */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.meta-grid div { padding: 13px; background: var(--surface-2); border: 1px solid #eaf0f7; border-radius: 11px; }
.meta-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }.meta-grid dd { margin: 0; font-size: 12px; font-weight: 750; }
.item-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }.item-box:first-of-type { border-top: 0; }.item-box span { display: inline-block; margin: 7px 0 0 14px; font-size: 11px; }
.ai-result { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px; margin: 0 0 15px; background: #f3efff; border: 1px solid #dcd1fb; border-radius: 13px; }.ai-result a { display: block; max-width: 300px; margin-bottom: 6px; font-size: 10px; }
.timeline { padding-right: 22px; }.timeline li { padding: 0 8px 18px; }.timeline small { display: block; margin-top: 4px; }
.confidential { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; color: #667892; background: #f3f6fa; border: 1px dashed #9aacbf; border-radius: 999px; font-size: 10px; font-weight: 700; }.confidential::before { content: "◉"; font-size: 7px; }
.item-code { display: inline-block; direction: ltr; padding: 3px 7px; color: #154da5; background: #e7f0ff; border-radius: 7px; font-size: 10px; }
.winner-banner { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; background: #eaf3ff; border: 1px solid #9ec1f5; border-radius: 12px; }.winner-banner span { color: var(--muted); font-size: 10px; }.winner-banner small { margin-right: auto; }.winner-row { background: #edf5ff !important; }.winner-tag { display: inline-block; margin-right: 5px; padding: 3px 7px; color: #fff; background: var(--blue); border-radius: 999px; font-size: 9px; }.privacy-note { color: #5e718a; font-size: 10px; }
.quotation-files { min-width: 105px; }
.quotation-files summary { cursor: pointer; color: var(--blue); font-size: 11px; font-weight: 800; }
.quotation-files > div { display: grid; gap: 7px; min-width: 180px; padding-top: 9px; }
.quotation-files a { max-width: 260px; overflow-wrap: anywhere; }
.quotation-file-picker { min-width: 230px; }
.quotation-create-form .quotation-file-picker { grid-column: span 2; min-width: 0; }
.quotation-create-form .quotation-file-picker input { min-width: 0; }
.quotation-supplier-picker { display: grid; gap: 7px; min-width: 0; color: #405673; font-size: 11px; font-weight: 700; }
.quotation-supplier-picker > label { display: block; }
.quotation-supplier-picker > small { min-height: 16px; color: var(--muted); font-size: 9px; font-weight: 600; }
.quotation-supplier-picker > small.is-empty { color: #a04444; }
.quotation-description-field { grid-column: span 2; min-width: 0; }
.quotation-description-cell { min-width: 220px; max-width: 340px; line-height: 1.85; overflow-wrap: anywhere; white-space: normal; }
.quotation-comparison-table { min-width: 1260px; }
.quotation-attachment-editor { padding: 16px; margin: 0; border: 1px solid var(--border); border-radius: 13px; }
.quotation-attachment-editor legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.quotation-existing-files { display: grid; gap: 10px; }
.quotation-existing-file { display: grid; grid-template-columns: minmax(180px,1fr) auto auto; gap: 12px; align-items: center; padding: 12px; background: #f7faff; border: 1px solid #e1eaf5; border-radius: 11px; }
.quotation-existing-file > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.quotation-existing-file .text-link { overflow-wrap: anywhere; }

.catalog-picker { position: relative; }.suggestions { position: absolute; z-index: 15; right: 0; left: 0; max-height: 360px; padding: 7px; margin-top: 4px; overflow-y: auto; background: #fff; border: 1px solid #b9cce5; border-radius: 12px; box-shadow: 0 18px 38px rgba(20,62,120,.18); }.suggestion-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 11px; background: #fff; border: 0; border-bottom: 1px solid #edf2f8; border-radius: 8px; text-align: right; }.suggestion-item:hover, .suggestion-item:focus { background: #eef5ff; outline: none; }.suggestion-item strong { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.suggestion-item span { direction: ltr; color: var(--blue); font-family: ui-monospace, monospace; font-size: 10px; }.suggestion-item small { grid-column: 1 / -1; color: var(--muted); }.suggestion-other { display: block; color: var(--blue); background: #eef5ff; font-weight: 700; }
.category-field { display: grid; gap: 7px; min-width: 0; color: #405673; font-size: 11px; font-weight: 700; }.category-field > label { display: block; }.category-picker { display: block; }.category-picker .suggestions { top: 100%; }.category-suggestion { grid-template-columns: 1fr; }.suggestion-empty { display: block; padding: 12px; color: var(--muted); text-align: center; }.category-picker + .text-button { justify-self: start; margin-top: 0; }

.jalali-input-wrap { position: relative; display: flex; align-items: center; }.jalali-input-wrap > input { width: 100%; padding-left: 44px; }.jalali-calendar-button { position: absolute; left: 5px; width: 34px; height: 34px; padding: 0; color: var(--blue); background: #edf5ff; border: 0; border-radius: 9px; font-size: 18px; }.jalali-picker { position: fixed; z-index: 1000; width: min(330px, calc(100vw - 20px)); padding: 12px; direction: rtl; background: #fff; border: 1px solid #abc4e5; border-radius: 16px; box-shadow: 0 22px 60px rgba(20,62,120,.24); }.jalali-picker[hidden] { display: none; }.jalali-picker-head { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; align-items: center; margin-bottom: 10px; }.jalali-picker-head button { height: 36px; color: var(--blue); background: #edf5ff; border: 0; border-radius: 9px; font-size: 19px; }.jalali-picker-title { color: #193659; text-align: center; font-weight: 850; }.jalali-weekdays, .jalali-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }.jalali-weekdays span { padding: 5px 0; color: #6b7d94; text-align: center; font-size: 9px; font-weight: 800; }.jalali-days button, .jalali-days span { display: grid; place-items: center; min-height: 34px; background: transparent; border: 0; border-radius: 9px; }.jalali-days button { color: #243b57; }.jalali-days button:hover, .jalali-days button:focus { color: #fff; background: var(--blue); outline: none; }.jalali-days button.is-today { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 850; }.jalali-days button.is-selected { color: #fff; background: var(--blue); font-weight: 850; }.jalali-picker-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; margin-top: 10px; border-top: 1px solid var(--border); }.jalali-picker-actions button { padding: 7px 10px; color: var(--blue); background: #edf5ff; border: 0; border-radius: 8px; font-weight: 750; }
.custom-item-panel { padding: 16px; background: #f4f8ff; border: 1px dashed #9dbce6; border-radius: 12px; }.custom-item-panel h3 { margin: 0 0 12px; }

.permission-list { display: grid; gap: 13px; }.permission-card { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(220px, 1fr)); gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--border); border-radius: 12px; }.permission-card label { display: flex; flex-direction: row; align-items: center; gap: 7px; font-weight: 500; }.permission-card input[type="checkbox"] { width: 18px; min-height: 18px; }.permission-group { display: grid; gap: 8px; padding: 10px 12px; margin: 0; border: 1px solid var(--border); border-radius: 10px; }.permission-group legend { padding: 0 7px; color: var(--blue); font-weight: 800; }.permission-user { display: grid; }
.report-filter { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: end; }.price-chart { display: grid; gap: 14px; }.chart-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; align-items: center; }.chart-label { display: grid; font-size: 11px; font-weight: 700; }.chart-label small { margin-top: 3px; }.chart-track { height: 36px; overflow: hidden; background: #e8eff8; border-radius: 10px; }.chart-bar { display: flex; align-items: center; min-width: 80px; height: 100%; padding: 0 10px; color: #fff; background: linear-gradient(90deg, #2b7fe5, #1559c7); border-radius: 10px; white-space: nowrap; }.chart-bar b { font-size: 9px; }
.evaluation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.evaluation-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 15px; margin-bottom: 18px; background: #edf5ff; border-radius: 12px; }.evaluation-summary strong { color: var(--blue); font-size: 22px; }.evaluation-summary p { flex-basis: 100%; margin: 0; }

/* جست‌وجوی درخواست و گزارش‌گیری */
.request-item-name { min-width: 190px; max-width: 330px; color: #263d5b; line-height: 1.85; }
.request-created-at { min-width: 145px; direction: rtl; white-space: nowrap; }
.request-status-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px; margin-bottom: 16px; background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 8px 24px rgba(20,62,120,.06); }
.request-status-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; color: #45617f; background: #f4f8fd; border: 1px solid #dbe7f4; border-radius: 11px; font-size: 10.5px; font-weight: 800; white-space: nowrap; transition: color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease; }
.request-status-tab:hover { color: var(--blue); border-color: #9fc3ef; transform: translateY(-1px); }
.request-status-tab:focus-visible { outline: 3px solid rgba(23,105,224,.22); outline-offset: 2px; }
.request-status-tab.is-active { color: #fff; background: linear-gradient(120deg, #1769e0, #2f83ef); border-color: #1769e0; box-shadow: 0 8px 18px rgba(23,105,224,.2); }
.request-search-card { padding-bottom: 17px; }
.request-search-form { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(180px, .9fr) minmax(210px, 1fr) auto; gap: 13px; align-items: end; }
.supplier-search-form { display: grid; grid-template-columns: minmax(270px, 1.6fr) minmax(180px, .7fr) minmax(150px, .55fr) auto; gap: 13px; align-items: end; }
.supplier-contacts-editor { display: grid; gap: 12px; min-width: 0; padding: 16px; margin: 2px 0 0; background: #f8fbff; border: 1px solid var(--border); border-radius: 14px; }
.supplier-contacts-editor legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 850; }
.supplier-contacts-editor > p { margin: 0; font-size: 10px; }
.supplier-contact-rows { display: grid; gap: 10px; }
.supplier-contact-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 11px; align-items: end; padding: 12px; background: #fff; border: 1px solid #dce7f3; border-radius: 11px; }
.supplier-contact-row .supplier-contact-remove { min-height: 39px; padding: 7px 9px; white-space: nowrap; }
.supplier-contact-add { justify-self: start; }
.supplier-contact-limit { font-size: 10px; }
.supplier-table { min-width: 1320px; }
.supplier-contact-list { display: grid; gap: 7px; min-width: 190px; padding: 0; margin: 0; list-style: none; }
.supplier-contact-list li { display: grid; gap: 2px; padding: 7px 9px; background: #f4f8fd; border: 1px solid #e1eaf5; border-radius: 9px; }
.supplier-contact-list strong { color: #29415f; font-size: 10px; }
.supplier-contact-list bdi { color: var(--muted); font-size: 10px; }
.search-actions, .export-actions { display: flex; align-items: center; gap: 8px; }
.search-hint { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.result-count { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 10px; font-weight: 800; }
.report-builder { overflow: hidden; }
.report-builder-form { display: grid; gap: 18px; }
.report-date-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 14px; max-width: 650px; }
.report-filter-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.report-filter-group { min-width: 0; padding: 14px; margin: 0; overflow: hidden; background: #f8fbff; border: 1px solid var(--border); border-radius: 14px; }
.report-filter-group > legend { max-width: calc(100% - 16px); padding: 0 8px; overflow: hidden; color: var(--navy); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-group > summary { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 2px 10px; color: var(--navy); border-bottom: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 800; list-style: none; }
.report-filter-group > summary::-webkit-details-marker { display: none; }
.report-filter-group > summary::after { content: "⌄"; flex: 0 0 auto; margin-inline-start: auto; color: var(--blue); font-size: 17px; transition: transform .18s ease; }
.report-filter-group[open] > summary { margin-bottom: 12px; border-bottom-color: var(--border); }
.report-filter-group[open] > summary::after { transform: rotate(180deg); }
.report-filter-group-body { display: grid; gap: 11px; min-width: 0; }
.report-filter-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.report-filter-heading > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-count { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 25px; min-height: 23px; margin-inline-start: auto; padding: 2px 7px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; font-size: 9px; font-weight: 850; }
.report-filter-search { position: relative; display: block; min-width: 0; }
.report-filter-search input { min-width: 0; padding-inline-start: 38px; }
.report-filter-search-icon { position: absolute; top: 50%; inset-inline-start: 13px; color: #8799ae; pointer-events: none; transform: translateY(-50%); }
.report-filter-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.report-filter-tools > span { min-width: 0; margin-inline-end: auto; overflow: hidden; color: var(--muted); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-tools button { flex: 0 0 auto; min-height: 32px; padding: 5px 9px; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 8px; font-size: 9px; font-weight: 750; }
.report-filter-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; max-height: 260px; min-width: 0; padding: 2px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.report-filter-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; min-height: 48px; padding: 8px 10px; color: #405673; background: #fff; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.report-filter-check:has(input:checked) { color: #174d91; background: var(--blue-soft); border-color: #8ebaf5; box-shadow: inset 0 0 0 1px rgba(23,105,224,.08); }
.report-filter-check input { flex: 0 0 auto; width: 18px; min-height: 18px; padding: 0; accent-color: var(--blue); }
.report-filter-check-copy { display: grid; min-width: 0; gap: 2px; }
.report-filter-check-copy strong { min-width: 0; overflow: hidden; color: #29415f; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-check-copy small { min-width: 0; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.report-filter-empty { padding: 18px 10px; color: var(--muted); text-align: center; font-size: 10px; }
.report-filter-chips,.active-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.filter-chip,.report-filter-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 31px; padding: 4px 8px; color: #174d91; background: #e9f3ff; border: 1px solid #c9ddf7; border-radius: 999px; font-size: 9.5px; font-weight: 750; }
.filter-chip > span,.report-filter-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip code,.report-filter-chip code { flex: 0 0 auto; direction: ltr; color: #52657d; font-size: 8.5px; }
.filter-chip button,.report-filter-chip button { display: grid; place-items: center; flex: 0 0 auto; width: 24px; min-height: 24px; padding: 0; color: #8d3140; background: rgba(194,58,77,.1); border: 0; border-radius: 50%; font-size: 13px; }
.report-builder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.report-builder-actions .btn { min-width: 135px; }
.project-filter-box { min-width: 0; padding: 14px; margin: 0; background: #f8fbff; border: 1px solid var(--border); border-radius: 14px; }
.project-filter-box legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.project-filter-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.project-filter-tools span { margin-left: auto; color: var(--muted); font-size: 10px; }
.project-filter-tools button { padding: 5px 9px; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 8px; font-size: 9px; font-weight: 750; }
.project-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; max-height: 260px; padding: 2px; overflow-y: auto; }
.project-check { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 9px; min-height: 52px; padding: 9px 10px; background: #fff; border: 1px solid var(--border); border-radius: 11px; cursor: pointer; }
.project-check:has(input:checked) { background: var(--blue-soft); border-color: #8ebaf5; box-shadow: inset 0 0 0 1px rgba(23,105,224,.08); }
.project-check input { flex: 0 0 auto; width: 17px; min-height: 17px; accent-color: var(--blue); }
.project-check span { display: grid; min-width: 0; }
.project-check strong { overflow: hidden; color: #29415f; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.project-check small { font-size: 9px; }
.report-result-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.btn-pdf { color: #fff; background: #c23a4d; box-shadow: 0 8px 18px rgba(194,58,77,.16); }
.btn-excel { color: #fff; background: #16865b; box-shadow: 0 8px 18px rgba(22,134,91,.16); }
.report-table { min-width: 1500px; }
.report-table td { vertical-align: top; }
.request-list-heading > div:first-child { display: grid; gap: 4px; min-width: 0; }
.request-list-heading p { margin: 0; color: #5e718a; font-size: 10px; line-height: 1.8; }
.request-list-heading .export-actions { flex: 0 0 auto; flex-wrap: wrap; }
.request-list-table { min-width: 1450px; }
.request-list-table td { vertical-align: top; }
.request-specification { min-width: 300px; max-width: 440px; color: #344b67; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-line; }

/* خریدهای تنخواهی */
.petty-cash-form-card { border-top: 4px solid var(--blue); }
.petty-cash-heading > div:first-child { display: grid; gap: 5px; }
.petty-cash-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.petty-cash-filter-form { display: grid; grid-template-columns: minmax(190px, 1.15fr) minmax(210px, 1.35fr) repeat(2, minmax(170px, 1fr)) auto; gap: 13px; align-items: end; min-width: 0; margin-bottom: 16px; }
.petty-cash-filter-form > * { min-width: 0; }
.petty-cash-filter-field { min-width: 0; }
.petty-cash-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.petty-cash-filter-actions .btn { flex: 0 0 auto; white-space: nowrap; }
.petty-cash-active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; margin: -3px 0 15px; }
.petty-cash-table { min-width: 1120px; }
.petty-cash-table.has-actions { min-width: 1220px; }
.petty-cash-table td { vertical-align: top; }
.petty-cash-item-name { min-width: 210px; max-width: 340px; overflow-wrap: anywhere; line-height: 1.8; }
.petty-cash-amount { direction: rtl; white-space: nowrap; font-weight: 800; color: var(--navy); }
.petty-cash-table .text-link { display: inline-block; max-width: 190px; overflow-wrap: anywhere; }
.petty-cash-actions-column { position: sticky; left: 0; z-index: 1; min-width: 115px; background: #fff; box-shadow: 8px 0 16px rgba(32,63,102,.06); }
.petty-cash-table thead .petty-cash-actions-column { z-index: 2; background: #f2f7fd; }
.petty-cash-invoice-editor { display: grid; gap: 12px; min-width: 0; padding: 16px; margin: 0; background: #f8fbff; border: 1px solid var(--border); border-radius: 13px; }
.petty-cash-invoice-editor legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.petty-cash-invoice-editor p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* تنخواه‌داران و دفتر گردش */
.petty-cash-ledger-page { min-width: 0; }
.petty-cash-ledger-layout { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.65fr); gap: 18px; align-items: start; min-width: 0; }
.petty-cash-ledger-layout > * { min-width: 0; }
.petty-cash-holder-grid,.petty-cash-custodian-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; min-width: 0; }
.petty-cash-holder-card,.petty-cash-custodian-card { display: grid; gap: 12px; min-width: 0; padding: 15px; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(22,60,110,.06); }
.petty-cash-holder-card.is-selected,.petty-cash-custodian-card.is-selected { background: #f3f8ff; border-color: #8ebaf5; box-shadow: inset 0 0 0 1px rgba(23,105,224,.08),0 8px 24px rgba(22,60,110,.06); }
.petty-cash-holder-head,.petty-cash-custodian-head { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; align-items: center; min-width: 0; }
.petty-cash-holder-avatar,.petty-cash-custodian-avatar { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; color: #fff; background: linear-gradient(145deg,#438ff2,#195cbe); border-radius: 12px; font-size: 13px; font-weight: 850; }
.petty-cash-holder-avatar img,.petty-cash-custodian-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.petty-cash-holder-copy,.petty-cash-custodian-copy { display: grid; min-width: 0; gap: 3px; }
.petty-cash-holder-copy strong,.petty-cash-custodian-copy strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.petty-cash-holder-copy small,.petty-cash-custodian-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.petty-cash-holder-balance,.petty-cash-custodian-balance { display: grid; gap: 4px; min-width: 0; padding: 11px 12px; background: #f6f9fd; border-radius: 10px; }
.petty-cash-holder-balance span,.petty-cash-custodian-balance span { color: var(--muted); font-size: 9px; }
.petty-cash-holder-balance strong,.petty-cash-custodian-balance strong { overflow-wrap: anywhere; color: var(--navy); font-size: 15px; }
.petty-cash-holder-actions,.petty-cash-custodian-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.petty-cash-holder-actions .btn,.petty-cash-custodian-actions .btn { flex: 1 1 110px; min-width: 0; }
.petty-cash-ledger-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; min-width: 0; margin-bottom: 15px; }
.petty-cash-ledger-stat { display: grid; gap: 5px; min-width: 0; padding: 13px; background: #f7faff; border: 1px solid #dce7f3; border-radius: 12px; }
.petty-cash-ledger-stat span { color: var(--muted); font-size: 9px; }
.petty-cash-ledger-stat strong { min-width: 0; overflow-wrap: anywhere; color: var(--navy); font-size: 15px; }
.petty-cash-ledger-toolbar,.petty-cash-ledger-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; min-width: 0; margin-bottom: 14px; }
.petty-cash-ledger-filters > * { flex: 1 1 170px; min-width: 0; }
.petty-cash-ledger-filters .search-actions { flex: 0 1 auto; }
.petty-cash-ledger-table { min-width: 1050px; }
.petty-cash-ledger-table td { vertical-align: top; }
.petty-cash-ledger-description { min-width: 210px; max-width: 360px; overflow-wrap: anywhere; line-height: 1.75; }
.petty-cash-ledger-credit,.petty-cash-ledger-debit,.petty-cash-ledger-balance { direction: rtl; white-space: nowrap; font-weight: 800; }
.petty-cash-ledger-credit { color: var(--success); }
.petty-cash-ledger-debit { color: var(--danger); }
.petty-cash-ledger-balance { color: var(--navy); }
.petty-cash-ledger-type { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 8px; color: #52657d; background: #edf1f6; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.petty-cash-ledger-type.is-credit { color: #17603f; background: #dff4e9; }
.petty-cash-ledger-type.is-debit { color: #913838; background: #fde4e4; }

/* بازه‌های تأیید و ناوبری بازگشت */
.approval-range-form { display: grid; gap: 14px; min-width: 0; }
.approval-range-list { display: grid; gap: 10px; min-width: 0; }
.approval-range-row { display: grid; grid-template-columns: minmax(120px,.7fr) repeat(2,minmax(155px,1fr)) minmax(190px,1.2fr) auto; gap: 11px; align-items: end; min-width: 0; padding: 13px; background: #f8fbff; border: 1px solid var(--border); border-radius: 13px; }
.approval-range-row > * { min-width: 0; }
.approval-range-index { display: inline-grid; place-items: center; align-self: center; justify-self: start; min-width: 35px; min-height: 35px; padding: 4px 8px; color: var(--blue); background: var(--blue-soft); border-radius: 10px; font-size: 10px; font-weight: 850; }
.approval-range-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.approval-range-actions .btn,.approval-range-actions .text-button { white-space: nowrap; }
.approval-range-note { padding: 11px 13px; color: #52657d; background: #f5f8fc; border-inline-start: 3px solid #8ebaf5; border-radius: 9px; font-size: 10px; line-height: 1.85; }
.approval-range-empty { padding: 24px 14px; color: var(--muted); text-align: center; border: 1px dashed #bed0ea; border-radius: 12px; font-size: 10px; }
.approval-range-add { justify-self: start; }
.page-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.btn-back,.page-back-button,.back-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; max-width: 100%; min-height: 41px; padding: 9px 14px; color: var(--blue); background: var(--blue-soft); border: 1px solid #c9ddf7; border-radius: 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.btn-back:hover,.page-back-button:hover,.back-link:hover { color: #0f54bb; background: #deedff; border-color: #a9c9f3; }
.btn-back-icon { flex: 0 0 auto; font-size: 15px; line-height: 1; }

@media (max-width: 1200px) {
    .report-filter-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .petty-cash-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .petty-cash-filter-actions { grid-column: 1 / -1; }
    .petty-cash-ledger-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approval-range-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approval-range-index,.approval-range-actions { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-shortcut > span:last-child { display: none; }
    .petty-cash-ledger-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; right: -300px; transition: right .24s ease; }
    .menu-open { overflow: hidden; }
    .menu-open .sidebar { right: 0; }
    .mobile-overlay { position: fixed; z-index: 35; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(4,19,40,.55); border: 0; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .menu-open .mobile-overlay { display: block; opacity: 1; pointer-events: auto; }
    .mobile-menu { display: grid; place-items: center; }
    .content-topbar { min-height: 86px; padding: 17px 18px; }
    .container { padding: 20px 16px 45px; }
}
@media (max-width: 700px) {
    .auth-body { padding: 14px; }
    .login-card { padding: 23px 20px; }
    .top-actions .today-chip { display: none; }
    .notification-popover { position: fixed; top: 78px; right: 16px; left: 16px; width: auto; }
    .profile-shortcut { padding-left: 5px; }
    .hero, .item-box { align-items: stretch; flex-direction: column; }
    .hero { padding: 24px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid, .meta-grid, .ai-result, .permission-card, .chart-row, .evaluation-grid, .report-filter, .form-grid, .request-search-form, .report-date-grid, .report-filter-groups, .petty-cash-filter-form, .petty-cash-ledger-layout, .petty-cash-ledger-summary, .approval-range-row { grid-template-columns: 1fr; }
    .wide, .form-grid h2 { grid-column: auto; }
    .card { padding: 17px; border-radius: 15px; }
    .section-title { align-items: flex-start; }
    .request-search-form .search-actions, .export-actions { flex-wrap: wrap; }
    .request-status-tabs { flex-wrap: nowrap; margin-inline: -1px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
    .request-status-tab { flex: 0 0 auto; }
    .project-filter-tools { align-items: flex-start; flex-wrap: wrap; }
    .project-filter-tools span { flex-basis: 100%; margin-left: 0; }
    .report-result-title { flex-direction: column; }
    .petty-cash-heading { align-items: stretch; flex-direction: column; }
    .petty-cash-heading .export-actions { width: 100%; }
    .petty-cash-heading .export-actions .btn { flex: 1; }
    .report-filter-group { padding: 12px; }
    .report-filter-tools { align-items: flex-start; flex-wrap: wrap; }
    .report-filter-tools > span { flex-basis: 100%; margin-inline-end: 0; overflow: visible; text-overflow: clip; white-space: normal; }
    .report-filter-check-grid { max-height: 220px; }
    .petty-cash-filter-actions,.report-builder-actions,.approval-range-actions,.page-heading-actions { width: 100%; }
    .petty-cash-filter-actions { grid-column: auto; }
    .petty-cash-filter-actions .btn,.report-builder-actions .btn,.approval-range-actions .btn,.page-heading-actions .btn,.page-heading-actions .btn-back { flex: 1 1 135px; min-width: 0; }
    .petty-cash-ledger-filters > * { flex-basis: 100%; }
    .petty-cash-ledger-filters .search-actions { flex: 1 1 100%; }
    .approval-range-index,.approval-range-actions { grid-column: auto; }
}
@media (max-width: 440px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-identity p { display: none; }
    .page-identity h1 { font-size: 19px; }
    .auth-heading h2 { font-size: 21px; }
    .petty-cash-filter-actions .btn,.report-builder-actions .btn,.approval-range-actions .btn,.page-heading-actions > * { flex-basis: 100%; width: 100%; }
    .petty-cash-holder-actions .btn,.petty-cash-custodian-actions .btn { flex-basis: 100%; }
    .filter-chip,.report-filter-chip { width: 100%; border-radius: 11px; }
    .filter-chip > span,.report-filter-chip > span { flex: 1 1 auto; }
    .btn-back,.page-back-button,.back-link,.approval-range-actions .btn,.approval-range-actions .text-button { overflow-wrap: anywhere; text-align: center; white-space: normal; }
}

@media (max-width: 390px) {
    .report-filter-group,.petty-cash-holder-card,.petty-cash-custodian-card,.approval-range-row { padding: 11px; }
    .report-filter-check { min-height: 44px; padding: 7px 8px; }
    .petty-cash-ledger-stat { padding: 11px; }
}

.compact-stats { margin-bottom: 18px; }
.compact-stats .stat-card { min-height: 110px; }
.warehouse-access-list { display: grid; gap: 12px; margin-top: 14px; }
.warehouse-access-row { display: grid; grid-template-columns: minmax(150px,1fr) repeat(2,minmax(210px,1.4fr)) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #f8fbff; }
.warehouse-access-title { display: grid; gap: 4px; }
.warehouse-access-title small { color: var(--muted); }
.warehouse-access-row fieldset { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.warehouse-access-row legend { font-size: .78rem; color: var(--muted); margin-bottom: 7px; }
.warehouse-access-row label { display: flex; align-items: center; gap: 5px; font-size: .84rem; }
.warehouse-access-row input[type=checkbox] { width: auto; }
.status-pending_technical { background: #fff4d6; color: #825b00; }
.status-awaiting_receipt { background: #e8f2ff; color: #1556a0; }
.status-completed { background: #e5f8ed; color: #16733d; }
.status-rejected { background: #ffe8e8; color: #a32727; }
select[multiple] { min-height: 130px; padding: 8px; }
.recipient-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; padding: 16px; margin: 0; background: #f8fbff; border: 1px solid var(--border); border-radius: 13px; }
.recipient-fields[hidden] { display: none; }
.recipient-fields legend { padding: 0 8px; color: var(--navy); font-size: 12px; font-weight: 800; }
.recipient-summary { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.receipt-actions { justify-content: flex-start; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.pagination span { color: var(--muted); font-size: 11px; }
.catalog-filter-form { display: grid; grid-template-columns: minmax(220px,1.25fr) minmax(220px,1fr) minmax(190px,.8fr) auto; gap: 13px; align-items: end; margin-bottom: 16px; }
.catalog-table { min-width: 1050px; }
.catalog-origin { display: inline-flex; align-items: center; padding: 4px 8px; color: #52657d; background: #edf1f6; border-radius: 999px; font-size: 9px; font-weight: 800; }
.catalog-origin-user { color: #155d9c; background: #e3f1ff; }
.events-table { min-width: 1100px; }
.event-heading { align-items: flex-start; }
.event-heading > div:first-child { display: grid; gap: 5px; }
.event-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.event-toolbar form { margin: 0; }
.event-action { display: inline-block; padding: 4px 8px; color: #175ba9; background: #e8f2ff; border-radius: 8px; font-size: 10px; font-weight: 800; }
.event-details { max-width: 420px; direction: ltr; text-align: right; overflow-wrap: anywhere; color: #52657d; font-size: 10px; line-height: 1.8; }
.receipt-card { max-width: 1100px; margin-inline: auto; color: #172b46; }
.receipt-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 18px; }
.receipt-header { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 2px solid #173f75; }
.receipt-logo { display: grid; place-items: center; width: 62px; height: 62px; color: #fff; background: #1769c2; border-radius: 15px; font-size: 30px; font-weight: 900; }
.receipt-header h2 { margin: 0 0 5px; color: #0b2d5c; font-size: 21px; }
.receipt-header p { margin: 0; color: var(--muted); font-size: 11px; }
.receipt-header dl { display: grid; grid-template-columns: auto auto; gap: 5px 12px; margin: 0; }
.receipt-header dt,.receipt-meta dt { color: #667892; font-size: 9px; }
.receipt-header dd,.receipt-meta dd { margin: 0; font-size: 11px; font-weight: 750; }
.receipt-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.receipt-meta > div { min-height: 58px; padding: 11px 12px; background: #f7faff; border: 1px solid #dde8f5; border-radius: 9px; }
.receipt-meta dt { margin-bottom: 6px; }
.receipt-recipient { margin: 18px 0; }
.receipt-recipient h3 { padding-bottom: 8px; margin-bottom: 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.receipt-table { margin: 20px 0 40px; }
.receipt-signatures { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.receipt-signatures > .receipt-signature { display: grid; align-content: start; min-height: 175px; padding: 13px; border: 1px solid #9fb2c8; border-radius: 9px; text-align: center; }
.receipt-signature > strong { color: #173f75; font-size: 12px; }
.receipt-signature-people { display: grid; gap: 10px; height: 100%; margin-top: 9px; }
.receipt-signature-person { display: grid; justify-items: center; align-content: end; gap: 4px; min-width: 0; padding-top: 8px; border-top: 1px dashed #d5dfeb; }
.receipt-signature-person:first-child { border-top: 0; }
.receipt-signature-person img { display: block; width: 100%; max-width: 180px; height: 68px; object-fit: contain; object-position: center; background: #fff; }
.receipt-signature-person b { max-width: 100%; color: #243b59; font-size: 10px; overflow-wrap: anywhere; }
.receipt-signature-person small { color: #7b8ca0; font-size: 8px; }
.receipt-signature-placeholder,.receipt-manual-signature { display: grid; place-items: center; width: 100%; min-height: 62px; padding: 6px; color: #78889b; border: 1px dashed #b8c7d8; border-radius: 7px; font-size: 8px; }
.receipt-signature-empty { display: grid; place-items: center; min-height: 105px; color: #7b8ca0; font-size: 9px; line-height: 1.8; }
.profile-signature-preview { display: flex; align-items: center; gap: 20px; padding: 16px; margin: 15px 0; background: #f7faff; border: 1px solid #dce7f3; border-radius: 13px; }
.profile-signature-preview img { width: min(260px,45%); height: 105px; padding: 8px; object-fit: contain; background: #fff; border: 1px solid #dce5ef; border-radius: 9px; }
.profile-signature-preview > div { display: grid; gap: 5px; }
.profile-signature-preview span,.profile-signature-preview small { color: var(--muted); font-size: 10px; }
.signature-upload-form { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.signature-delete-form { margin-top: 12px; }
.profile-photo-preview { display: flex; align-items: center; gap: 20px; padding: 16px; margin: 15px 0; background: #f7faff; border: 1px solid #dce7f3; border-radius: 13px; }
.profile-photo-image { display: grid; place-items: center; flex: 0 0 auto; width: 118px; height: 118px; overflow: hidden; color: #fff; background: linear-gradient(145deg,#438ff2,#195cbe); border: 4px solid #fff; border-radius: 28px; box-shadow: 0 10px 30px rgba(23,105,224,.16); font-size: 34px; font-weight: 850; }
.profile-photo-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview > div { display: grid; gap: 5px; }
.profile-photo-preview span,.profile-photo-preview small { color: var(--muted); font-size: 10px; }
.profile-photo-upload-form { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); }
.profile-photo-delete-form { margin-top: 12px; }
.user-identity-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.avatar-user-list { width: 36px; height: 36px; border-color: #d7e4f2; border-radius: 10px; font-size: 12px; }

/* درخواست چندقلمی، قیمت‌گذاری ردیفی و انتخاب برنده ـ نسخه ۲۷ */
.request-items-editor,
.quotation-items-editor,
.award-selection-card,
.petty-cash-adjustments,
.password-reset-form {
    direction: rtl;
    min-width: 0;
}
.request-items-editor,
.quotation-items-editor {
    display: grid;
    gap: 13px;
    padding: 15px;
    background: #f7faff;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.request-item-row {
    position: relative;
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 15px;
    background: var(--surface);
    border: 1px solid #d5e2f1;
    border-radius: 12px;
}
.request-item-row:focus-within {
    border-color: #8ebaf5;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.request-item-row-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.45fr) minmax(180px, 1fr) repeat(2, minmax(120px, .65fr));
    gap: 12px;
    align-items: end;
    min-width: 0;
}
.request-item-row-grid > *,
.quotation-item-price-row > *,
.request-sort-form > *,
.petty-cash-adjustments > *,
.password-reset-form > * {
    min-width: 0;
}
.request-item-remove {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    padding: 9px 12px;
    color: #9b3041;
    background: #fff1f3;
    border: 1px solid #efc7ce;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.request-item-remove:hover {
    color: #7f2332;
    background: #ffe5ea;
    border-color: #eaaab5;
}
.request-items-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    min-height: 48px;
    padding: 10px 12px;
    color: #405673;
    background: #eaf3ff;
    border-radius: 10px;
    font-size: 11px;
}
.request-items-summary strong {
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
}
.request-items-summary .btn,
.request-items-editor > .btn,
.quotation-items-editor > .btn {
    min-height: 44px;
}
.quotation-item-price-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(110px, .55fr) minmax(145px, .75fr) minmax(160px, .8fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 13px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.quotation-item-price-row:first-child { border-radius: 10px 10px 0 0; }
.quotation-item-price-row:last-child {
    border-bottom: 0;
    border-radius: 0 0 10px 10px;
}
.quotation-item-price-row:only-child { border-radius: 10px; }
.quotation-item-price-row:hover { background: #fbfdff; }
.quotation-item-price-row input { min-height: 44px; }
.quote-line-total {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 9px 11px;
    color: var(--navy);
    background: #edf5ff;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.quotation-total-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    min-height: 49px;
    padding: 11px 13px;
    color: #405673;
    background: #eaf3ff;
    border: 1px solid #c9ddf7;
    border-radius: 10px;
    font-size: 11px;
}
.quotation-total-summary strong {
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}
.award-selection-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #c9ddf7;
    border-radius: 14px;
}
.award-selection-card > h3,
.award-selection-card > header {
    margin: 0;
    padding: 14px 16px;
    color: var(--navy);
    background: #edf5ff;
    border-bottom: 1px solid #c9ddf7;
}
.award-selection-card > .privacy-note { margin: 0; padding: 11px 16px; }
.award-items { display: grid; min-width: 0; }
.award-item {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(0, 1.8fr);
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border-top: 1px solid var(--border);
}
.award-item:first-child { border-top: 0; }
.award-item > header,
.award-item > div:first-child { min-width: 0; }
.award-item > header { display: grid; align-content: start; gap: 5px; }
.award-item > header strong { color: var(--navy); overflow-wrap: anywhere; }
.award-item > header small { color: var(--muted); }
.award-item h4 { margin: 0 0 5px; color: var(--navy); font-size: 12px; }
.award-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.award-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 9px;
    min-width: 0;
}
.award-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 9px 11px;
    color: #405673;
    background: #f8fbff;
    border: 1px solid #d9e5f2;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 700;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.award-option:hover { color: #174d91; background: #eef6ff; border-color: #a9c9f3; }
.award-option:has(input:checked) {
    color: #174d91;
    background: #e4f0ff;
    border-color: #6fa6ed;
    box-shadow: inset 0 0 0 1px rgba(23,105,224,.1);
}
.award-option input[type="radio"],
.award-option input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    accent-color: var(--blue);
}
.award-option strong,
.award-option small { min-width: 0; overflow-wrap: anywhere; }
.award-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    color: #315d9b;
    background: #edf5ff;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
}
.award-selection-card > .award-progress { margin: 0 16px 16px; }
.award-progress::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: var(--blue);
    border: 3px solid #cfe3ff;
    border-radius: 50%;
}

/* مرتب‌سازی درخواست‌ها و عملیات مدیریتی */
.request-sort-form {
    display: grid;
    grid-template-columns: minmax(185px, 1fr) minmax(125px, .65fr) auto;
    gap: 10px;
    align-items: end;
    min-width: min(100%, 520px);
    margin: 0;
}
.request-sort-form select,
.request-sort-form .btn { min-height: 44px; }
.request-title-cell {
    min-width: 220px;
    max-width: 380px;
    color: #263d5b;
    font-weight: 750;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.request-title-cell strong { display: block; color: var(--navy); font-size: 11.5px; }
.request-title-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.petty-cash-adjustments {
    display: block;
    background: #f7faff;
    border: 1px solid var(--border);
}
.petty-cash-adjustments .btn { min-height: 44px; }
.password-reset-list { display: grid; gap: 10px; }
.password-reset-item { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.password-reset-item > summary { min-height: 44px; padding: 11px 13px; color: var(--navy); cursor: pointer; font-weight: 850; }
.password-reset-item > summary small { margin-inline-start: 8px; color: var(--muted); font-weight: 600; }
.password-reset-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #f7faff;
    border: 1px solid var(--border);
    border-radius: 11px;
}
.password-reset-form input,
.password-reset-form .btn { min-height: 44px; }
.quotation-line-prices { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.quotation-line-prices li { display: flex; justify-content: space-between; gap: 10px; padding-top: 5px; border-top: 1px dashed #c9d8ea; font-size: 9.5px; }
.quotation-line-prices span { min-width: 0; overflow-wrap: anywhere; }
.quotation-line-prices strong { white-space: nowrap; color: var(--navy); }
.supplier-evaluation-list { display: grid; gap: 14px; }

:where(
    .request-item-remove,
    .request-items-editor button,
    .quotation-items-editor button,
    .award-option,
    .request-sort-form button,
    .petty-cash-adjustments button,
    .password-reset-form button
):focus-visible {
    outline: 3px solid rgba(23,105,224,.25);
    outline-offset: 2px;
}
@media (max-width: 980px) {
    .warehouse-access-row { grid-template-columns: 1fr; }
    .warehouse-access-row .btn { width: 100%; }
    .catalog-filter-form { grid-template-columns: 1fr 1fr; }
    .supplier-search-form { grid-template-columns: 1fr 1fr; }
    .request-search-form { grid-template-columns: 1fr 1fr; }
    .request-search-form .search-actions { grid-column: 1 / -1; }
    .request-item-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quotation-item-price-row { grid-template-columns: minmax(190px, 1.25fr) repeat(2, minmax(120px, .7fr)); }
    .quotation-item-price-row .quote-line-total { grid-column: 1 / -1; }
    .award-item { grid-template-columns: 1fr; }
    .password-reset-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .password-reset-form .btn { width: 100%; }
}
@media (max-width: 700px) {
    .recipient-fields,.receipt-meta,.receipt-header,.receipt-signatures,.catalog-filter-form,.supplier-search-form,.supplier-contact-row,.request-search-form { grid-template-columns: 1fr; }
    .quotation-create-form { grid-template-columns: minmax(0,1fr); }
    .quotation-create-form .quotation-file-picker { grid-column: auto; min-width: 0; }
    .quotation-create-form .quotation-description-field { grid-column: auto; }
    .quotation-create-form > .btn { width: 100%; }
    .supplier-search-form .search-actions { flex-wrap: wrap; }
    .supplier-contact-row .supplier-contact-remove,.supplier-contact-add { width: 100%; }
    .receipt-header dl { grid-template-columns: auto 1fr; }
    .event-heading,.event-toolbar { width: 100%; }
    .event-heading { flex-direction: column; }
    .event-toolbar { justify-content: stretch; }
    .event-toolbar .btn { width: 100%; }
    .profile-signature-preview { align-items: stretch; flex-direction: column; }
    .profile-signature-preview img { width: 100%; }
    .profile-photo-preview { align-items: flex-start; }
    .profile-photo-image { width: 92px; height: 92px; border-radius: 22px; }
    .quotation-existing-file { grid-template-columns: 1fr; align-items: start; }
    .request-list-heading { align-items: stretch; flex-direction: column; }
    .request-list-heading .export-actions { width: 100%; }
    .request-list-heading .export-actions .btn { flex: 1 1 140px; min-width: 0; }
    .request-items-editor,.quotation-items-editor { padding: 11px; }
    .request-item-row { padding: 12px; }
    .request-item-row-grid,.quotation-item-price-row,.request-sort-form,.petty-cash-adjustments,.password-reset-form { grid-template-columns: 1fr; }
    .request-item-remove { justify-self: stretch; width: 100%; }
    .request-items-summary,.quotation-total-summary { align-items: stretch; flex-direction: column; }
    .request-items-summary .btn,.request-items-editor > .btn,.quotation-items-editor > .btn,.request-sort-form .btn,.petty-cash-adjustments .btn,.password-reset-form .btn { width: 100%; }
    .quotation-item-price-row { padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
    .quotation-item-price-row + .quotation-item-price-row { margin-top: 2px; }
    .quotation-item-price-row .quote-line-total { grid-column: auto; }
    .award-item { padding: 13px; }
    .award-options { grid-template-columns: 1fr; }
    .request-sort-form { width: 100%; min-width: 0; }
    .request-title-cell { min-width: 190px; max-width: 300px; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff !important; }
    .sidebar,.mobile-overlay,.content-topbar,.no-print,.alert { display: none !important; }
    .app-shell,.app-main { display: block !important; }
    .container { max-width: none; padding: 0; }
    .receipt-card { padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
    .receipt-table { overflow: visible; }
    .receipt-table table { min-width: 0; }
    .receipt-table th,.receipt-table td { padding: 8px; font-size: 9px; }
    .receipt-signatures { grid-template-columns: repeat(3,minmax(0,1fr)); break-inside: avoid; page-break-inside: avoid; }
    .receipt-signature-person img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
    .request-item-row,
    .request-item-remove,
    .quotation-item-price-row,
    .award-option {
        scroll-behavior: auto;
        transition: none;
    }
}
