.event-tickets-datetimes-title {
    display: inline-block;
    font-size: var(--ee-font-size-bigger);
    padding: 0;
    float: left;
}

#espresso_events-create_new-event_date_info,
#espresso_events-edit-event_date_info,
#espresso_events-create_new-event_editor_event_datetimes_help_tab {
    top: 18px;
    left: 5px;
}

.datetime-title {
    font-size: var(--ee-font-size-big);
    font-weight: bold;
}

.datetime-summary {
    border-bottom: 1px solid #eeeeee;
    height: 28px;
    margin: 1em;
    margin-inline-start: -10px;
    padding-bottom: 1em;
}


#datetime-editing-dtts-table {
    border-collapse: collapse;
}

#datetime-editing-dtts-table thead {
    border-bottom: 2px solid #eeeeee;
    font-weight: bold;
}

#add-new-event-datetime-table {
    width: 77%;
}


.datetime-edit-table td:first-child,
.add-new-ticket-table td:first-child {
    max-width: 30%;
}


.datetime-edit-table tr.advanced-dtt-edit-row td {
    height: auto;
}

.datetime-edit-table td:nth-child(2),
.datetime-edit-table td:nth-child(3),
.add-new-ticket-table td:nth-child(2),
.add-new-ticket-table td:nth-child(3) {
    width: calc(var(--ee-base-ui-scale) * 11);
}

.datetime-edit-table td:nth-child(4),
.add-new-ticket-table td:nth-child(4),
.datetime-edit-table td:nth-child(5),
.datetime-edit-table td:nth-child(6),
.add-new-ticket-table td:nth-child(5),
.add-new-ticket-table td:nth-child(6) {
    text-align: right;
    width: calc(var(--ee-base-ui-scale) * 5);
}

.datetime-edit .datetime-edit-table td:last-child,
.add-new-ticket-table td:last-child {
    max-width: 20%;
}

.datetime-edit .datetime-edit-table label {
    font-weight: bold;
}

@media all and (max-width: 1363px) {
    #add-new-event-datetime-table {
        width: 100%;
    }
}

@media all and (min-width: 1277px) {

    .table-padding-top {
        position: relative;
        top: 4px;
    }

}

@media all and (min-width: 900px) {
    .table-padding-top {
        position: relative;
        top: 20px;
    }
}

@media all and (min-width: 896px) and (max-width: 899px) {
    .table-padding-top {
        position: relative;
        top: 3px;
    }
}

@media all and (max-width: 896px) {
    .table-padding-top {
        position: relative;
        top: 20px;
    }
}

.clickable {
    cursor: pointer;
}

.ticket-archived td {
    background-color: #e6e6e6;
}


.ee-editor-footer-container {
    margin-top: 20px;
}

.ee-editing-container {
    display: inline-block;
    margin-inline-start: 0;
    padding-block: calc(var(--ee-padding-pico) / 2);
    padding-inline: calc(var(--ee-padding-pico) / 2);
    border: 1px solid transparent;
    border-start-start-radius: 3px;
    border-start-end-radius: 3px;
}

.ee-editing-container .button {
    margin-inline: 0 !important;
}

.ee-edit-editing {
    background-color: #f8f8f8;
    border-left-color: #eeeeee;
    border-right-color: #eeeeee;
    border-top-color: #eeeeee;
    height: 40px;
    margin-block-end: -4px;
    position: relative;
    top: 3px;
    /* top: calc(var(--ee-padding-pico) * 1.95); */
    /* left: calc(var(--ee-padding-pico) * 3.00); */

}

.ee-edit-editing:after {
    content: "";
    background-color: #f8f8f8;
    border: 1px solid transparent;
    border-left-color: #eeeeee;
    border-right-color: #eeeeee;

}

.ee-edit-editing .button {
    position: relative;
    top: -3px;
}


.ee-editor-id-container .ee-item-id {
    color: #888899;
    font-size: var(--ee-font-size-bigger);
    font-weight: 900;
}

.ticket-icon:before,
.clone-entity:before,
.trash-entity:before,
.gear-icon:before,
.datetime-edit-table .dashicons-admin-page:before,
.datetime-edit-table .dashicons-lock:before,
.datetime-edit-table .dashicons-groups:before,
.datetime-edit-table .dashicons-move:before,
.ticket-table .dashicons-admin-page:before,
.ticket-table .dashicons-lock:before,
.ticket-table .dashicons-groups:before,
.ticket-table .dashicons-move:before {
    font-size: var(--ee-font-size-big);
}


