/* New Theme Custom Styles */

/* Keep direct E-Way Bills on the same content surface as the ERP modules. */
.direct-eway-bills { min-height: 100%; }
.direct-eway-bills .ewb-header-actions { text-align: right; }
.direct-eway-bills .ewb-panel .panel-title { font-size: 15px; font-weight: 600; }
.direct-eway-bills .ewb-panel { margin-bottom: 20px; }
.direct-eway-bills .ewb-panel md-input-container { height: 32px; margin: 18px 0 10px; }
.direct-eway-bills .ewb-transport-form .panel-body { padding-top: 8px; padding-bottom: 8px; }
.direct-eway-bills .ewb-transport-form .ewb-invoice-summary { padding-bottom: 0; }
.direct-eway-bills .ewb-transport-form md-input-container { margin-top: 16px; margin-bottom: 8px; }
.direct-eway-bills .ewb-transport-form .ewb-transport-row > div { padding-left: 15px; padding-right: 15px; }
.direct-eway-bills .ewb-filter-actions { padding-top: 18px; }
.direct-eway-bills .ewb-filter-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; }
.direct-eway-bills .ewb-filter-row:before, .direct-eway-bills .ewb-filter-row:after { display: none; }
.direct-eway-bills .ewb-filter-row > div { float: none; width: auto; min-width: 0; }
.direct-eway-bills .ewb-transport-row, .direct-eway-bills .ewb-document-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.direct-eway-bills .ewb-document-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.direct-eway-bills .ewb-transport-row:before, .direct-eway-bills .ewb-transport-row:after,
.direct-eway-bills .ewb-document-row:before, .direct-eway-bills .ewb-document-row:after { display: none; }
.direct-eway-bills .ewb-transport-row > div, .direct-eway-bills .ewb-document-row > div { float: none; width: auto; min-width: 0; }
.direct-eway-bills .ewb-invoice-table { min-width: 620px; }
.direct-eway-bills .table td { color: inherit; }
.direct-eway-bills .table td, .direct-eway-bills .table th { padding: 10px 12px; }
.direct-eway-bills .table md-radio-button { margin: 0; width: 24px; min-height: 20px; }
.direct-eway-bills .ewb-selected-row { background-color: var(--primaryLight, #eaf2f8); }
.direct-eway-bills .ewb-pagination, .direct-eway-bills .ewb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.direct-eway-bills .ewb-pagination { justify-content: flex-end; }
.direct-eway-bills .ewb-cancel-form { border-top: 1px solid #eaeff0; margin-top: 20px; padding-top: 16px; }
.company-settings-dialog { width: 480px; max-width: calc(100% - 32px); }
.company-settings-dialog md-input-container { height: 32px; margin: 18px 0 10px; }
.company-settings-dialog .company-gst-options { padding: 0; }
.company-settings-dialog .company-gst-options md-checkbox { display: block; margin: 12px 0 18px; }
.company-settings-dialog .company-gst-options .md-label { white-space: normal; line-height: 1.5; }
@media (max-width: 767px) {
    .direct-eway-bills .wrapper-md { padding: 12px; }
    .direct-eway-bills .ewb-header-actions { text-align: left; margin-top: 12px; padding-left: 0; }
    .direct-eway-bills .ewb-filter-actions { padding-top: 0; }
    .direct-eway-bills .ewb-filter-row { grid-template-columns: minmax(0, 1fr); }
    .direct-eway-bills .ewb-transport-row, .direct-eway-bills .ewb-document-row { grid-template-columns: minmax(0, 1fr); }
    .direct-eway-bills .ewb-pagination { justify-content: space-between; }
}

.dc-ewb-dialog { width:1000px; max-width:calc(100% - 24px); }
