: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; }
.calculator { max-width: 760px; }
.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; }
.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 { margin: 24px 0 12px; }
.full-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.full-list-tools { display: flex; gap: 8px; }
.full-list-heading h2 { margin: 0 0 4px; }
.full-list-table { min-width: 920px; }
.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 { 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; }
.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; }
.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, .data-table:not(.price-table) tr:first-child td { 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: left; }
.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; }
.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; } .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 print {
  @page { size: landscape; margin: 12mm; }
  body * { visibility: hidden; }
  #full-price-content, #full-price-content * { visibility: visible; }
  #full-price-content { position: absolute; inset: 0; width: 100%; }
  #full-price-content .full-list-tools { display: none; }
  #full-price-content .data-table-wrap { overflow: visible; border: 0; }
  #full-price-content .full-list-table { min-width: 0; font-size: 11px; }
  #full-price-content .full-list-table th, #full-price-content .full-list-table td { padding: 7px 9px; }
}
