.sales-admin-page {
  color: #231c2a;
  background: radial-gradient(circle at 88% 5%, rgba(124, 58, 237, .12), transparent 28%), #f2eff5;
}
.sales-admin-page .dashboard-sidebar { border-right: 1px solid #352b40; background: linear-gradient(180deg, #22192c, #15101b); }
.sales-admin-page .logo-symbol { color: #fff; background: linear-gradient(145deg, #9f7aea, #6d28d9); }
.sales-admin-main { width: 100%; max-width: none; min-width: 0; padding: 34px 38px 56px; }
.sales-admin-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.sales-admin-topbar h1 { margin: 3px 0 7px; color: #241b2d; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; }
.sales-admin-panel { overflow: hidden; border: 1px solid #d2c6da; border-radius: 18px; background: #fff; box-shadow: 0 18px 46px rgba(62, 41, 77, .11); }
.sales-admin-toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(280px, 1.25fr) 145px auto; align-items: end; gap: 16px; padding: 22px 24px; border-bottom: 1px solid #d8cfdd; background: linear-gradient(135deg, #fcfbfd, #f3edf7); }
.sales-admin-toolbar h2 { margin: 4px 0 0; color: #31233d; font-size: 23px; }
.sales-admin-toolbar label { display: grid; gap: 6px; color: #5d5066; font-size: 13px; font-weight: 900; }
.sales-admin-toolbar input, .sales-admin-toolbar select { min-height: 50px; padding: 0 13px; border: 1px solid #bfb0c8 !important; border-radius: 9px !important; color: #2e2336 !important; background: #fff !important; font-size: 16px; box-shadow: none !important; }
.sales-admin-count { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 15px; border-radius: 9px; color: #5b2688; background: #eadff2; white-space: nowrap; }
.sales-admin-panel > .dashboard-status { margin: 22px 24px; }
.sales-admin-table-wrap { width: 100%; overflow-x: auto; }
.sales-admin-table { width: 100%; min-width: 1380px; border-collapse: collapse; }
.sales-admin-table th, .sales-admin-table td { padding: 15px 13px; border-bottom: 1px solid #ded6e3; text-align: left; vertical-align: top; }
.sales-admin-table th { position: sticky; top: 0; color: #4a3757; background: #eee7f1; font-size: 13px; font-weight: 950; letter-spacing: .025em; text-transform: uppercase; }
.sales-admin-table td { color: #352d3a; background: #fff; font-size: 15px; line-height: 1.4; }
.sales-admin-table tbody tr:nth-child(even) td { background: #faf8fb; }
.sales-admin-table tbody tr:hover td { background: #f4eef8; }
.sales-admin-table td:nth-child(1), .sales-admin-table td:nth-child(4), .sales-admin-table td:nth-child(6) { font-weight: 850; white-space: nowrap; }
.sales-admin-client { display: grid; gap: 3px; min-width: 165px; }
.sales-admin-client strong { color: #241b2b; font-size: 16px; }
.sales-admin-client small, .sales-admin-subtle { color: #776b7d; font-size: 12px; font-weight: 750; }
.sales-admin-products { display: grid; gap: 5px; min-width: 220px; }
.sales-admin-product { display: grid; gap: 1px; padding-bottom: 5px; border-bottom: 1px dashed #d9cfde; }
.sales-admin-product:last-child { padding-bottom: 0; border-bottom: 0; }
.sales-admin-product small { color: #76687c; }
.sales-admin-payment { display: grid; gap: 4px; min-width: 128px; }
.sales-admin-payment strong { color: #4f2273; }
.sales-admin-edit-button { min-height: 40px; padding: 0 14px; border: 1px solid #6d28d9; border-radius: 9px; color: #fff; background: #6d28d9; font-weight: 900; cursor: pointer; white-space: nowrap; }
.sales-admin-edit-button:hover { background: #5720ae; }
.sales-admin-row-actions { display: grid; gap: 7px; min-width: 112px; }
.sales-admin-delete-button { min-height: 40px; padding: 0 12px; border: 1px solid #c63d4c; border-radius: 9px; color: #a51f31; background: #fff5f6; font-weight: 900; cursor: pointer; white-space: nowrap; }
.sales-admin-delete-button:hover:not(:disabled) { color: #fff; background: #b42337; }
.sales-admin-delete-button:disabled { border-color: #d9d3dc; color: #8b818f; background: #f4f2f5; cursor: not-allowed; }
.sales-admin-empty { padding: 42px !important; color: #786d7e !important; text-align: center !important; }
.sales-admin-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 17px 24px; border-top: 1px solid #d8cfdd; background: #faf8fb; }
.sales-admin-pagination button { min-height: 42px; padding: 0 16px; border: 1px solid #baaac5; border-radius: 9px; color: #452356; background: #fff; font-weight: 850; cursor: pointer; }
.sales-admin-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.sales-admin-pagination span { min-width: 110px; color: #55475d; font-weight: 900; text-align: center; }

.sales-admin-dialog { width: min(920px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: hidden; border: 1px solid #c9bbd1; border-radius: 19px; color: #2c2333; background: #fff; box-shadow: 0 28px 90px rgba(23, 14, 29, .35); }
.sales-admin-dialog::backdrop { background: rgba(19, 12, 24, .68); backdrop-filter: blur(3px); }
.sales-admin-dialog-shell { display: grid; max-height: calc(100vh - 30px); grid-template-rows: auto minmax(0, 1fr) auto; }
.sales-admin-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 25px; border-bottom: 1px solid #d8cfdd; background: #f5eff8; }
.sales-admin-dialog-header h2 { margin: 4px 0 3px; font-size: 28px; }
.sales-admin-dialog-header p { margin: 0; color: #716578; }
.sales-admin-dialog-close { width: 42px; height: 42px; border: 1px solid #c6b7ce; border-radius: 50%; color: #4b3857; background: #fff; font-size: 27px; cursor: pointer; }
.sales-admin-dialog-content { display: grid; gap: 16px; padding: 20px 24px 25px; overflow-y: auto; background: #f7f5f8; }
.sales-admin-form-section { padding: 19px; border: 1px solid #d9d0de; border-radius: 13px; background: #fff; }
.sales-admin-form-section h3 { margin: 0 0 14px; color: #362440; font-size: 18px; }
.sales-admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sales-admin-field-grid label { display: grid; gap: 7px; color: #584b61; font-size: 13px; font-weight: 900; }
.sales-admin-field-wide { grid-column: 1 / -1; }
.sales-admin-field-grid input, .sales-admin-field-grid select, .sales-admin-field-grid textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #bdaeC7 !important; border-radius: 8px !important; color: #2e2435 !important; background: #fff !important; font: inherit; font-size: 16px; box-shadow: none !important; }
.sales-admin-field-grid textarea { min-height: 96px; resize: vertical; }
.sales-admin-field-grid output { display: flex; min-height: 48px; align-items: center; padding: 0 12px; border: 1px solid #d0c3d7; border-radius: 8px; color: #59267e; background: #f1e8f6; font-size: 17px; font-weight: 950; }
.sales-admin-check { align-content: end; }
.sales-admin-check input[type="checkbox"] { width: 24px; min-height: 24px; height: 24px; padding: 0; }
.sales-admin-items-section > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sales-admin-items-section > div:first-child p { margin: 0; color: #776b7d; font-size: 13px; }
.sales-admin-dialog-items { display: grid; gap: 8px; }
.sales-admin-dialog-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-left: 4px solid #8b5fb0; border-radius: 7px; background: #f6f1f8; }
.sales-admin-dialog-item span { color: #736778; font-size: 13px; font-weight: 750; }
.sales-admin-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 24px; border-top: 1px solid #d8cfdd; background: #fff; }
.sales-admin-dialog-footer p { margin: 0; color: #a22d37; font-weight: 800; }
.sales-admin-dialog-footer > div { display: flex; gap: 10px; margin-left: auto; }
.sales-admin-cancel, .sales-admin-save { min-height: 46px; padding: 0 17px; border-radius: 9px; font-weight: 900; cursor: pointer; }
.sales-admin-cancel { border: 1px solid #bbaec3; color: #493852; background: #fff; }
.sales-admin-save { border: 1px solid #6d28d9; color: #fff; background: #6d28d9; }
.sales-admin-save:disabled { opacity: .55; cursor: wait; }
.sales-delete-dialog { width: min(660px, calc(100vw - 30px)); }
.sales-delete-dialog-header { background: #fff2f3; }
.sales-delete-dialog-header h2 { color: #8f1d2d; }
.sales-delete-warning { border-color: #f0a5ad; color: #7d1d2b; background: #fff5f6; }
.sales-delete-warning strong { display: block; font-size: 17px; }
.sales-delete-warning p { margin: 8px 0 0; color: #70414a; line-height: 1.55; }
.sales-delete-reason { display: grid; gap: 8px; color: #493852; font-size: 14px; font-weight: 900; }
.sales-delete-reason textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid #bbaec3; border-radius: 9px; color: #2e2435; background: #fff; font: inherit; font-size: 16px; resize: vertical; }
.sales-delete-audit { margin: 12px 0 0; color: #706475; font-size: 13px; line-height: 1.5; }
.sales-admin-delete-confirm { min-height: 46px; padding: 0 17px; border: 1px solid #a91f32; border-radius: 9px; color: #fff; background: #b42337; font-weight: 900; cursor: pointer; }
.sales-admin-delete-confirm:disabled { opacity: .55; cursor: wait; }

@media (max-width: 1000px) {
  .sales-admin-main { padding: 28px 18px 48px; }
  .sales-admin-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .sales-admin-topbar, .sales-admin-dialog-footer, .sales-admin-items-section > div:first-child { align-items: stretch; flex-direction: column; }
  .sales-admin-toolbar, .sales-admin-field-grid { grid-template-columns: 1fr; }
  .sales-admin-field-wide { grid-column: auto; }
  .sales-admin-dialog-header, .sales-admin-dialog-content, .sales-admin-dialog-footer { padding-inline: 15px; }
  .sales-admin-dialog-footer > div { width: 100%; margin-left: 0; }
  .sales-admin-dialog-footer button { flex: 1; }
}
