/* Execute License panel (Admin/OrderDetailAdmin.aspx) */

.executeLicensePanel {
    text-align: left;
    border: 1px solid #d7dee0;
    border-radius: 3px;
    padding: 16px 18px 18px;
    margin: 10px 0 0 0;
}

.executeLicensePanel .panelTitle {
    margin: 0 0 10px 0;
}

.executeLicensePanel .calloutBox {
    border-left: 3px solid #b08b34;
    background: #fdfbf3;
    padding: 8px 12px;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.executeLicensePanel .licenseTypeChoices {
    margin-bottom: 4px;
}

.executeLicensePanel .licenseTypeOption {
    margin-top: 12px;
}

.executeLicensePanel .radioRow {
    display: flex;
    align-items: center;
    gap: 6px;
}

.executeLicensePanel .radioRow input[type="radio"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: none;
}

.executeLicensePanel .radioRow label {
    cursor: pointer;
    font-size: 13.5px;
}

.executeLicensePanel .licenseTypeHelp {
    font-size: 11.5px;
    font-style: italic;
    color: #767676;
    margin: 2px 0 0 20px;
}

.executeLicensePanel .licenseSubPanel {
    background: #f7f9fa;
    border: 1px solid #d7dee0;
    border-radius: 3px;
    padding: 12px 14px;
    margin: 8px 0 0 20px;
}

.executeLicensePanel .licenseFieldLabel {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #767676;
    margin-bottom: 6px;
}

.executeLicensePanel .licenseIdReadout {
    font-size: 16px;
    font-weight: bold;
    color: #034B65;
}

.executeLicensePanel .licenseFieldNote {
    font-size: 11.5px;
    font-style: italic;
    color: #767676;
    margin-top: 5px;
}

.executeLicensePanel .licenseError {
    display: block;
    color: #982b12;
    font-style: italic;
    font-size: 11.5px;
    margin-top: 6px;
}

/* Change License panel reuses .executeLicensePanel; these cover its extra pieces. */

.executeLicensePanel .licenseCurrentCard {
    margin: 0 0 4px 0;
}

.executeLicensePanel .licenseCurrentMeta {
    font-size: 12px;
    color: #767676;
    margin-left: 10px;
}

.executeLicensePanel .licenseTag {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
    background: #e3eef3;
    color: #034B65;
    margin-left: 6px;
}

.executeLicensePanel .panelActions {
    text-align: right;
    margin-top: 4px;
}

.executeLicensePanel .panelActions .cancelLink {
    margin-right: 14px;
}

/* License Detail Admin (Admin/LicenseDetailAdmin.aspx) */

.licenseDetailColumn {
    width: 100%;
    margin-right: 0;
}

.licenseHeaderBlock {
    width: 600px;
}

.licenseHeaderRow {
    margin: 0 0 10px 0;
}

.licenseSubHeaderRow {
    margin-bottom: 10px;
}

.licenseOrdersHeading {
    margin-bottom: 10px;
    clear: both;
}

.orderAccordionItem {
    border: 1px solid #d7dee0;
    border-radius: 3px;
    margin-bottom: 10px;
}

.orderAccordionHeader {
    padding: 10px 14px;
    cursor: pointer;
    background: #f7f9fa;
}

.orderAccordionHeader .orderAccordionToggle {
    border: 0;
    background: none;
    padding: 0 2px;
    margin: 0 2px 0 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.orderAccordionHeader .orderAccordionToggle:focus {
    outline: 2px solid #034B65;
    outline-offset: 1px;
}

.orderAccordionHeader .toggleArrow {
    display: inline-block;
    width: 12px;
    transition: transform .15s ease;
}

.orderAccordionHeader .toggleArrow.expanded {
    transform: rotate(90deg);
}

.orderAccordionBody {
    padding: 14px;
    border-top: 1px solid #d7dee0;
}

.orderAccordionBody:after {
    content: "";
    display: table;
    clear: both;
}

/* License Documents section (Admin/LicenseDetailAdmin.aspx) */

.licenseDocuments {
    clear: both;
    margin-bottom: 14px;
}

.licenseDocumentsHeading {
    margin-bottom: 10px;
}

.licenseDocumentsHint {
    font-size: 11.5px;
    font-style: italic;
    font-weight: normal;
    color: #767676;
    margin-left: 6px;
}

.licenseDocMsg {
    display: block;
    position: relative;
    border-left: 3px solid;
    padding: 8px 32px 8px 12px;
    font-size: 12.5px;
    margin-bottom: 10px;
}

.licenseDocMsg.ok {
    border-color: #2f8a55;
    background: #e9f5ee;
}

.licenseDocMsg.err {
    border-color: #982b12;
    background: #fbeeea;
    color: #982b12;
}

.licenseDocMsgClose {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    opacity: .6;
}

.licenseDocMsgClose:hover,
.licenseDocMsgClose:focus {
    opacity: 1;
}

.licenseDocMsg ul {
    margin: 4px 0 0 0;
    padding-left: 18px;
}

.licenseDocList {
    border: 1px solid #d7dee0;
    border-radius: 3px;
    margin-bottom: 10px;
}

.licenseDocRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.licenseDocRow + .licenseDocRow {
    border-top: 1px solid #d7dee0;
}

.licenseDocInfo {
    flex: 1 1 auto;
    min-width: 0;
}

.licenseDocName {
    font-weight: bold;
    color: #034B65;
    overflow-wrap: anywhere;
}

.licenseDocMeta {
    font-size: 11.5px;
    color: #767676;
    margin-top: 3px;
}

.licenseDocActions {
    flex: none;
}

.licenseDocActions a {
    margin-left: 14px;
}

.licenseDocActions .licenseDocRemove {
    color: #982b12;
}

.licensePdfIcon {
    flex: none;
    width: 28px;
    height: 35px;
    border-radius: 3px;
    background: #c0392b;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
}

.licensePdfIcon.muted {
    background: #d7dee0;
    color: #767676;
}

.licenseDropzone {
    border: 2px dashed #d7dee0;
    border-radius: 4px;
    background: #f7f9fa;
    cursor: pointer;
}

.licenseDropzone.over {
    border-color: #034B65;
    background: #e8f1f5;
}

.licenseDropzone.big {
    padding: 22px 16px;
    text-align: center;
}

.licenseDropzone.big .licenseDropzoneEmpty {
    margin-bottom: 10px;
}

.licenseDropzone.big .licensePdfIcon {
    margin: 0 auto 8px;
}

.licenseDropzone.slim {
    padding: 10px 14px;
}

.licenseDropzoneHint {
    font-size: 11.5px;
    font-style: italic;
    color: #767676;
    margin-left: 10px;
}

.licenseUploading {
    border: 2px dashed #d7dee0;
    border-radius: 4px;
    background: #f7f9fa;
    padding: 14px;
    color: #034B65;
    font-weight: bold;
}

.licenseUploading.hide {
    display: none;
}

.licenseSpinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    border: 3px solid #d7dee0;
    border-top-color: #034B65;
    border-radius: 50%;
    animation: licenseSpin .8s linear infinite;
}

@keyframes licenseSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .licenseSpinner { animation-duration: 2.4s; }
}

