/* Minification failed. Returning unminified contents.
(265,18): run-time error CSS1030: Expected identifier, found '.'
(265,30): run-time error CSS1031: Expected selector, found ')'
(265,30): run-time error CSS1025: Expected comma or open brace, found ')'
 */

#content-container header {
    margin-bottom: 0px;
}

.shift-productivity-header {
    width: 100%;
}

/* ── Section headers with step badges ── */
.header {
    border-bottom: 1px solid #000;
    line-height: 0.1em;
    border-color: #238add !important;
    display: inline-block !important;
    width: 100% !important;
    margin-top: 0;
    margin-bottom: 8px;
}

.header-span {
    background-color: #f6f6f6;
    padding: 0 10px 0 0;
    color: #238add !important;
    font-size: 16px !important;
    font-family: Segoe UI !important;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #238add;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.primary-button {
    background-color: #238add !important;
    border-color: #238add !important;
}

.hide-button {
    display: none !important;
}

/* ── Section headers — clickable collapse ── */
.section-header {
    cursor: pointer;
    user-select: none;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    line-height: normal !important;
}

.section-header .header-span {
    background-color: transparent !important;
    padding-left: 0 !important;
}

.section-selected-label {
    font-size: 13px;
    font-weight: 600;
    color: #238add;
    margin-left: 8px;
}

.section-selected-label:not(:empty)::before {
    content: "— ";
    color: #aaa;
    font-weight: 400;
}

.section-collapse-arrow {
    font-size: 10px;
    color: #aaa;
    padding-right: 2px;
    transition: transform 0.2s;
    display: inline-block;
    flex-shrink: 0;
}

.section-collapse-arrow::after {
    content: "▼";
}

.section-header.collapsed .section-collapse-arrow {
    transform: rotate(-90deg);
}

/* ── Department / Machine buttons ── */
#department-section,
#machine-section {
    padding: 4px 0 8px 0;
}

#department-section > .department-button,
#machine-section > .machine-button {
    margin: 3px;
    border-radius: 20px !important;
    padding: 3px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background-color: #fff !important;
    border: 1px solid #d0d0d0 !important;
    color: #444 !important;
    box-shadow: none !important;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

#department-section > .department-button:hover,
#machine-section > .machine-button:hover {
    border-color: #238add !important;
    color: #238add !important;
    background-color: #f0f7ff !important;
}

#department-section > .department-button.k-primary,
#department-section > .department-button.primary-button,
#machine-section > .machine-button.k-primary,
#machine-section > .machine-button.primary-button {
    background-color: #238add !important;
    color: #fff !important;
    border-color: #238add !important;
}

#department-section > .department-button.k-state-selected,
#department-section > .department-button.active,
#machine-section > .machine-button.k-state-selected,
#machine-section > .machine-button.active {
    background-color: #238add !important;
    color: #fff !important;
    border-color: #1a6dab !important;
}

.header-tables {
    padding-bottom: 10px;
    width: calc(50% - 10px);
    padding-left: 10px;
}

/* ── Info cards (replaces detail table) ── */
.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
}

.info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1;
    min-width: 110px;
    display: flex;
    flex-direction: column;
}

.info-card.standout-card {
    background: #e8f4fd;
    border-color: #238add;
}

.info-card.accent-card {
    background: #fff9e6;
    border-color: #f0c040;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    min-height: 18px;
}

/* ── Estimate badges (replaces estimates table) ── */
.estimates-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0 8px 0;
}

.estimate-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 80px;
    flex: 1;
    text-align: center;
}

.estimate-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.4px;
}

.estimate-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 2px;
    min-height: 20px;
}