.datetime-tickets-edit h5 {
    margin-top: 1em;
}

.ticket-fieldset,
.datetime-tickets-edit {
    background-color: #f8f8f8;
    border: 1px solid #eeeeee;
    border-radius: 3px;
    padding: 1em 1.5em 2em;
    margin-bottom: 1rem;
}


.button-column {
    padding-left: 10px;
}


.ee-text-inp,
.ee-large-text-inp,
.ee-small-text-inp {
    width: 100%;
}

.ee-small-text-inp {
    min-width: 50px;
    max-width: 100%;
}


.ee-full-textarea-inp {
    width: 100%;
    height: 100px;
}

.edit-price-PRC_desc {
    /* height: 70px;*/
}


.datetime-ticket {
    display: inline-block;
    padding: 5px;
    margin-left: 5px;
    background-color: #dddddd;
    -webkit-border-radius: 0 8px 8px 0;
    -moz-border-radius: 0 8px 8px 0;
    border-radius: 0 8px 8px 0;
    border-left: solid 4px #cccccc;
}

.datetime-ticket.ticket-status-TKS {
    background-color: transparent;
    border-left: solid 4px var(--ee-status-color-purple);
    /* prev: #FCB93C */
}

.datetime-ticket.ticket-status-TKO {
    background-color: transparent;
    border-left: solid 4px var(--ee-status-color-green);
    /* prev: #70CC50 */
}

.datetime-ticket.ticket-status-TKP {
    background-color: transparent;
    border-left: solid 4px var(--ee-status-color-blue);
    /* prev: #00B1CA */
}

.datetime-ticket.ticket-status-TKA {
    background-color: transparent;
    border-left: solid 4px var(--ee-status-color-yellow);
    /* prev: #8A549A */
}

.datetime-ticket.ticket-status-TKE {
    background-color: transparent;
    border-left: solid 4px var(--ee-status-color-grey);
    /* prev: #A39D9C */
}


.datetime-ticket .gear-icon {
    margin-left: 3px;
}

.ticket-selected {
    background-color: var(--ee-status-color-dark-green);
}

/**
 * ticket selected background color for various wp3.8+ admin themes
 */
.admin-color-fresh .ticket-selected {
    background-color: var(--ee-status-color-charcoal);
    color: #ffffff;
}

.admin-color-light .ticket-selected {
    background-color: var(--ee-status-color-grey);
    color: #ffffff;
}

.admin-color-blue .ticket-selected {
    background-color: var(--ee-status-color-blue);
    color: #ffffff;
}

.admin-color-coffee .ticket-selected {
    background-color: var(--ee-status-color-dark-grey);
    color: #ffffff;
}

.admin-color-ectoplasm .ticket-selected {
    background-color: var(--ee-status-color-purple);
    color: #ffffff;
}

.admin-color-midnight .ticket-selected {
    background-color: var(--ee-status-color-charcoal);
    color: #ffffff;
}

.admin-color-ocean .ticket-selected {
    background-color: var(--ee-status-color-light-blue);
    color: #ffffff;
}

.admin-color-sunrise .ticket-selected {
    background-color: var(--ee-status-color-orange);
    color: #ffffff;
}


#event-and-ticket-form-content table {
    border-collapse: collapse;
    width: 100%;
}

#event-and-ticket-form-content table thead {
    border-bottom: 2px solid #eeeeee;
    font-weight: bold;
}

#event-and-ticket-form-content table tbody td {
    padding: .0625rem;
}


#event-and-ticket-form-content table tbody td:last-child {
    width: calc(var(--ee-icon-button-size-tiny) * 5.25);
}


.ee-ticket-sortable .sortable-drag-handle,
.ee-dtt-sortable .sortable-drag-handle {
    cursor: move;
}


#event-and-ticket-form-content table tbody tr:first-child td {
    padding-top: .25rem;
}

.ticket-table tbody tr.edit-ticket-row td {
    height: auto;
}

/*ticket status strip */
.ticket-table tbody .ticket-row td:first-child {
    position: relative;
    width: 1%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.ticket-table tbody .ticket-row td:first-child span {
    display: block;
    height: 2.8em;
    padding: 0;
}

/**/

/*Ticket Title */
.ticket-table tbody .ticket-row td:nth-child(2),
#add-new-ticket-table tbody .ticket-row td:nth-child(2) {
    max-width: 28%;
}