/* The real file input is driven by the Upload PDFs button and drag-and-drop. */
.licenseFileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* License Notes section (Admin/LicenseDetailAdmin.aspx) */

.licenseNotes {
    clear: both;
    margin-bottom: 14px;
}

.licenseNotesHeading {
    margin-bottom: 16px;
}

.licenseNotesGrid {
    margin-bottom: 12px;
}

/* Top-aligned, so Date / Added By / Edit line up with the first line of a long note. */
table.licenseNotesGrid td {
    overflow-wrap: anywhere;
    vertical-align: top;
}

/* Narrow side columns with tighter padding, so the Note column gets the remaining width.
   (table.licenseNotesGrid outranks Mills.css's table.paymentAdmin th/td padding.) */
table.licenseNotesGrid th.colDate,
table.licenseNotesGrid td.colDate {
    width: 60px;
    padding-right: 8px;
    white-space: nowrap;
}

table.licenseNotesGrid th.colAddedBy,
table.licenseNotesGrid td.colAddedBy {
    width: 100px;
    padding-left: 8px;
    padding-right: 8px;
}

table.licenseNotesGrid th.colActions,
table.licenseNotesGrid td.colActions {
    width: 90px;
    padding-left: 8px;
    padding-right: 12px;
}

.licenseNotesHint {
    font-size: 11.5px;
    font-style: italic;
    font-weight: normal;
    color: #767676;
    margin-left: 8px;
}

