:root { font-family: Arial, sans-serif; color: #1d2723; background: #f4f6f3; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eaf0e7; }
.login-card { width: min(100%, 390px); padding: 32px; background: #fff; border: 1px solid #d7ded8; border-radius: 8px; box-shadow: 0 16px 40px rgba(32, 54, 41, .10); }
.brand { font-weight: 700; color: #1f6544; letter-spacing: 0; }
h1 { margin: 18px 0 8px; font-size: 28px; letter-spacing: 0; }
p { margin: 0; color: #5f6c65; line-height: 1.45; }
label { display: grid; gap: 7px; margin-top: 18px; font-size: 14px; font-weight: 700; }
input, select { min-height: 44px; padding: 10px 12px; border: 1px solid #b9c4bc; border-radius: 5px; background: #fff; color: #1d2723; }
input:focus, select:focus { outline: 3px solid #d4e7d8; border-color: #397950; }
button { min-height: 44px; border: 0; border-radius: 5px; cursor: pointer; font-weight: 700; }
.login-card button, .quote-button { width: 100%; margin-top: 24px; background: #236b48; color: #fff; }
.login-card button:hover, .quote-button:hover { background: #185338; }
small { display: block; margin-top: 16px; color: #708078; font-size: 12px; }
.notice, .form-message { min-height: 20px; margin-top: 12px; color: #ad3830; font-size: 14px; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid #d9e0da; }
.topbar-right, .account, .view-nav { display: flex; align-items: center; }
.topbar-right { gap: 22px; }
.account { gap: 16px; color: #5f6c65; font-size: 14px; }
.view-nav { gap: 4px; }
.nav-button { min-height: 34px; padding: 0 10px; background: transparent; color: #4d5d53; font-size: 14px; font-weight: 700; }
.nav-button.active { color: #1f6544; border-bottom: 2px solid #1f6544; border-radius: 0; }
.icon-button { min-height: 32px; padding: 0 10px; background: transparent; color: #236b48; border: 1px solid #b9c4bc; }
.workspace { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.workspace.full-price-workspace { max-width: 1240px; }
.workspace.exw-full-workspace { max-width: 1840px; }
.calculator { max-width: 760px; }
.calculator.full-price-layout { max-width: 100%; }
.calculator.exw-calculator { max-width: 980px; }
.calculator.exw-full-layout { max-width: 100%; }
.section-heading { margin-bottom: 28px; }
.delivery-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; padding: 24px; background: #fff; border: 1px solid #d9e0da; border-radius: 8px; }
.delivery-fields label { margin: 0; }
.delivery-fields.exw-delivery-fields { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
.calculator-mode { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid #d9e0da; }
.mode-button { min-height: 38px; padding: 0 13px; background: transparent; color: #526158; border-radius: 0; }
.mode-button.active { color: #1f6544; border-bottom: 2px solid #1f6544; }
.full-price-list { margin-top: 18px; }
.full-list-heading { display: flex; justify-content: flex-end; margin: 24px 0 12px; }
.full-list-tools { display: flex; gap: 8px; }
.full-list-heading h2 { margin: 0 0 4px; }
.price-list-document { display: flex; flex-direction: column; max-width: 820px; min-height: 1050px; margin: 0 auto; padding: 0 32px 26px; background: #fff; border: 1px solid #9baea1; box-shadow: 0 10px 28px rgba(27, 58, 39, .10); }
.price-list-top-rule, .price-list-bottom-rule { height: 10px; background: #0d4f3c; }
.price-list-top-rule { margin: 0 -32px; }
.price-list-bottom-rule { margin: 24px -32px -26px; }
.price-list-document-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding-top: 24px; }
.price-list-document-title { min-width: 0; }
.price-list-kicker { margin: 0; color: #0d4f3c; font-size: 26px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.price-list-logo { display: block; width: 156px; max-height: 62px; object-fit: contain; object-position: left center; }
.price-list-document-rule { height: 2px; margin: 14px 11% 34px; background: #1d2723; }
.price-list-commercial-terms { display: grid; gap: 2px; margin: 0 0 28px; color: #111; font-size: 14px; }
.price-list-commercial-terms p { color: inherit; }
.price-list-document .data-table-wrap { overflow: visible; border: 0; border-radius: 0; }
.price-list-document .full-list-table { border: 1px solid #315c45; }
.price-list-document .full-list-table th, .price-list-document .full-list-table td { border: 1px solid #6b8775; }
.price-list-document .full-list-table th { background: #e8f0e9; color: #173f2b; font-weight: 700; }
.price-list-document .full-list-table .qualities-heading { background: #0d4f3c !important; color: #fff !important; }
.price-list-document .full-list-table tr:last-child td { border-bottom: 1px solid #6b8775; }
.price-list-document-footer { margin-top: auto; color: #141414; font-size: 12px; line-height: 1.4; }
.additional-information h3, .price-list-company-details h3 { margin: 0 0 6px; color: #0d4f3c; font-size: 12px; }
.additional-information p, .price-list-company-details p { color: inherit; }
.additional-information { margin-top: 22px; color: #141414; font-size: 12px; line-height: 1.4; }
.price-list-company-details { display: grid; grid-template-columns: 1.25fr 1.1fr .9fr; gap: 0; margin-top: 36px; padding-top: 11px; border-top: 1px solid #8aa393; }
.price-list-company-details > div { min-height: 78px; padding: 0 15px; border-right: 1px solid #c2cec5; }
.price-list-company-details > div:first-child { padding-left: 0; }
.price-list-company-details > div:last-child { padding-right: 0; border-right: 0; }
.price-list-company-details strong { color: #153f2b; }
.full-list-table { min-width: 920px; }
.calculator.full-price-layout .full-list-table { min-width: 0; table-layout: fixed; }
.calculator.full-price-layout .full-list-table th, .calculator.full-price-layout .full-list-table td { padding-left: 7px; padding-right: 7px; }
.exw-full-layout .full-list-table { min-width: 0; table-layout: fixed; }
.exw-margin-groups { display: grid; gap: 20px; }
.exw-margin-table-wrap { overflow: visible; }
.exw-margin-table { min-width: 0; table-layout: fixed; font-size: 12px; }
.exw-margin-table th, .exw-margin-table td { padding: 9px 8px; white-space: normal; }
.exw-margin-table input { width: 100%; min-width: 0; min-height: 38px; padding: 6px; text-align: center; font-size: 13px; }
.product-table { margin-top: 18px; overflow-x: auto; border: 1px solid #d9e0da; border-radius: 8px; background: #fff; }
.product-table-header, .product-line { min-width: 730px; display: grid; grid-template-columns: 36px 128px 145px 130px 100px minmax(112px, 1fr) 36px; gap: 10px; align-items: center; padding: 12px 14px; }
.product-table-header.exw-product-table, .product-line.exw-product-line { min-width: 830px; grid-template-columns: 32px 118px 138px 118px 98px 126px minmax(90px, 1fr) 32px; gap: 10px; padding: 12px; }
.product-table-header { border-bottom: 1px solid #d9e0da; background: #f2f6f1; color: #526158; font-size: 12px; font-weight: 700; }
.product-lines { display: grid; }
.product-line { border-bottom: 1px solid #e5eae5; }
.product-line:last-child { border-bottom: 0; }
.product-line select { width: 100%; min-height: 40px; padding: 8px 9px; }
.line-margin { width: 100%; min-height: 40px; padding: 8px 9px; }
.full-margin { display: block; max-width: 280px; margin: 18px 0 12px; }
.product-number { color: #52705d; font-weight: 700; text-align: center; }
.line-price { color: #1b5639; font-size: 16px; }
.remove-line { width: 30px; min-height: 30px; padding: 0; background: transparent; border: 1px solid #c8d1c9; color: #526158; font-size: 20px; font-weight: 400; line-height: 1; }
.remove-line:hover { color: #932d28; border-color: #d8a39f; background: #fff7f6; }
.form-actions, .quote-tools { display: flex; gap: 10px; align-items: center; }
.form-actions { margin-top: 20px; }
.quote-button { width: 220px; margin-top: 0; }
.secondary-button { min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid #aebbb1; color: #245f42; }
.secondary-button:hover { background: #edf4ed; }
.secondary-button:disabled { cursor: not-allowed; color: #9aa69e; background: #f5f6f4; }
.quotation { margin-top: 28px; padding: 24px; background: #e7f0e7; border: 1px solid #bed3c0; border-radius: 8px; }
.quotation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.quotation-heading span { color: #4f6354; font-size: 13px; font-weight: 700; }
h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: 0; color: #1b5639; }
#quote-text { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #bfd0c0; color: #1d2723; font-family: Arial, sans-serif; font-size: 16px; line-height: 1.7; white-space: pre-wrap; }
.management-panel, .history-panel { max-width: 1040px; }
.history-table { min-width: 760px; }
.history-table td { vertical-align: top; }
.management-section { margin-top: 28px; }
.management-section h2 { margin-bottom: 14px; }
.management-tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid #d9e0da; overflow-x: auto; }
.management-tab { min-height: 40px; padding: 0 14px; background: transparent; color: #526158; border-radius: 0; white-space: nowrap; }
.management-tab.active { color: #1f6544; border-bottom: 2px solid #1f6544; }
.management-panel .management-section { margin-top: 0; }
.management-panel .management-section > h2 { margin-bottom: 12px; }
.management-panel .price-editor-tools { margin: 0 0 14px; }
.management-panel .section-note { margin: 12px 0 14px; }
.management-panel .price-adjustments { margin-top: 14px; }
.data-table-wrap { overflow: auto; border: 1px solid #d9e0da; border-radius: 8px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table td, .data-table th { padding: 10px 12px; border-bottom: 1px solid #e5eae5; white-space: nowrap; text-align: left; font-weight: 400; }
.data-table th { background: #f2f6f1; color: #435449; font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.price-section { margin-top: 34px; }
.price-section h2 { font-size: 18px; }
.price-table { min-width: 920px; }
.price-table th, .price-table td { text-align: center; }
.price-table th:first-child, .price-table td:first-child { text-align: center; }
.price-table .qualities-heading { background: #e5efe5; color: #1d5c3d; letter-spacing: 0; }
.price-adjustments { margin-top: 10px; color: #4d6456; font-size: 13px; }
.price-editor-tools { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.price-editor-tools .quote-button { width: auto; padding: 0 14px; }
.price-editor-tools .form-message { margin: 0; }
.price-cell { width: 72px; min-height: 32px; padding: 4px 6px; text-align: center; border: 1px solid transparent; background: transparent; }
.price-cell:disabled { color: inherit; opacity: 1; }
.price-cell:not(:disabled) { border-color: #9fb7a5; background: #fff; }
.transport-table { min-width: 620px; }
.transport-table input { width: 130px; min-height: 36px; padding: 6px 8px; }
.transport-table .secondary-button { min-height: 34px; padding: 0 10px; }
.transport-form { display: grid; grid-template-columns: 180px 220px auto; align-items: end; gap: 14px; max-width: 650px; margin-top: 18px; }
.transport-form label { margin: 0; }
.transport-form button { min-height: 44px; padding: 0 16px; background: #236b48; color: #fff; }
.transport-form .form-message { grid-column: 1 / -1; margin: 0; }
.user-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 760px; }
.user-form fieldset { grid-column: 1 / -1; border: 1px solid #d7e1d7; margin: 0; padding: 12px; }
.user-form fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; font-weight: 500; }
.user-form input[type="checkbox"] { width: auto; }
.user-form-actions { display: flex; align-items: end; gap: 10px; }
.user-form button, .user-form .form-message { width: fit-content; align-self: end; }
.user-actions { display: flex; gap: 6px; }
.user-actions .secondary-button { min-height: 32px; padding: 0 9px; }
.danger-button { color: #9a3029; border-color: #d8a39f; }
.danger-button:hover { color: #78241f; background: #fff5f4; }
.section-note { color: #4d6456; margin-top: -8px; }
@media (max-width: 640px) { .topbar { padding: 0 16px; } .topbar-right { gap: 8px; } .account span { display: none; } .nav-button { padding: 0 7px; } .workspace { padding: 32px 16px; } .delivery-fields { grid-template-columns: 1fr; padding: 18px; } .product-table { margin-left: -16px; margin-right: -16px; border-radius: 0; } .calculator.full-price-layout .full-list-table { min-width: 920px; table-layout: auto; } .quote-button { width: 100%; } .form-actions { display: grid; grid-template-columns: 1fr; } .quotation { padding: 18px; } .quotation-heading { align-items: stretch; flex-direction: column; } .quote-tools { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .user-form { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .transport-form { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4 portrait; margin: 12mm 11mm; }
  html, body { background: #fff; }
  body.printing-price-list .topbar, body.printing-price-list .section-heading, body.printing-price-list .delivery-fields, body.printing-price-list .calculator-mode, body.printing-price-list #selected-products, body.printing-price-list #quotation, body.printing-price-list #form-message, body.printing-price-list #calculate-full-list, body.printing-price-list .full-list-heading { display: none !important; }
  body.printing-price-list .workspace, body.printing-price-list .calculator, body.printing-price-list #calculator-form, body.printing-price-list .full-price-list { max-width: none; margin: 0; padding: 0; }
  body.printing-price-list .full-price-list { margin: 0; }
  body.printing-price-list #full-price-content { position: relative; width: 100%; height: 273mm; overflow: hidden; background: #fff; }
  body.printing-price-list .price-list-document { position: relative; display: block; width: 100%; max-width: none; height: 273mm; min-height: 0; padding: 0 22px 18px; overflow: hidden; border: 0; box-shadow: none; background: #fff; }
  body.printing-price-list .price-list-top-rule { margin: 0 -22px; height: 8px; }
  body.printing-price-list .price-list-bottom-rule { margin: 18px 0 0; height: 8px; }
  body.printing-price-list .price-list-document-header { padding-top: 18px; }
  body.printing-price-list .price-list-logo { width: 124px; max-height: 50px; }
  body.printing-price-list .price-list-kicker { font-size: 23px; }
  body.printing-price-list .price-list-document-rule { margin: 10px 11% 24px; }
  body.printing-price-list .price-list-commercial-terms { margin-bottom: 19px; font-size: 12px; }
  body.printing-price-list .full-list-table { min-width: 0; font-size: 9px; }
  body.printing-price-list .full-list-table th, body.printing-price-list .full-list-table td { padding: 4px 3px; }
  body.printing-price-list .price-list-document-footer { position: absolute; right: 22px; bottom: 18px; left: 22px; margin: 0; font-size: 10px; }
  body.printing-price-list .additional-information h3, body.printing-price-list .price-list-company-details h3 { font-size: 10px; }
  body.printing-price-list .additional-information { margin-top: 16px; font-size: 10px; }
  body.printing-price-list .price-list-company-details { margin-top: 0; font-size: 9px; }
  body.printing-price-list .price-list-company-details > div { min-height: 58px; }
}