/*datetime fields */
.ticket-table tbody .ticket-row td:nth-child(3),
#add-new-ticket-table tbody .ticket-row td:nth-child(3),
.ticket-table tbody .ticket-row td:nth-child(4),
#add-new-ticket-table tbody .ticket-row td:nth-child(4) {
    width: calc(var(--ee-base-ui-scale) * 11);
}

/* Price */
.ticket-table tbody .ticket-row td:nth-child(5),
#add-new-ticket-table tbody .ticket-row td:nth-child(5) {
    text-align: right !important;
    width: calc(var(--ee-base-ui-scale) * 6.25);
}


/* Qty */
.ticket-table tbody .ticket-row td:nth-child(6),
#add-new-ticket-table tbody .ticket-row td:nth-child(6),

/* Sold, REgs */
.ticket-table tbody .ticket-row td:nth-child(7),
#add-new-ticket-table tbody .ticket-row td:nth-child(7),
.ticket-table tbody .ticket-row td:nth-child(8),
#add-new-ticket-table tbody .ticket-row td:nth-child(8),
.ticket-table tbody .ticket-row.ee-wp-debug td:nth-child(9),
#add-new-ticket-table  tbody .ticket-row.ee-wp-debug td:nth-child(9) {
    text-align: right !important;
    padding-right: 1em;
    width: calc(var(--ee-base-ui-scale) * 5);
}

/* Actions */
/* .ticket-table tbody .ticket-row td:last-child, */
/* #add-new-ticket-table tbody .ticket-row td:last-child { */
/*     min-width: calc(var(--ee-base-ui-scale) * 8.5); */
/* } */


.ticket-table .ticket-display-row-TKT_sold,
.ticket-table .ticket-display-row-TKT_reserved,
.ticket-table .ticket-display-row-TKT_registrations,
.datetime-tickets-sold,
.datetime-tickets-reserved {
    display: block;
    margin-top: 4px;
    padding-block: var(--ee-padding-nano);
    padding-inline: var(--ee-padding-nano);
    text-align: right;
}

.TKT_price_label,
.TKT_qty_label,
.TKT_sold_label,
.TKT_reserved_label,
.TKT_regs_label {
    display: inline-flex;
    justify-content: end;
    width: 100%;
}

.TKT_price_label,
.TKT_qty_label {
    position: relative;
    inset-inline-start: -0.5rem;
}

.ee-status-strip-td {}

/* sold out */
.tkt-status-TKS {
    border-color: var(--ee-status-color-purple);
    /* prev: #FCB93C */
}

.ee-status-legend-TKS {
    background-color: var(--ee-status-color-purple);
    /* prev: #FCB93C */
}

/* on sale */
.tkt-status-TKO {
    border-color: var(--ee-status-color-green);
    /* prev: #70CC50 */
}

.ee-status-legend-TKO {
    background-color: var(--ee-status-color-green);
    /* prev: #70CC50 */
}

/*pending*/
.tkt-status-TKP {
    border-color: var(--ee-status-color-blue);
    /* prev: #00B1CA */
}

.ee-status-legend-TKP {
    background-color: var(--ee-status-color-blue);
    /* prev: #00B1CA */
}

/*archived*/
.tkt-status-TKA {
    border-color: var(--ee-status-color-charcoal);
    /* prev: #8A549A */
}

.ee-status-legend-TKA {
    background-color: var(--ee-status-color-charcoal);
    /* prev: #8A549A */
}

/*expired*/
.tkt-status-TKE {
    border-color: var(--ee-status-color-grey);
    /* prev: #A39D9C */
}

.ee-status-legend-TKE {
    background-color: var(--ee-status-color-grey);
    /* prev: #A39D9C */
}


.ticket-fieldset legend {
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
    font-size: var(--ee-font-size-bigger);
}

.total-price-container .currency-code {
    margin-top: 5px;
    display: inline-block;
}

.edit-ticket-TKT_description {
    font-size: var(--ee-font-size-bigger);
    padding: 0.5em;
}


.total-price-container {
    float: right;
    margin-top: 10px;
    line-height: 10px;
}