/* Rows read as selectable: pointer, light gray background and a gray bar on the left edge on hover;
   a blue tint and blue bar when selected. */
.licenseNotesGrid tr.licenseNoteRow {
    cursor: pointer;
}

.licenseNotesGrid tr.licenseNoteRow td {
    transition: background-color .12s ease;
}

.licenseNotesGrid tr.licenseNoteRow td:first-child {
    box-shadow: inset 3px 0 0 transparent;
}

.licenseNotesGrid tr.licenseNoteRow:hover td {
    background: #f0f0f0;
}

.licenseNotesGrid tr.licenseNoteRow:hover td:first-child {
    box-shadow: inset 3px 0 0 #c4c4c4;
}

.licenseNotesGrid tr.licenseNoteRow.selected td {
    background: #dcebf2;
}

.licenseNotesGrid tr.licenseNoteRow.selected td:first-child {
    box-shadow: inset 5px 0 0 #034B65;
}

/* No Delete on the note being edited; it comes back after Update Note or Cancel. */
.licenseNotesGrid tr.licenseNoteRow.selected .licenseDocRemove {
    display: none;
}

.licenseNotesGrid tr.licenseNoteRow.selected .licenseNoteEditLink {
    font-weight: bold;
    text-decoration: none;
    cursor: default;
}

/* The note text looks like an editable field: a dashed outline and a pencil icon on hover,
   a solid outline when selected. */
.licenseNotesGrid .licenseNoteText {
    position: relative;
    /* Pulled left/up by its border + padding so the text lines up under the NOTE heading
       and with the Date / Added By text in the same row. */
    margin: -5px 0 -5px -7px;
    padding: 4px 28px 4px 6px;
    border: 1px dashed transparent;
    border-radius: 3px;
    transition: border-color .12s ease, background-color .12s ease;
}

.licenseNotesGrid .licenseNoteText::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 7px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23034B65' d='M11.7 1.3a1.2 1.2 0 0 1 1.7 0l1.3 1.3a1.2 1.2 0 0 1 0 1.7L5.3 13.7 1.5 14.5l.8-3.8z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0;
    transition: opacity .12s ease;
}

.licenseNotesGrid tr.licenseNoteRow:hover .licenseNoteText {
    border-color: #9a9a9a;
    background: #fff;
}

.licenseNotesGrid tr.licenseNoteRow:hover .licenseNoteText::after {
    opacity: .7;
}

.licenseNotesGrid tr.licenseNoteRow.selected .licenseNoteText {
    border-style: solid;
    border-color: #034B65;
    background: #fff;
}

.licenseNotesGrid tr.licenseNoteRow.selected .licenseNoteText::after {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .licenseNotesGrid tr.licenseNoteRow td,
    .licenseNotesGrid .licenseNoteText,
    .licenseNotesGrid .licenseNoteText::after { transition: none; }
}

.licenseNotesGrid tr.licenseNoteRow:focus {
    outline: 2px solid #034B65;
    outline-offset: -2px;
}

.licenseNoteEditing {
    font-size: 12px;
    font-weight: bold;
    color: #034B65;
    margin-bottom: 4px;
}

.licenseNoteEditing.hide,
.licenseNoteCancel.hide {
    display: none;
}

.licenseNoteActions .licenseNoteCancel {
    margin-right: 14px;
}

.licenseNotesGrid .licenseNoteRowActions {
    text-align: right;
    white-space: nowrap;
}

.licenseNotesGrid .licenseNoteRowActions a + a {
    margin-left: 12px;
}

.licenseNotesGrid .licenseNoteRowActions .licenseDocRemove {
    color: #982b12;
}

.licenseNoteInput textarea {
    box-sizing: border-box;
    font-family: inherit;
    font-size: 13px;
    padding: 6px 8px;
}

.licenseNoteActions {
    text-align: right;
    margin-top: 8px;
}

/* License Admin (Admin/LicenseAdmin.aspx) */

.licenseAdminPage .criteria {
    padding: 0 8px !important;
}

