.shell.is-catalog-view .topbar {
  min-height:46px; height:46px; flex-basis:46px; margin-inline:10px;
  border:1px solid #fff9; border-top:0; border-radius:0 0 14px 14px;
  background:linear-gradient(105deg,#f4f2ff,#edf6fd 64%,#f4efff);
  box-shadow:0 5px 16px #48408012;
}
.shell.is-catalog-view > .main > .content {
  overflow:auto; padding:22px clamp(12px, 1.5vw, 26px) 24px;
  background:radial-gradient(ellipse at 0 0,#e1dbfa 0%,transparent 57%),
    radial-gradient(ellipse at 100% 0,#d8e9fc 0%,transparent 62%),
    linear-gradient(120deg,#f2f0fc,#edf2fa 66%,#e6e3fc);
}
@media (min-width:741px) {
  .shell.is-catalog-view.nav-collapsed { grid-template-columns:76px minmax(0,1fr); }
  .shell.is-catalog-view.nav-collapsed > .sidebar { width:76px; padding-inline:10px; }
}
.v2-catalog {
  --catalog-surface:radial-gradient(ellipse at 100% 0%,#e9e7fa 0%,transparent 64%) padding-box,
    linear-gradient(118deg,#fbfaff,#f4f7fe 70%,#f4f0ff) padding-box,
    linear-gradient(128deg,#d2c9f3,#d4def2 65%,#cbc3ed) border-box;
  color:var(--crm-ink);
}
.v2-catalog .v2-heading { gap:12px; margin:0 0 10px; align-items:start; }
.v2-catalog .v2-heading h1 { font-size:clamp(27px,2.15vw,34px); font-weight:750; }
.v2-catalog .button { transition:background var(--crm-motion),border-color var(--crm-motion),box-shadow var(--crm-motion); }
.v2-catalog .button.primary,.is-catalog-view .v2-legacy .button.primary {
  color:#fff; background:var(--crm-gradient); border-color:transparent; box-shadow:0 4px 12px #5145e533;
}
.v2-catalog .button.primary:hover:not(:disabled),.is-catalog-view .v2-legacy .button.primary:hover:not(:disabled) {
  box-shadow:0 5px 15px #5145e556; background:linear-gradient(115deg,#4941d9,#662fe3 60%,#7330e7);
}
.v2-catalog .v2-actions .button { min-height:40px; }
.v2-catalog :is(button,input,select,a):focus-visible { outline:2px solid var(--crm-indigo); outline-offset:2px; }
.v2-catalog-types { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.v2-catalog-types .button {
  display:flex; align-items:center; gap:8px; min-height:37px; padding:6px 14px;
  background:#f9f8ffd9; border-color:#d3cbee; font-weight:660;
}
.v2-catalog-types .icon { width:17px; height:17px; }
.v2-catalog-types small {
  display:inline-grid; place-items:center; padding:0 6px; min-width:22px; min-height:21px;
  border-radius:7px; color:var(--crm-indigo); background:#ece7fc; font-size:12px; font-variant-numeric:tabular-nums;
}
.v2-catalog-types .primary small { background:#ffffff36; color:#fff; }
.v2-catalog .v2-metrics {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px;
  margin:0 0 22px;
}
.v2-catalog .metric,.v2-catalog .v2-catalog-panel {
  border:1px solid transparent; border-radius:var(--crm-radius); background:var(--catalog-surface); box-shadow:var(--crm-shadow);
}
.v2-catalog .metric { min-height:86px; padding:14px 20px; gap:4px 16px; }
.v2-catalog .metric-icon {
  width:46px; height:46px; align-self:center; border-radius:12px;
  color:var(--crm-indigo); background:linear-gradient(130deg,#f1eaff,#e7dffb);
}
.v2-catalog .metric-icon .icon { width:25px; height:25px; }
.v2-catalog .metric-label { color:#465171; font-size:14px; }
.v2-catalog .metric-value {
  display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 12px; min-width:0;
  font-size:clamp(21px,1.8vw,28px); font-weight:750; font-variant-numeric:tabular-nums;
}
.v2-catalog-metric-detail {
  padding-inline-start:12px; border-inline-start:1px solid #a6a7c3;
  font-size:.65em; font-weight:540; color:#495675; letter-spacing:0;
}
.v2-catalog .row-sub { color:var(--crm-muted); }
.v2-catalog .v2-catalog-panel { padding:0 15px; }
.v2-catalog .v2-catalog-tools {
  display:grid; grid-template-columns:minmax(0,2.8fr) minmax(0,1fr) minmax(0,1.1fr);
  align-items:center; gap:12px; padding:12px 6px 16px; border-bottom:0;
}
.v2-catalog-panel[data-catalog-list="services"] .v2-catalog-tools {
  grid-template-columns:minmax(0,2.8fr) minmax(0,1fr);
}
.v2-catalog-search { position:relative; display:block; min-width:0; }
.v2-catalog-search > .icon {
  position:absolute; inset-inline-start:12px; top:50%; transform:translateY(-50%);
  pointer-events:none; width:16px; height:16px; color:var(--crm-muted);
}
.v2-catalog .v2-catalog-tools :is(input,select) {
  width:100%; min-width:0; max-width:none; min-height:41px;
  background:#f9faff; border-color:#d3d8ed; color:var(--crm-ink);
}
.v2-catalog .v2-catalog-search > input { padding-inline-start:36px; }
.v2-catalog .v2-catalog-period {
  position:relative; isolation:isolate; overflow:hidden;
  min-height:67px; margin:0 -16px; padding:12px 24px; gap:12px;
  color:#fff; background:var(--crm-gradient-dark); border:0; border-radius:14px 14px 0 0;
}
.v2-catalog-period::before,
.v2-catalog-period::after {
  content:""; position:absolute; z-index:-1; pointer-events:none;
  inset:auto -11% -110px auto; width:min(44%,620px); height:152px; border-radius:50%;
  background:linear-gradient(98deg,#7956ed00 5%,#8054ffba 43%,#6436ba1a 83%);
  transform:rotate(-9deg);
}
.v2-catalog-period::after {
  width:min(51%,720px); right:3%; bottom:-121px; transform:rotate(5deg);
  background:linear-gradient(87deg,#7956ed00 15%,#6338d284 59%,#5530a745);
}
.v2-catalog-period > strong {
  display:inline-flex; align-items:center; gap:12px; margin-inline-end:8px; font-size:16px;
}
.v2-catalog-period > strong .icon { width:23px; height:23px; }
.v2-catalog-period-arrow { display:grid; place-items:center; }
.v2-catalog-period-arrow .icon { width:21px; height:21px; color:#e5e1fa; }
.v2-catalog .v2-catalog-period :is(input.dtp-input,input[type=datetime-local]) {
  width:clamp(185px,16vw,240px); min-height:38px; padding-block:6px; font-size:14px;
  color:#fff; color-scheme:dark; background-color:#ffffff14; border-color:#ffffff43; border-radius:9px;
}
.v2-catalog-period input.dtp-input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23eee8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
}
.v2-catalog-period .button.secondary {
  min-height:38px; margin-inline-start:6px; padding-inline:18px;
  color:#fff; border-color:#dfd6ffb5; background:#ffffff08;
}
.v2-catalog-period .button.secondary:hover:not(:disabled) { border-color:#fff; background:#ffffff24; }
.v2-catalog .v2-catalog-period :is(button,input):focus-visible { outline-color:#e3d2ff; }
.v2-catalog-panel > .dtp-host .dtp-panel { margin:10px 0 0; }
.v2-catalog-panel .v2-table { border-radius:11px; border-bottom:1px solid #d9def0; }
.v2-catalog-panel .v2-table table { font-size:14px; }
.v2-catalog-panel .v2-table thead { background:linear-gradient(107deg,#ebe9f9,#e0e5f9 52%,#e2dbf5); }
.v2-catalog-panel .v2-table th {
  color:#465272; background:transparent; text-transform:none; letter-spacing:0; font-size:13px; font-weight:650;
}
.v2-catalog-panel .v2-table th { padding:12px 14px; }
.v2-catalog-panel .v2-table td { padding:7px 14px; min-height:48px; border-bottom-color:#dfe3f0; }
.v2-catalog-panel .v2-table td:first-child { width:35%; }
.v2-catalog-panel[data-catalog-list="equipment"] .v2-table td:first-child { width:42%; }
.v2-catalog-panel[data-catalog-list="equipment"] .v2-table td:last-child { width:1%; }
.v2-catalog-panel .v2-table td:last-child { text-align:right; }
.v2-catalog-panel .v2-table th:last-child { text-align:right; }
.v2-catalog-panel[data-catalog-list="equipment"] .v2-table tbody td:nth-child(n+3):nth-child(-n+4) { color:#55617d; }
.v2-catalog-panel .v2-table tr:last-child td { border-bottom:0; }
.v2-catalog-panel .v2-table tbody tr:is(:hover,:focus-within) { background:#eeebfc; }
.v2-catalog-panel .v2-table td > strong { font-variant-numeric:tabular-nums; }
.v2-catalog-product { display:flex; align-items:center; gap:12px; min-width:0; }
.v2-catalog-product .v2-thumb {
  float:none; flex:0 0 38px; width:38px; height:38px; margin:0;
  color:var(--crm-indigo); box-shadow:inset 0 0 12px #e4def890;
}
.v2-catalog-product .v2-thumb:not(.v2-photo) { border:0; background:linear-gradient(140deg,#f1eafb,#e7dffb); }
.v2-catalog-product .v2-thumb .icon { width:20px; height:20px; }
.v2-catalog-product .v2-link { overflow-wrap:anywhere; font-weight:680; }
.v2-catalog-product .row-sub { margin-top:2px; font-size:12px; }
.v2-catalog-balance { color:#566280; white-space:nowrap; font-variant-numeric:tabular-nums; }
.v2-catalog-balance .v2-success { color:#087343; }
.v2-catalog-balance .v2-warn { color:#895014; }
.v2-catalog-rate { font-variant-numeric:tabular-nums; }
.v2-catalog-rate + small { color:var(--crm-muted); white-space:nowrap; }
.v2-catalog-note { display:block; color:var(--crm-muted); overflow-wrap:anywhere; white-space:pre-line; max-width:44ch; }
.v2-catalog-status { padding:4px 8px; border-radius:6px; font-size:12px; font-weight:650; white-space:nowrap; }
.v2-catalog-status.in-stock { color:#176c50; background:#e8f8f0; }
.v2-catalog-status.low { color:#88470e; background:#fff1d7; }
.v2-catalog-status.empty { color:#9b3548; background:#ffeaf0; }
.v2-catalog-panel .empty-state { min-height:112px; display:grid; place-items:center; color:var(--crm-muted); }
.v2-catalog-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.v2-catalog-chevron {
  display:block; width:8px; height:8px; border:solid currentColor;
  border-width:1.7px 1.7px 0 0; transform:rotate(45deg);
}
.v2-catalog-panel[data-catalog-list="equipment"] .v2-table td:last-child .button {
  width:34px; min-height:34px; padding:0; border-color:transparent; background:transparent; color:#515f79;
}
.v2-catalog-panel[data-catalog-list="equipment"] .v2-table td:last-child .button:hover {
  color:var(--crm-indigo); border-color:#d8cff5; background:#f7f4ff;
}
.v2-catalog-footer { gap:12px; flex-wrap:wrap; min-height:62px; padding:12px 6px; color:#516080; font-size:14px; }
.v2-catalog-pages { display:flex; align-items:center; gap:4px; }
.v2-catalog-pages .button {
  min-width:34px; min-height:34px; padding:0 7px; font-size:13px;
}
.v2-catalog-pages .button.secondary { background:transparent; border-color:transparent; }
.v2-catalog-pages .button[data-direction] { border-color:#d8def3; background:#f5f5ff; }
.v2-catalog-pages .button.secondary:hover:not(:disabled) { border-color:#cec4f4; background:#f0eaff; }
.v2-catalog-pages [data-direction="previous"] .v2-catalog-chevron { transform:rotate(-135deg); }
.v2-catalog-page-gap { padding:0 3px; }

.v2-equipment-heading {
  display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:4px 0 24px;
}
.v2-equipment-heading .button { min-height:40px; }
.v2-equipment-heading .button[data-v2="back"] { width:40px; padding-inline:0; flex:none; }
.v2-equipment-heading .v2-thumb {
  float:none; flex:0 0 62px; width:62px; height:62px; margin:0; border-radius:12px;
  border-color:#e0d6fb; color:var(--crm-indigo);
}
.v2-equipment-heading .v2-thumb:not(.v2-photo) { background:linear-gradient(135deg,#eee6fc,#e3d8fa); }
.v2-equipment-heading .v2-thumb .icon { width:34px; height:34px; }
.v2-equipment-name { flex:1 1 160px; min-width:0; overflow-wrap:anywhere; }
.v2-equipment-name h1 { font-size:clamp(25px,2.4vw,36px); font-weight:750; }
.v2-equipment-name p { color:var(--crm-muted); margin:4px 0 0; }
.v2-equipment-tabs { margin-bottom:16px; }
.v2-equipment-period-wrap { margin:0 0 18px; }
.v2-equipment-detail .v2-catalog-period {
  min-height:74px; margin:0; border-radius:var(--crm-radius); box-shadow:var(--crm-shadow);
}
.v2-equipment-detail .v2-catalog-period :is(input.dtp-input,input[type=datetime-local]) {
  min-height:40px; color:var(--crm-ink); color-scheme:light;
  background-color:#fafaff; border-color:#cdc9e4;
}
.v2-equipment-detail .v2-catalog-period input.dtp-input {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23737b8d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
}
.v2-equipment-range-pending { margin:8px 0 0; color:var(--crm-muted); font-size:13px; }
.v2-equipment-layout { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr); align-items:start; gap:18px; }
.v2-equipment-layout > .stack { gap:14px; min-width:0; }
.v2-equipment-layout .panel {
  border:1px solid transparent; border-radius:var(--crm-radius); background:var(--catalog-surface); box-shadow:var(--crm-shadow);
}
.v2-equipment-layout .panel-head { gap:8px 12px; flex-wrap:wrap; padding:13px 18px; }
.v2-equipment-layout .panel-head h2 { display:flex; align-items:center; gap:9px; font-size:clamp(17px,1.4vw,21px); }
.v2-equipment-layout .panel-head h2 .icon { flex:none; width:22px; height:22px; }
.v2-equipment-layout .panel-head .button[data-value="bookings"] { color:var(--crm-indigo); border-color:transparent; background:transparent; }
.v2-equipment-layout .panel-head .button[data-value="bookings"]:hover { background:#eee6fc; }
.v2-equipment-stock {
  display:grid; grid-template-columns:minmax(0,1.45fr) repeat(2,minmax(0,1fr)); gap:10px;
  margin:0; padding:14px 18px 18px; font-variant-numeric:tabular-nums;
}
.v2-equipment-stock > div {
  min-width:0; display:flex; flex-direction:column; justify-content:center; gap:6px; min-height:80px;
  padding:12px 13px; border:1px solid #dcd9ef; border-radius:11px; background:#ffffff65;
}
.v2-equipment-stock dt { font-size:14px; color:var(--crm-muted); overflow-wrap:anywhere; }
.v2-equipment-stock dd { margin:0; font-size:25px; line-height:1.13; font-weight:750; }
.v2-equipment-stock .v2-equipment-available {
  position:relative; padding-inline-start:47px; color:#17352a; border-color:#d7ece2; background:linear-gradient(120deg,#e5f6ec,#f1faf5);
}
.v2-equipment-available dt { color:#12633f; font-weight:700; }
.v2-equipment-available dt .icon { position:absolute; inset-inline-start:13px; top:17px; width:23px; height:23px; color:#138653; }
.v2-equipment-stock .v2-equipment-available.is-empty { color:#582f15; border-color:#f1dec2; background:#fff4e1; }
.v2-equipment-available.is-empty dt,.v2-equipment-available.is-empty .icon { color:#8d4e13; }
.v2-equipment-empty { padding:22px 16px; text-align:center; color:var(--crm-muted); }
.v2-equipment-links { list-style:none; margin:0; padding:2px 16px 10px; }
.v2-equipment-links li + li { border-top:1px solid #e2e4f1; }
.v2-equipment-links .button {
  display:grid; width:100%; grid-template-columns:minmax(0,1fr) auto 12px; align-items:center;
  gap:8px 13px; min-height:43px; padding:8px 6px; border-color:transparent; background:transparent;
  text-align:left; font-size:14px; white-space:normal;
}
.v2-equipment-links .button > span:nth-child(2) { white-space:nowrap; color:var(--crm-muted); font-weight:550; }
.v2-equipment-link-title { overflow-wrap:anywhere; }
.v2-equipment-link-title small { display:block; margin-top:4px; color:var(--crm-muted); font-weight:450; }
.v2-equipment-link-title ~ .v2-catalog-chevron { color:var(--crm-muted); }
.v2-equipment-rent { padding:16px 18px 19px; }
.v2-equipment-rate {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 12px;
  margin-bottom:14px;
}
.v2-equipment-rate strong { font-size:clamp(23px,2.4vw,34px); letter-spacing:-.025em; }
.v2-equipment-rate span { font-weight:630; }
.v2-equipment-tariff-note {
  display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:8px;
  background:#fff1d8; color:#894a13; font-size:12px;
}
.v2-equipment-tariff-note .icon { width:16px; height:16px; flex:none; }
.v2-equipment-rent-line {
  display:flex; align-items:center; justify-content:space-between; gap:8px 12px; min-height:48px;
  flex-wrap:wrap; border-bottom:1px solid #e2e3f2; font-size:14px;
}
.v2-equipment-rent-line:has(+ .v2-equipment-total) { border-bottom:0; margin-bottom:8px; }
.v2-equipment-stepper {
  display:grid; grid-template-columns:35px minmax(48px,66px) 35px;
  border:1px solid #ded5f2; border-radius:9px; background:#fcfaff;
}
.v2-equipment-stepper .button { min-height:34px; border:0; background:transparent; color:var(--crm-indigo); font-size:18px; }
.v2-equipment-stepper input {
  width:100%; min-height:34px; padding:4px; border:solid #e9e2f6; border-width:0 1px; border-radius:0;
  text-align:center; appearance:textfield; background:transparent; font-variant-numeric:tabular-nums;
}
.v2-equipment-stepper input::-webkit-inner-spin-button,.v2-equipment-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
.v2-equipment-total {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px;
  padding:11px 14px; border-radius:11px; background:linear-gradient(110deg,#f0eafb,#e9e5fa);
  font-size:17px; font-weight:720;
}
.v2-equipment-total strong { font-size:23px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.v2-equipment-order-status { display:flex; align-items:center; gap:8px; min-height:23px; margin:12px 0 16px; font-size:13px; font-weight:620; }
.v2-equipment-order-status .icon { flex:none; width:18px; height:18px; }
.v2-equipment-order-status[data-tone="available"] { color:#106844; }
.v2-equipment-order-status[data-tone="shortage"] { color:#8d4e13; }
.v2-equipment-order-status[data-tone="pending"] { color:var(--crm-muted); }
.v2-equipment-rent > .button.primary { width:100%; min-height:44px; font-size:15px; }
.v2-equipment-note-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 15px; }
.v2-equipment-layout .v2-body:has(> .v2-table) > p { padding-block:4px; }

@media (max-width:1000px) {
  .v2-catalog .metric { padding:12px; gap:4px 10px; }
  .v2-catalog .metric-icon { width:38px; height:38px; }
  .v2-catalog-metric-detail { padding-inline-start:0; border:0; }
}
@media (max-width:870px) {
  .v2-equipment-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
}
@media (max-width:740px) {
  .shell.is-catalog-view > .main > .content { padding:12px; }
  .v2-catalog .v2-heading { flex-direction:row; flex-wrap:wrap; }
  .v2-catalog .v2-heading h1 { font-size:24px; }
  .v2-catalog-types,.v2-catalog .v2-metrics { margin-bottom:12px; }
  .v2-catalog-types .button { padding-inline:8px; }
  .v2-catalog .v2-metrics { gap:8px; }
  .v2-catalog .metric { min-height:66px; grid-template-columns:minmax(0,1fr); padding:8px; }
  .v2-catalog .metric-icon { display:none; }
  .v2-catalog .metric-label { font-size:12px; }
  .v2-catalog .metric-value { font-size:19px; }
  .v2-catalog .v2-catalog-panel { padding:0 9px; }
  .v2-catalog .v2-catalog-tools,.v2-catalog-panel[data-catalog-list="services"] .v2-catalog-tools {
    grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
    padding:10px 2px;
  }
  .v2-catalog-search { grid-column:1/-1; }
  .v2-catalog-panel .v2-table table { min-width:680px; }
  .v2-catalog .v2-catalog-period {
    display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    margin-inline:-10px; padding:12px; gap:8px;
  }
  .v2-catalog-period > strong { grid-column:1/-1; }
  .v2-catalog .v2-catalog-period :is(input.dtp-input,input[type=datetime-local]) { width:100%; min-width:0; }
  .v2-catalog-period .button.secondary { grid-column:1/-1; justify-self:start; margin:0; }
  .v2-catalog-footer { padding-inline:2px; font-size:13px; }
  .v2-catalog-pages .button { min-width:29px; }
  .v2-equipment-heading { gap:9px; margin-bottom:16px; }
  .v2-equipment-heading .v2-thumb { width:44px; height:44px; flex-basis:44px; }
  .v2-equipment-heading .v2-thumb .icon { width:26px; height:26px; }
  .v2-equipment-detail .v2-catalog-period { margin-inline:0; }
  .v2-equipment-stock { padding:12px; }
}
@media (max-width:420px) {
  .v2-catalog .v2-catalog-period { grid-template-columns:minmax(0,1fr); }
  .v2-catalog-period-arrow { display:none; }
  .v2-catalog-types .icon { display:none; }
  .v2-catalog-pages { gap:2px; }
  .v2-catalog-pages .button { min-width:25px; padding-inline:5px; }
  .v2-equipment-stock { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .v2-equipment-stock .v2-equipment-available { grid-column:1/-1; }
  .v2-equipment-stock > div { min-height:64px; }
  .v2-equipment-stock dd { font-size:21px; }
}
@media (prefers-reduced-motion:reduce) {
  .v2-catalog .button { transition:none; }
}

.v2-equipment-rate .button[data-v2="equipment-tool-price"] {
  display:inline-flex; align-items:baseline; gap:6px; padding:3px 7px; margin:-3px -7px;
  background:transparent; border-color:transparent; color:inherit; min-height:32px;
}
.v2-equipment-rate .button[data-v2="equipment-tool-price"] .icon { align-self:center; margin-inline-start:4px; color:var(--primary,#6243e8); }
.v2-equipment-rate .button[data-v2="equipment-tool-price"]:hover { background:rgba(108,67,234,.07); border-color:rgba(108,67,234,.2); }
.equipment-price-form { width:100%; }
.equipment-price-form > div,.equipment-card-actions,.equipment-card-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.equipment-price-form input { width:clamp(85px,10vw,132px); padding:7px 10px; font-size:18px; font-weight:700; }
.equipment-card-form { margin:0 0 12px; padding:14px; border:1px solid rgba(117,80,234,.22); border-radius:12px; background:rgba(255,255,255,.55); }
.equipment-card-form h3 { margin:0 0 12px; font-size:15px; }
.equipment-card-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.equipment-card-form label,.equipment-physical-count > div { display:grid; align-content:start; gap:5px; font-size:13px; }
.equipment-card-form :is(input,select) { width:100%; min-width:0; }
.equipment-card-wide { grid-column:1/-1; }
.equipment-card-form-actions { justify-content:flex-end; margin-top:12px; }
.equipment-card-error { margin:8px 0 0; font-size:13px; color:#a51f42; }
.equipment-inventory-stock { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.equipment-inventory-stock > div { display:grid; gap:4px; min-width:145px; padding:9px 12px; border:1px solid rgba(117,80,234,.16); border-radius:9px; background:rgba(117,80,234,.05); }
.equipment-inventory-stock :is(span,small),.equipment-card-help { font-size:13px; color:var(--muted,#52637a); }
.equipment-card-help { margin:0 0 12px; }
.equipment-unit-condition { display:inline-flex; padding:3px 8px; border-radius:7px; color:#3f2f7e; background:#eee8fa; white-space:nowrap; }
.equipment-unit-condition[data-condition="ready"] { color:#17603f; background:#e6f4eb; }
.equipment-unit-condition:is([data-condition="missing"],[data-condition="service"]) { color:#854800; background:#fff0d8; }
.equipment-physical-count { grid-template-columns:repeat(4,minmax(0,1fr)); }
.equipment-physical-count output { font-size:19px; font-weight:700; }
.v2-equipment-detail [data-difference="true"] { color:#925400; }
.equipment-accessory-fields { display:grid; grid-template-columns:minmax(140px,.75fr) minmax(0,1.6fr) minmax(70px,.32fr) auto; align-items:end; gap:8px; margin-bottom:10px; }
.v2-equipment-layout .panel:has(.equipment-accessory-results:not([hidden])) { position:relative; z-index:5; overflow:visible; }
.equipment-accessory-picker { position:relative; min-width:0; }
.equipment-accessory-picker > label { margin-bottom:5px; }
.equipment-accessory-search {
  display:flex; align-items:center; gap:8px; padding-inline:9px 4px;
  border:1px solid var(--crm-border); border-radius:8px; background:linear-gradient(110deg,#fff,#f9fdff);
}
.equipment-accessory-search:focus-within { border-color:var(--crm-violet); box-shadow:var(--crm-focus); }
.equipment-accessory-search > .icon { flex:none; width:16px; height:16px; color:var(--crm-muted); }
.equipment-card-form .equipment-accessory-search input {
  flex:1 1 0; min-height:32px; padding:5px 0; border:0; background:transparent; box-shadow:none; outline:none;
}
.equipment-accessory-search input::-webkit-search-cancel-button { display:none; }
.equipment-accessory-search button {
  display:grid; place-items:center; width:26px; height:26px; flex:none; padding:0; border:0; border-radius:6px;
  color:var(--crm-muted); background:transparent; cursor:pointer;
}
.equipment-accessory-search button[hidden] { display:none; }
.equipment-accessory-search button:hover { color:var(--crm-indigo); background:#eee8ff; }
.equipment-accessory-search button .icon { width:15px; height:15px; }
.equipment-accessory-results {
  position:absolute; inset:calc(100% + 5px) 0 auto; z-index:6; max-height:min(330px,50dvh);
  overflow:auto; overscroll-behavior:contain; padding:4px; border:1px solid #b59af4; border-radius:10px;
  background:linear-gradient(115deg,#fff,#f7fcff); box-shadow:0 13px 30px rgba(46,35,99,.19);
}
.equipment-accessory-results > button {
  display:flex; align-items:center; gap:9px; width:100%; padding:8px; min-height:42px; border:0;
  border-bottom:1px solid #e0e6f5; border-radius:7px; color:var(--crm-ink); background:transparent;
  font:inherit; text-align:left; cursor:pointer;
}
.equipment-accessory-results > button:last-child { border-bottom-color:transparent; }
.equipment-accessory-results > button:is(:hover,[aria-selected="true"]) { background:linear-gradient(110deg,#f1eaff,#edf8ff); }
.equipment-accessory-results > button > .icon { flex:none; width:17px; height:17px; color:var(--crm-violet); }
.equipment-accessory-results > button > .icon:last-child { margin-inline-start:auto; }
.equipment-accessory-results > button > span { display:grid; gap:2px; min-width:0; overflow-wrap:anywhere; }
.equipment-accessory-results strong { font-size:13px; font-weight:650; }
.equipment-accessory-results small,.equipment-accessory-empty { color:var(--crm-muted); font-size:12px; }
.equipment-accessory-results .equipment-accessory-availability { color:var(--crm-success); }
.equipment-accessory-results .equipment-accessory-availability.is-shortage { color:#8b570e; }
.equipment-accessory-results .equipment-accessory-create-option { color:var(--crm-violet); }
.equipment-accessory-empty { margin:0; padding:8px; }
.equipment-card-fields { min-width:0; margin:0; padding:0; border:0; }
.equipment-accessory-quick {
  margin:0 0 12px; padding:12px; border:1px solid #d7c7f6; border-radius:10px;
  background:linear-gradient(115deg,#f5f0ff,#f5fbff);
}
.equipment-accessory-quick h3 { display:flex; align-items:center; gap:7px; margin-bottom:10px; }
.equipment-accessory-quick h3 > .icon { width:17px; height:17px; color:var(--crm-violet); }
.equipment-accessory-quick-fields { display:grid; grid-template-columns:minmax(0,2fr) minmax(128px,1fr); gap:8px; }
.equipment-accessory-quick-fields:has(select) { grid-template-columns:minmax(0,2fr) minmax(128px,1fr) minmax(0,1fr); }
.v2-equipment-detail .panel-head:has(.equipment-card-actions) { flex-wrap:wrap; }
@media (max-width:640px) {
  .equipment-accessory-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); padding-bottom:9px; border-bottom:1px solid rgba(117,80,234,.16); }
  .equipment-accessory-picker { grid-column:1/-1; }
  .equipment-card-form .equipment-accessory-search input { font-size:16px; }
  .equipment-accessory-quick-fields:has(select) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .equipment-accessory-quick-fields:has(select) > label:first-child { grid-column:1/-1; }
  .equipment-physical-count { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .equipment-accessory-fields .button { justify-self:end; }
}
.equipment-create-drawer.drawer { width: min(100%, 680px); }
.equipment-create-drawer .drawer-body { gap: 16px; }
.equipment-entry-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--crm-border);
  border-radius: 11px;
  background: #f6f5ff;
}
.equipment-entry-modes .button {
  min-height: 36px;
  padding: 6px 8px;
  border-color: transparent;
  justify-content: center;
  background: transparent;
  color: var(--crm-ink);
}
.equipment-entry-modes .button[aria-pressed="true"] {
  background: var(--crm-gradient);
  box-shadow: 0 2px 6px rgb(66 49 171 / 22%);
  color: #fff;
}
.equipment-entry-modes .button:not([aria-pressed="true"]):hover { background: #ece8fc; }
.equipment-create-drawer :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--crm-indigo);
  outline-offset: 2px;
}
.equipment-create-form, .equipment-model-picker { display: grid; min-width: 0; gap: 14px; }
.equipment-create-form .field, .equipment-model-picker .field { margin: 0; min-width: 0; }
.equipment-create-drawer .field :is(input, select, textarea) { min-width: 0; min-height: 39px; border-radius: 9px; }
.equipment-create-drawer .field textarea { min-height: 72px; }
.equipment-create-drawer .catalog-model-market { grid-column: 1 / -1; }
.equipment-create-drawer [data-model-count] { margin: 0; }
.equipment-all-categories { margin-top: 6px; }
.equipment-all-categories > summary, .equipment-create-details > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.equipment-all-categories > summary::-webkit-details-marker,
.equipment-create-details > summary::-webkit-details-marker { display: none; }
.equipment-all-categories > summary { justify-content: center; min-height: 32px; color: var(--crm-indigo); }
.equipment-create-details > summary {
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--crm-border);
  border-radius: 9px;
  background: #f5f3ff;
  color: var(--crm-ink);
  font-weight: 650;
}
.equipment-create-drawer summary .icon { width: 16px; height: 16px; }
.equipment-create-drawer details[open] > summary .icon { transform: rotate(180deg); }
.equipment-create-drawer details[open] > :last-child { margin-top: 8px; }
.equipment-create-details small { display: block; margin-top: 4px; color: var(--crm-muted); }
.equipment-selected-model, .equipment-model-matches > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.equipment-model-matches {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #e6cf9d;
  border-radius: 9px;
  background: #fffbf1;
  color: #694a16;
  overflow-wrap: anywhere;
}
.material-drawer.drawer { width: min(100%, 680px); }
.material-drawer :is(.field, .form-error) { margin: 0; min-width: 0; }
.material-form [name="unit"]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; }
.material-form .material-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--crm-border);
  border-radius: 9px;
  background: var(--crm-surface);
}
.material-form .material-amount:focus-within {
  border-color: var(--crm-indigo);
  box-shadow: var(--crm-focus);
}
.material-form .material-amount > input {
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.material-form .material-amount > input:focus { outline: none; }
.material-amount > span {
  display: grid;
  align-content: center;
  padding-inline: 10px;
  max-width: 12ch;
  border-radius: 0 8px 8px 0;
  background: #eeebfc;
  color: var(--crm-muted);
  overflow-wrap: anywhere;
}
.material-amount > span:empty { display: none; }