.ticket-price-amount {
    font-weight: bold;
    font-size: var(--ee-font-size-xl);
    display: inline-block;
    margin-left: 10px;
}

.basic-ticket-info,
.price-table {
    width: 100%;
    border-collapse: collapse;
}

.basic-ticket-info thead,
.price-table thead {
    font-weight: normal;
    border: none;
}

.basic-ticket-info tbody tr td,
.price-table tbody tr td {
    padding: 0;
}

.basic-ticket-info input {
    text-align: right;
}

.basic-ticket-info tbody tr td {
    padding-right: .4em;
    width: 33%;
}


.price-table thead tr td {
    padding-bottom: 5px;
    font-size: var(--ee-font-size-big);
}

.price-table thead tr td:first-child {
    text-align: left;
    width: 20%;
}

.price-table tbody td:first-child {
    text-align: left;
}

.price-table tbody tr:last-child td {
    padding-bottom: 7px;
}

.price-table tbody tr:last-child {
    border-bottom: 2px solid #dddddd;
}

.save-cancel-button-container {
    float: right;
}

.save-cancel-button-container .button--secondary {
    margin-left: 5px;
    margin-right: 5px;
}

.ticket-fieldset .save-cancel-button-container {
    margin-top: 20px;
}

.ticket-fieldset .button--secondary {
    margin-top: -5px;
}

.ticket-fieldset .edit-ticket-TKT_is_default_selector {
    margin-top: 1px;
}


.save-cancel-button-container input {
    margin-right: 10px;
    margin-left: 6px;
}


.add-new-ticket-table {
    width: 100%;
}

.th-adjust {
    margin-top: 20px;
}


@media all and (max-width: 770px) {

    .datetime-edit-table,
    #add-new-event-datetime-table {
        width: 100%;
    }

    .save-cancel-button-container {
        margin-top: -10px;
    }

    .th-adjust,
    #add-new-event-datetime-table {
        margin-top: 10px;
    }
}


.add-datetime-ticket-container .save-cancel-button-container {
    padding-top: 14px;
}

#add-event-datetime .save-cancel-button-container {
    padding-top: 3px;
}

.add-edit {
    padding-top: 3px;
}

.ticket-price-info-display {
    display: inline-flex;
    margin: 0;
    padding-inline: var(--ee-padding-pico);
    padding-block: var(--ee-padding-smaller);
    text-align: right;
}

.price-table tbody td:nth-child(4) {
    padding: 0;
    margin: 0;
    text-align: right;
}

.price-table tbody td:nth-child(2) input,
.price-table tbody:nth-child(3) input {
    width: 90%
}

.price-table tbody td:nth-child(5) input {
    width: 90%;
    text-align: right;
}

.ticket-price-info-display.ticket-price-percentage {
    text-align: left;
    margin-right: 0;
}

.price-table .price-total-row td,
.price-table .price-subtotal-row td {
    padding-top: 10px;
}

.edit-ticket-row .edit-price-PRC_amount {
    text-align: right;
    margin: 0;
    margin-left: 4px;
    padding-right: 5px;
    width: 75px;
}

.ee-active-price .ee-create-button {
    margin-left: 4px;
}

.ticket-fieldset .ee-price-create-button {
    margin-top: 10px;
    float: right;
}

.available-tickets-container {
    margin-block-start: var(--ee-margin-default);
    padding-top: var(--ee-padding-default);
}

.price-table-container {
    margin-block-start: var(--ee-margin-default);
    padding-top: var(--ee-padding-default);
}

.ee-create-button-container {
    margin-block-start: calc(-1 * var(--ee-margin-huge));
    margin-block-end: var(--ee-margin-default);
}

.ee-new-datetime-container {
    align-items: flex-end;
}

.event-datetime-row {
    margin-block: var(--ee-margin-default);
}


.ticket-is-required-container {
    margin-top: 10px;
}

#event-and-ticket-form-content tbody tr td:last-child {
    padding-inline-start: calc(var(--ee-padding-pico) / 2);
}

#event-and-ticket-form-content div:not(.ee-editing-container) .button.dashicons,
#event-and-ticket-form-content div:not(.ee-editing-container) .button.button--icon-only {
    margin: calc(var(--ee-margin-pico) / 2);
}

#event-and-ticket-form-content .ee-editing-container .button.dashicons {
    margin-inline: 0 !important;
}