.licenseCriteria {
    width: 150px;
}

.licenseResultsWrap {
    padding-top: 10px;
}

.licenseResultsHeader {
    margin: 0 0 10px 0;
    width: 100%;
}

.licenseMessageText {
    font-family: Sans-Serif;
    font-size: 15px;
    font-weight: bold;
    color: Gray;
    vertical-align: top;
}

/* Order Item Summary control (Modules/OrderItemSummaryCtl.ascx) */

.orderItemSummary {
    width: 100%;
}

/* Style.css's .contentMainArea.subColumn { width: 470px; } has higher specificity
   (two classes) than the single-class rule above, and wins regardless of file load
   order -- silently capping this control's width and throwing off float:right
   alignment on .totalHolder. Out-specificity it here rather than touching the
   shared global rule. */
.contentMainArea.orderItemSummary.last,
.contentMainArea.orderItemSummary.paymentRow {
    width: 100% !important;
}

.orderItemSummary.paymentRow {
    padding-left: 10px;
    padding-right: 10px;
}

/* Fluid layout sized to .orderAccordionBody (~682px content width). The header and
   item rows share the same padding and fixed column widths, with price taking the
   remaining space right-aligned, so PRICE lines up over the amounts. */

.orderItemSummary .itemTableHeaderRow,
.orderItemSummary .itemRow {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    padding: 0 20px;
}

.orderItemSummary .itemTableHeaderRow .headerCell {
    padding-bottom: 10px;
}

.orderItemSummary .itemTableHeaderRow .colTestimony,
.orderItemSummary .itemRow .testimonyCell {
    flex: 0 0 156px;
}

.orderItemSummary .itemTableHeaderRow .colDescription,
.orderItemSummary .subItemRow .subItemDesc {
    flex: 0 0 310px;
}

.orderItemSummary .itemTableHeaderRow .colQty,
.orderItemSummary .subItemRow .subItemQty {
    flex: 0 0 80px;
}

.orderItemSummary .itemTableHeaderRow .colPrice,
.orderItemSummary .subItemRow .subItemPrice {
    flex: 1 1 auto;
    text-align: right;
}

.orderItemSummary .itemRow {
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: #F5F5F5;
}

.orderItemSummary .itemRow .testimonyCell {
    min-width: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Style.css's .contentMainArea.subColumn .itemDescriptionSubColumn { width: 270px; }
   would otherwise widen the 156px testimony column and push the rest of the row
   (including the price) past the grey box. */
.orderItemSummary .itemRow .testimonyCell .itemDescriptionSubColumn {
    width: auto;
}

.orderItemSummary .itemRow .testimonyCell .testimonyNameWrap {
    width: 140px;
}

.orderItemSummary .itemNumRow {
    padding: 2px 0 0;
}

.orderItemSummary .itemRow .itemDetailCell {
    flex: 1 1 auto;
    min-width: 0;
}

.orderItemSummary .subItemRow {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.orderItemSummary .subItemRow .subItemDesc {
    font-size: 12px;
}

.orderItemSummary .subItemRow .subInfo {
    display: none;
}

.orderItemSummary .detailNote {
    font-size: 12px;
    font-style: italic;
}

.orderItemSummary .stillThumbnail {
    width: 150px;
    height: 102px;
    cursor: pointer;
}

/* Shrink-to-fit on the right; every row takes the widest row's width, so
   space-between right-aligns all amounts in one column. */
.orderItemSummary .totalHolder {
    float: right;
    width: auto;
    /* Style.css's .totalHolder has 40px right padding; line up with the grey row instead. */
    padding: 10px 10px 30px 0;
    font-size: 13px;
}

.orderItemSummary .totalHolder .clearfix {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
}

/* Style.css's .clearfix:after is a block pseudo-element; inside a flex row it
   becomes a third item and space-between pushes the amount toward the middle. */
.orderItemSummary .totalHolder .clearfix:before,
.orderItemSummary .totalHolder .clearfix:after {
    display: none;
}

.orderItemSummary .totalHolder .left,
.orderItemSummary .totalHolder .right {
    width: auto;
    float: none;
}

.orderItemSummary .totalHolder .bold {
    font-weight: bold;
}