/* ── Type switch colour coding ── */
.mr  { background-color: #fff2cc !important; }
.rt  { background-color: #e2efd9 !important; }
.wu  { background-color: #deebf6 !important; }
.bd  { background-color: #fadbd2 !important; }
.cu  { background-color: #eadedf !important; }
.mt  { background-color: #e5e0ec !important; }
.ebd { background-color: #f3babaad !important; }
.mbd { background-color: #ffd9a994 !important; }
.wm  { background-color: #c8f1b494 !important; }
.wp  { background-color: #9cb4f973 !important; }
.cm  { background-color: #c09cf973 !important; }
.ob  { background-color: #ffaefc73 !important; }

.k-switch-on .k-switch-container {
    background-color: #238add !important;
}

/* ── Type switches — button-style layout ── */
#type-switch {
    margin: 4px;
    border-radius: 8px;
    width: calc(50% - 10px);
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    gap: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    vertical-align: top;
    transition: border-color 0.15s, box-shadow 0.15s;
}

/* Highlight the container when its switch is active (:has is Chrome 105+, Edge 105+) */
#type-switch:has(.k-switch-on) {
    border-color: #238add;
    box-shadow: 0 0 0 3px rgba(35, 138, 221, 0.18);
    filter: brightness(0.96);
}

.type-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

/* ── Items capture ── */
#items-capture {
    min-width: 0;
    width: 100%;
}

#items-capture > .form {
    padding: 10px;
    margin-left: 10px;
    height: 100%;
}

#items-capture > .form > .form-field {
    width: 50% !important;
}

#items-capture > .form > .form-field > .field-label {
    display: inline-grid;
}

.side-by-side {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
}

.side-by-side > .form-field {
    max-width: 400px;
    min-width: 150px;
    flex: 1;
}

.form .form-field {
    margin: 8px;
}

.form .form-field .field-label {
    max-width: 122px !important;
    text-align: left;
}

.form .form-field .field-input {
    width: 100% !important;
    max-width: 240px;
}

.form .form-field .field-input.comment {
    width: 100% !important;
}

input#Comment {
    width: 100% !important;
    max-width: 380px;
}

.new-work-ticket {
    padding-bottom: 10px;
}

.margin-bottom {
    margin-bottom: 10px;
}

.new-work-ticket .field-label {
    padding-left: 10px;
    font-weight: normal;
    text-align: right;
    font-family: "Segoe UI semibold" !important;
    color: #777 !important;
    font-size: 12px !important;
}

/* ── Session controls panel ── */
.session-controls-panel {
    margin-top: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    display: block;
}

.session-controls-summary {
    padding: 8px 12px;
    background: #f0f0f0;
    font-weight: 600;
    font-size: 12px;
    color: #555;
}

.session-controls-body {
    padding: 8px 10px;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* ── Machine button context menu ── */
#machine-context-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 190px;
    padding: 4px 0;
    display: none;
}

.machine-ctx-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.machine-ctx-item:hover {
    background: #f0f7ff;
    color: #238add;
}

/* ── Interval percentage slider ── */
#interval-slider-wrap {
    padding-top: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#interval-slider-wrap .k-slider {
    flex: 1;
}

.interval-pct-badge {
    font-size: 13px;
    font-weight: 700;
    color: #238add;
    min-width: 34px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Action area ── */
#buttons {
    width: 100%;
    padding-top: 8px;
}

/* Make Capture Entry the dominant action */
#buttons > .k-button.primary-button {
    display: block;
    width: calc(100% - 16px);
    margin: 0 8px 8px 8px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
}

.close-switch {
    margin: 4px;
    border-radius: 8px;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
}

.standout {
    font-size: 12pt !important;
    font-weight: bold !important;
}

#bite-section {
    display: inline;
}

#bite-message {
    color: red;
    font-weight: bold;
}

/* ── Supervisor PIN — masked text field, not a password field ── */
.pin-input,
.pin-input input {
    -webkit-text-security: disc;
}

.k-window-titlebar.k-dialog-titlebar.k-header {
    background-color: #fc605c;
}

.k-widget.k-window.k-dialog {
    border: solid;
    border-color: #fc605c;
}

#next-work-ticket-input {
    display: inline;
}

.highlight-border {
    border-color: red !important;
    border: solid;
}

/* Bootstrap gutter zero — page-scoped, only loaded on this view */
.col-md-6,
.col-md-12,
.col-lg-5,
.col-lg-6,
.col-sm-12 {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

/* Cancel Bootstrap row negative margins so the grid isn't clipped at left on mobile */
.productivity-capture-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#content-container {
    background-color: #f6f6f6;
}

/* ============================================================
   DESKTOP  (≥992px) — constrain dept/machine sections
   ============================================================ */
