.view[data-module='customer-category'] .customer-category-page > .horizontal-tabs { padding: 4px 0 0 12px; }
.customer-category-page .master-layout { margin: 0 9px 18px 7px; padding: 18px 10px; background: #f8fafe; border: 1px solid #a6aab2; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ; min-height: calc(100vh - 176px); }
.customer-category-page .master-group { width: 49%; max-width: none; gap: 9px; }
.customer-category-page .master-group h2 { font-size: 22px; font-weight: 400; color: #316bfe; border-color: #c9cdd5; padding-bottom: 6px; }
.customer-category-page .master-group .field { display: grid; grid-template-columns: 33% minmax(0,1fr); align-items: center; padding-left: 20px; min-height: 34px; margin: 0; gap: 0; font-size: 15px; }
.customer-category-page .field:has([name='isDefault']) { grid-template-columns: 33% 24px 1fr; }
.customer-category-page .field:has([name='sub']) { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; margin-top: 10px; }
.customer-category-page input[type='checkbox'] { height: 20px; width: 20px; margin: 0; }
.customer-category-page input[name='name'] { height: 34px; width: 88%; }
.customer-category-page label { color: #000; }
.view[data-module='customer-category'] .history-grid .data-grid td { height: 41px; font-size: 15px; color: #000; }
.customer-page > .horizontal-tabs { padding: 4px 0 0 12px; }
.customer-page > .form-section { margin: 0 9px 18px 7px; padding: 18px 10px; background: #f8fafe; border: 1px solid #a6aab2; border-radius: 8px; box-shadow: 0 1px 2px rgba(16, 29, 66, 0.06), 0 2px 8px rgba(16, 29, 66, 0.06) ; min-height: calc(100vh - 176px); }
.customer-page .customer-content:not(.partner-general) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; align-content: start; }
.customer-page .partner-group { max-width: none; min-width: 0; margin: 0; }
.customer-page .partner-group > h2 { margin: 0 0 10px; border-bottom: 1px solid #c9cdd5; padding-bottom: 6px; font-size: 22px; font-weight: 400; color: #316bfe; }
.customer-page .partner-group > .field { display: grid; grid-template-columns: 32.4% minmax(0,1fr); gap: 0; align-items: center; padding-left: 20px; margin: 9px 0; min-height: 34px; font-size: 15px; }
.customer-page .field label { color: #000; font-size: 15px; }
.customer-page .field input:not([type='checkbox']):not([type='radio']), .customer-page .field select, .customer-page .lookup { min-height: 34px; height: 34px; font-size: 16px; }
.customer-page .partner-general { gap: 36px; }
.customer-page .partner-general .field { grid-template-columns: 32.4% minmax(0,1fr); gap: 0; }
.customer-page .partner-general .number-controls > select { width: min(400px,calc(100% - 43px)); }
.customer-page .field:has(> .checkbox-caption) { grid-template-columns: 32.4% 24px minmax(0,1fr); }
.customer-page input[type='checkbox'], .customer-page input[type='radio'] { height: 20px; width: 20px; margin: 0; }
.customer-page .partner-note { margin-left: 34%; border-left: 4px double #a6aab2; padding-left: 10px; font-size: 13px; font-style: italic; color: red; line-height: 20px; }
.customer-page .customer-content[data-section='contact'], .customer-page .customer-content[data-section='balance'], .customer-page .customer-content[data-section='other'] { display: flex; flex-direction: column; gap: 22px; }
.customer-page .customer-content[data-section='other'] > .partner-group { width: 49%; }
.customer-page .partner-grid-toolbar { display: flex; align-items: center; gap: 10px; height: 34px; }
.customer-page .partner-grid-toolbar h3 { min-width: 123px; margin: 0; font-size: 23px; font-weight: 400; color: #000; }
.customer-page [data-section='balance'] .partner-grid-toolbar h3 { min-width: 256px; }
.customer-page .partner-add { display: inline-flex; align-items: center; justify-content: center; padding: 0; min-width: 55px; height: 34px; background: white; color: #204bb5; border: 1px solid #2b62fe; font-size: 27px; line-height: 1; }
.customer-page .partner-rows .grid-scroll { min-height: 170px; background: #fff; border-bottom: 1px solid #d9dde5; }
.customer-page [data-section='contact'] .grid-scroll { min-height: 290px; }
.customer-page .data-grid th { text-align: center; height: 35px; background: #55637e; }
.customer-page .data-grid td { height: 41px; font-size: 15px; }
.customer-page .customer-address .address-same { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 5px; margin: 18px 0 5px; }
.customer-page .customer-address-part { display: flex; margin: 0; border: 1px solid #b7bbc3; border-radius: 8px; overflow: hidden; background: #fff; }
.customer-page .customer-address-part label { background: #f3f5f9; font-size: 12px; color: #848890; padding: 8px 5px; }
.customer-page .customer-address-part label { white-space: nowrap; }
.customer-page .partner-general .partner-address-fields .customer-address-part input { height: 32px; min-height: 32px; padding: 5px; }
.customer-page .customer-address-part input:disabled, .customer-page .customer-address-part textarea:disabled { background: #f5f7fb; }
.customer-page .customer-address-part input, .customer-page .customer-address-part textarea { width: 100%; border: 0; border-radius: 0; resize: vertical; min-width: 0; }
.customer-page .customer-address-part textarea { height: 75px; min-height: 75px; }
.customer-page .address-street, .customer-page .address-province, .customer-page .address-country { grid-column: 1/-1; }
.customer-page .customer-tax-address { padding-left: 25%; }
.customer-page [name='taxIdType'] { max-width: 122px; }
.customer-page [data-section='tax'] .partner-group:first-child .field:has(input:not([type='checkbox'])) { padding-right: 17%; grid-template-columns: 40% minmax(0,1fr); }
.customer-page .customer-limit-mode { display: flex; align-items: center; gap: 5px; margin: 16px 20px; font-size: 15px; color: #000; }
.customer-page .customer-limit-rule { display: grid; grid-template-columns: 20px minmax(0,1fr) minmax(120px,260px) 38px; align-items: center; margin: 8px 20px 8px 46px; gap: 12px; min-height: 34px; }
.customer-page .customer-limit-rule > label { min-width: 0; color: #000; font-size: 15px; }
.customer-page .customer-limit-rule > input:not([type='checkbox']) { width: 100%; min-width: 0; height: 34px; padding: 4px 8px; text-align: right; }
.customer-page .customer-limit-rule > input[name='limitAgeDays'] { width: 122px; justify-self: end; }
.customer-page [data-section='other'] .field:has(textarea) { align-items: start; }
.customer-page [data-section='other'] .field:has(textarea) > label { padding-top: 8px; }
.customer-page [data-section='other'] textarea { height: 100px; }
.customer-row-dialog { min-width: 450px; }
.customer-row-dialog .field { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 4px; align-items: center; margin: 9px 0; font-size: 15px; }
.customer-contact-dialog { width: 600px; max-width: 100%; padding: 0 50px 0 0; }
.customer-contact-dialog .field { grid-template-columns: 200px minmax(0,1fr); }
.customer-row-dialog input, .customer-row-dialog select { min-height: 34px; }
.customer-row-dialog textarea { height: 100px; }
.contact-full-name { display: flex; gap: 12px; }
.contact-full-name select { width: 90px; flex: none; }
.contact-full-name input { width: 100%; min-width: 0; }
.customer-owing-dialog { width: 450px; }
.customer-owing-dialog textarea { height: 70px; }
dialog:has(.customer-contact-dialog) { width: 620px; max-width: calc(100vw - 24px); }
dialog:has(.customer-contact-dialog) .dialog-body { overflow-x: hidden; }
.customer-contact-dialog { width: 100%; padding-right: 50px; }
.customer-row-dialog .field:has(textarea) { align-items: start; }
.customer-row-dialog .field:has(textarea) > label { padding-top: 8px; }
@media(max-width:999px) {
  .customer-page .customer-content:not(.partner-general), .customer-page .partner-general { grid-template-columns: 1fr; }
  .customer-category-page .master-group, .customer-page .customer-content[data-section='other'] > .partner-group { width: 100%; }
  .customer-row-dialog { min-width: 0; width: 100%; padding-right: 0; }
  .customer-contact-dialog .field { grid-template-columns: 35% minmax(0,1fr); }
  .customer-page .customer-limit-rule { margin-left: 20px; grid-template-columns: 20px minmax(0,1fr) 110px 30px; gap: 8px; }
  .customer-page .customer-limit-rule > input[name='limitAgeDays'] { width: 100%; }
}
