/**
 * @package     Plumrocket_Estimateddelivery
 * @copyright   Copyright (c) 2022 Plumrocket Inc. (https://plumrocket.com)
 * @license     https://plumrocket.com/license   End-user License Agreement
*/

#row_estimateddelivery_delivery_holidays .grid table.data colgroup col[width="0"],
#row_estimateddelivery_shipping_holidays .grid table.data colgroup col[width="0"] {
    display: none;
}

#row_estimateddelivery_delivery_holidays .grid table.data colgroup col[width="0"],
#row_estimateddelivery_shipping_holidays .grid table.data colgroup col[width="0"] {
    display: none;
}

.dateperiod-hide {
    display: none;
}

#row_estimateddelivery_delivery_holidays select[name="groups[delivery][fields][holidays][value][_TMPNAME_][date_type]"],
#row_estimateddelivery_delivery_holidays select[name="groups[delivery][fields][holidays][value][_TMPNAME_][recurring_date][month]"],
#row_estimateddelivery_delivery_holidays select[name="groups[delivery][fields][holidays][value][_TMPNAME_][recurring_date][day]"],
#row_estimateddelivery_delivery_holidays .groups-delivery-fields-holidays-value-_TMPNAME_-recurring_date-text,
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][single_day]"],
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][single_day]"] + .ui-datepicker-trigger,
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][period][start]"],
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][period][start]"] + .ui-datepicker-trigger,
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][period][end]"],
#row_estimateddelivery_delivery_holidays input[name="groups[delivery][fields][holidays][value][_TMPNAME_][period][end]"] + .ui-datepicker-trigger,
#row_estimateddelivery_delivery_holidays .groups-delivery-fields-holidays-value-_TMPNAME_-remove {
    display: none;
}

#row_estimateddelivery_shipping_holidays select[name="groups[shipping][fields][holidays][value][_TMPNAME_][date_type]"],
#row_estimateddelivery_shipping_holidays select[name="groups[shipping][fields][holidays][value][_TMPNAME_][recurring_date][month]"],
#row_estimateddelivery_shipping_holidays select[name="groups[shipping][fields][holidays][value][_TMPNAME_][recurring_date][day]"],
#row_estimateddelivery_shipping_holidays .groups-shipping-fields-holidays-value-_TMPNAME_-recurring_date-text,
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][single_day]"],
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][single_day]"] + .ui-datepicker-trigger,
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][period][start]"],
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][period][start]"] + .ui-datepicker-trigger,
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][period][end]"],
#row_estimateddelivery_shipping_holidays input[name="groups[shipping][fields][holidays][value][_TMPNAME_][period][end]"] + .ui-datepicker-trigger,
#row_estimateddelivery_shipping_holidays select[name="groups[shipping][fields][holidays][value][_TMPNAME_][date_type]"],
#row_estimateddelivery_shipping_holidays .groups-shipping-fields-holidays-value-_TMPNAME_-remove {
    display: none;
}

#row_estimateddelivery_delivery_holidays table tbody tr,
#row_estimateddelivery_shipping_holidays table tbody tr {
    display: none;
}
#row_estimateddelivery_delivery_holidays table tbody.loaded tr,
#row_estimateddelivery_shipping_holidays table tbody.loaded tr {
    display: table-row;
}

.dateperiod-type select,
.dateperiod-type input.input-text {
    width: 150px !important;
}

.dateperiod-recurring-date select {
    width: 110px !important;
    display: inline-block;
}

table tr[id^="row_estimateddelivery"] table.data {
    width: 545px;
    min-width: 545px;
}

table tr[id^="row_estimateddelivery"] table.data tr th:first-child {
    width: 151px;
}

table tr[id^="row_estimateddelivery"] table.data tr th:last-child {
    width: 81px;
}

/* General DataGrid styles */
#row_estimateddelivery_delivery_holidays .admin__data-grid-wrap,
#row_estimateddelivery_shipping_holidays .admin__data-grid-wrap {
    padding-top: 0;
    margin-bottom: 0;
}

.form-list #row_estimateddelivery_delivery_default_text td.value,
#row_estimateddelivery_shipping_time_after_enable td.value {
    min-width: 590px!important;
    max-width: 590px!important;
    width: 590px!important;
}

table #row_estimateddelivery_delivery_holidays table td,
table #row_estimateddelivery_shipping_holidays table td {
    padding: 10px;
}

table #row_estimateddelivery_delivery_holidays table td input[type='text'],
table #row_estimateddelivery_shipping_holidays table td input[type='text'] {
    width: auto;
    max-width: 130px;
}

table #row_estimateddelivery_delivery_holidays table td button + button,
table #row_estimateddelivery_shipping_holidays table td button + button {
    display: none;
}

table #row_estimateddelivery_delivery_holidays table td:first-child,
table #row_estimateddelivery_shipping_holidays table td:first-child {
    width: 185px;
}

table #row_estimateddelivery_delivery_holidays table td:last-child,
table #row_estimateddelivery_shipping_holidays table td:last-child {
    width: 110px;
}

table #row_estimateddelivery_delivery_holidays table td:first-child select,
table #row_estimateddelivery_shipping_holidays table td:first-child select {
    width: 100%!important;
}

table #row_estimateddelivery_delivery_holidays td select.dateperiod-month,
table #row_estimateddelivery_shipping_holidays td select.dateperiod-month {
    width: 132px!important;
}

#row_estimateddelivery_delivery_dynamic_date_range .value .input-text,
#row_estimateddelivery_delivery_static_date_range .value .input-date {
  max-width: 140px;
}

#row_estimateddelivery_shipping_dynamic_date_range .value .input-text,
#row_estimateddelivery_shipping_static_date_range .value .input-date {
  max-width: 140px;
}