@media (min-width: 992px) {

    #department-section,
    #machine-section {
        max-width: 55%;
    }
}

/* ============================================================
   TABLET  (≤991px)
   ============================================================ */
@media (max-width: 991px) {

    #type-switch {
        width: calc(50% - 10px);
        min-height: 52px;
    }

    .form .form-field .field-input {
        max-width: 100%;
    }

    input#Comment {
        max-width: 100%;
    }

    .side-by-side > .form-field {
        max-width: none;
    }

    .info-card {
        min-width: 90px;
    }

    #items-grid {
        margin-top: 10px;
        min-height: 320px;
    }

    .new-work-ticket {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 4px;
    }

    .new-work-ticket > [class*="col-"] {
        flex: 0 0 auto;
        width: auto;
        padding: 0 4px;
    }

    #buttons > .k-button.primary-button {
        font-size: 16px;
        min-height: 52px;
    }
}

/* ============================================================
   MOBILE  (≤575px)
   ============================================================ */
@media (max-width: 575px) {

    #type-switch {
        width: calc(100% - 10px);
    }

    .session-controls-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   ITEMS GRID — card container
   ============================================================ */
#items-grid {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    overflow: hidden;
    margin-top: 8px;
}

#items-grid .k-grid-header {
    background: linear-gradient(135deg, #238add, #1a6dab);
    border-bottom: none;
}

#items-grid .k-grid-header th {
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-color: rgba(255,255,255,0.2) !important;
    padding: 6px 4px !important;
}

#items-grid .k-grid-header .k-header-column-menu,
#items-grid .k-grid-header .k-i-more-vertical {
    color: rgba(255,255,255,0.8);
}

/* ── Compact rows ── */
#items-grid .k-grid-content td {
    padding: 4px 4px !important;
    font-size: 12px;
    vertical-align: middle;
}

/* ── Row colour coding by type ── */
#items-grid tr.sp-row-mr  td { background-color: #fff2cc !important; }
#items-grid tr.sp-row-rt  td { background-color: #e2efd9 !important; }
#items-grid tr.sp-row-wu  td { background-color: #deebf6 !important; }
#items-grid tr.sp-row-bd  td { background-color: #fadbd2 !important; }
#items-grid tr.sp-row-cu  td { background-color: #eadedf !important; }
#items-grid tr.sp-row-mt  td { background-color: #e5e0ec !important; }
#items-grid tr.sp-row-lt  td { background-color: #fce8d5 !important; }
#items-grid tr.sp-row-tt  td { background-color: #fce8d5 !important; }
#items-grid tr.sp-row-ebd td { background-color: rgba(243,186,186,0.68) !important; }
#items-grid tr.sp-row-mbd td { background-color: rgba(255,217,169,0.58) !important; }
#items-grid tr.sp-row-wm  td { background-color: rgba(200,241,180,0.58) !important; }
#items-grid tr.sp-row-wp  td { background-color: rgba(156,180,249,0.45) !important; }
#items-grid tr.sp-row-cm  td { background-color: rgba(192,156,249,0.45) !important; }
#items-grid tr.sp-row-ob  td { background-color: rgba(255,174,252,0.45) !important; }

/* ── Type pill badges ── */
.type-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #333;
    border: 1px solid rgba(0,0,0,0.1);
}

.type-pill.mr  { background-color: #fff2cc; }
.type-pill.rt  { background-color: #e2efd9; }
.type-pill.wu  { background-color: #deebf6; }
.type-pill.bd  { background-color: #fadbd2; }
.type-pill.cu  { background-color: #eadedf; }
.type-pill.mt  { background-color: #e5e0ec; }
.type-pill.lt  { background-color: #fce8d5; }
.type-pill.tt  { background-color: #fce8d5; }
.type-pill.ebd { background-color: rgba(243,186,186,0.68); }
.type-pill.mbd { background-color: rgba(255,217,169,0.58); }
.type-pill.wm  { background-color: rgba(200,241,180,0.58); }
.type-pill.wp  { background-color: rgba(156,180,249,0.45); }
.type-pill.cm  { background-color: rgba(192,156,249,0.45); }
.type-pill.ob  { background-color: rgba(255,174,252,0.45); }

