/* ==========================================================================
   Location Scheduling — shared UI redesign stylesheet. Scoped to .lb-sched.
   Covers all three screens: main scheduling page, Bulk Schedule Existing,
   and Bulk Schedule New (sheet). Accent #16a085 (teal).
   ========================================================================== */

/* ==========================================================================
   Location Scheduling (main page) — UI redesign. Scoped to .lb-sched.
   Design ref: LocationSchedulingFiles/Page Redesign with Calendar Layout.
   Accent #16a085 (teal). Keeps ui-grid / ui-calendar / controller intact.
   ========================================================================== */
.lb-sched {
    --lb-accent: #16a085;
    --lb-accent-dark: #128f76;
    --lb-accent-soft: #e4f4ef;
    --lb-ink: #1c2b3a;
    --lb-ink-2: #1f2d3d;
    --lb-muted: #7b8794;
    --lb-muted-2: #8a95a3;
    --lb-line: #eaedf2;
    --lb-line-2: #dfe3ea;
    --lb-surface: #ffffff;
    --lb-bg: #f4f6f9;
    --lb-head: #f8f9fb;
    --lb-shadow: 0 1px 3px rgba(28, 43, 58, .07);
    --lb-radius: 8px;

    font-family: "Source Sans 3", "Montserrat", "Segoe UI", system-ui, sans-serif;
    font-size: 12px;
    color: var(--lb-ink-2);
    background: var(--lb-bg);
    padding: 22px 26px 40px;
    min-height: 100%;
}
.lb-sched * { box-sizing: border-box; }

/* ---------- Page header ---------- */
.lb-sched .lb-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.lb-sched .lb-page-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.2px;
    color: var(--lb-ink);
}
.lb-sched .lb-page-head .lb-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--lb-muted);
}
.lb-sched .lb-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.lb-sched .lb-card {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    box-shadow: var(--lb-shadow);
    padding: 18px 20px 22px;
    margin-bottom: 18px;
}
.lb-sched .lb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.lb-sched .lb-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--lb-ink);
}
.lb-sched .lb-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--lb-accent);
    background: var(--lb-accent-soft);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Two-column top area (calendar | scheduled changes) — equal height */
.lb-sched .lb-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.lb-sched .lb-split > .lb-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    .lb-sched .lb-split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Scheduled Changes: custom table (matches template) ---------- */
.lb-sched .lb-sc-card { padding: 0; }
.lb-sched .lb-sc-head {
    padding: 16px 20px 12px;
    margin-bottom: 0;
}
.lb-sched .lb-sc-head h2 { font-size: 16px; }
.lb-sched .lb-sc-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lb-sched .lb-sc-cols {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--lb-line-2);
    border-radius: 6px;
    color: #7b8794;
    cursor: pointer;
    font-size: 12px;
}
.lb-sched .lb-sc-cols:hover { border-color: var(--lb-accent); color: var(--lb-accent); }
.lb-sched .lb-sc-filterrow th {
    padding: 0 14px 10px;
    background: var(--lb-head);
    border-top: none;
    border-bottom: 1px solid var(--lb-line);
}
.lb-sched .lb-sc-filterrow input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--lb-line-2);
    border-radius: 5px;
    font-size: 12px;
    color: var(--lb-ink-2);
    background: #fff;
}
.lb-sched .lb-sc-filterrow input:focus { border-color: var(--lb-accent); outline: none; }
.lb-sched .lb-sc-tablewrap { overflow-x: auto; }
.lb-sched .lb-sc-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.lb-sched .lb-sc-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--lb-head);
    border-top: 1px solid var(--lb-line);
    border-bottom: 1px solid var(--lb-line);
    font-size: 12px;
    font-weight: 700;
    color: #3b4756;
    white-space: nowrap;
}
.lb-sched .lb-sc-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0f2f6;
    white-space: nowrap;
    vertical-align: middle;
}
.lb-sched .lb-sc-table .lb-ta-right { text-align: right; }
.lb-sched .lb-sc-name { font-size: 12px; font-weight: 600; color: var(--lb-ink-2); }
.lb-sched .lb-sc-muted { font-size: 12px; color: #55616f; }
.lb-sched .lb-sc-pill {
    display: inline-block;
    background: #fdf1dc;
    color: #a9762a;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
    word-break: break-word;
}
.lb-sched .lb-sc-empty {
    text-align: center;
    color: var(--lb-muted);
    font-size: 12px;
    padding: 28px 14px;
}
.lb-sched .lb-sc-edit,
.lb-sched .lb-sc-del {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 4px;
    font-size: 12px;
    transition: background .15s ease, color .15s ease;
}
.lb-sched .lb-sc-edit { background: var(--lb-accent-soft); color: var(--lb-accent); }
.lb-sched .lb-sc-edit:hover { background: var(--lb-accent); color: #fff; }
.lb-sched .lb-sc-del { background: #fdecea; color: #d1503a; }
.lb-sched .lb-sc-del:hover { background: #e0563f; color: #fff; }
.lb-sched .lb-sc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid #f0f2f6;
    font-size: 12px;
    color: var(--lb-muted);
}
.lb-sched .lb-sc-pager { display: flex; align-items: center; gap: 6px; }
.lb-sched .lb-pg-btn {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--lb-line-2);
    border-radius: 5px;
    color: #b3bcc7;
    cursor: pointer;
    font-size: 12px;
}
.lb-sched .lb-pg-btn:not([disabled]):hover { border-color: var(--lb-accent); color: var(--lb-accent); }
.lb-sched .lb-pg-btn[disabled] { cursor: default; }
.lb-sched .lb-pg-cur {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--lb-accent);
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.lb-sched .btn.btn-primary,
.lb-sched .lb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    background: var(--lb-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(22, 160, 133, .35);
    transition: background .15s ease;
}
.lb-sched .btn.btn-primary:hover,
.lb-sched .lb-btn-primary:hover { background: var(--lb-accent-dark); color: #fff; }
.lb-sched .lb-btn-outline,
.lb-sched .btn.btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    color: var(--lb-accent);
    border: 1px solid var(--lb-accent);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}
.lb-sched .lb-btn-outline:hover,
.lb-sched .btn.btn-info:hover { background: var(--lb-accent-soft); color: var(--lb-accent); }
.lb-sched .lb-btn-export,
.lb-sched .btn.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #1e9e6a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.lb-sched .lb-btn-export:hover,
.lb-sched .btn.btn-success:hover { background: #17835a; color: #fff; }
.lb-sched .lb-icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--lb-muted-2);
    cursor: pointer;
}
.lb-sched .lb-icon-btn:hover { background: #e9edf3; color: var(--lb-accent); }

/* ---------- Filter bar ---------- */
.lb-sched .lb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.lb-sched .lb-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lb-sched .lb-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.lb-sched .lb-field { display: flex; flex-direction: column; gap: 6px; }
.lb-sched .lb-field > strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #3b4756;
}
.lb-sched .lb-field input[type="text"],
.lb-sched .lb-field select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--lb-line-2);
    border-radius: 6px;
    font-size: 12px;
    color: var(--lb-ink-2);
    background: #fff;
}
.lb-sched .lb-field select { color: #3b4756; }
.lb-sched .lb-field select option { color: #1f2d3d; }
.lb-sched .lb-field select:focus,
.lb-sched .lb-field input:focus { border-color: var(--lb-accent); outline: none; }
.lb-sched .lb-filters > .lb-field { flex: 0 0 auto; width: 130px; }
.lb-sched .lb-filters > .lb-field select { width: 100%; }
.lb-sched .lb-search.lb-field { flex: 1 1 240px; width: auto; min-width: 220px; }
.lb-sched .lb-search input { width: 100%; }
.lb-sched .lb-filters > .lb-field.lb-field-net { width: 150px; }
.lb-sched .lb-field .multiselect-parent.btn-group {
    display: block;
    width: 100%;
    min-width: 150px;
}
.lb-sched .lb-field .multiselect-parent .dropdown-toggle,
.lb-sched .lb-field .multiselect-parent .dropdown-toggle.btn,
.lb-sched .lb-field .multiselect-parent button.dropdown-toggle {
    height: 38px !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 12px !important;
    border: 1px solid var(--lb-line-2) !important;
    border-radius: 6px !important;
    background: #fff !important;
    background-image: none !important;
    color: #3b4756 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-sched .lb-field .multiselect-parent .dropdown-toggle:hover,
.lb-sched .lb-field .multiselect-parent .dropdown-toggle:focus,
.lb-sched .lb-field .multiselect-parent .dropdown-toggle:active {
    border-color: var(--lb-accent) !important;
    background: #fff !important;
    color: #3b4756 !important;
    outline: none;
}
.lb-sched .lb-field .multiselect-parent .dropdown-toggle .caret { margin-left: auto; color: #7b8794; }
.lb-sched .lb-field .multiselect-parent .dropdown-menu {
    border: 1px solid var(--lb-line-2);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(28, 43, 58, .12);
    padding: 6px;
    margin-top: 4px;
}

/* ---------- Calendar (fullcalendar / ui-calendar) ---------- */
.lb-sched .fc { font-size: 12px; }
.lb-sched .fc-toolbar { margin-bottom: 16px; }
.lb-sched .fc-toolbar h2 { font-size: 18px; font-weight: 700; color: var(--lb-ink); margin-top: 3px; }
.lb-sched .fc-toolbar .fc-button {
    background: #fff;
    background-image: none;
    border: 1px solid var(--lb-line-2);
    color: #55616f;
    box-shadow: none;
    text-shadow: none;
    text-transform: capitalize;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 0 0 6px;
}
.lb-sched .fc-toolbar .fc-button:hover {
    border-color: var(--lb-accent);
    color: var(--lb-accent);
    background: #fff;
    background-image: none;
}
.lb-sched .fc-toolbar .fc-left {
    background: #f1f3f7;
    border-radius: 6px;
    padding: 3px;
    display: inline-flex;
    gap: 2px;
}
.lb-sched .fc-toolbar .fc-left .fc-button {
    border: none !important;
    background: transparent !important;
    background-image: none !important;
    height: 26px;
    padding: 0 14px;
    border-radius: 5px !important;
    color: #7b8794 !important;
    box-shadow: none !important;
    text-shadow: none;
    margin: 0;
    float: none;
}
.lb-sched .fc-toolbar .fc-left .fc-button:hover {
    color: var(--lb-accent) !important;
    background: transparent !important;
}
.lb-sched .fc-toolbar .fc-left .fc-state-active,
.lb-sched .fc-toolbar .fc-left .fc-button.fc-state-active {
    background: #fff !important;
    background-image: none !important;
    color: var(--lb-accent) !important;
    box-shadow: 0 1px 2px rgba(28, 43, 58, .12) !important;
}
.lb-sched .fc-day-header {
    background: var(--lb-head);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--lb-muted-2);
    padding: 8px 0;
    border-color: var(--lb-line) !important;
}
.lb-sched .fc-widget-content,
.lb-sched .fc-widget-header { border-color: var(--lb-line) !important; }
.lb-sched .fc-today { background: #fdfaf0 !important; }
.lb-sched .fc-today.fc-day-top .fc-day-number,
.lb-sched td.fc-today .fc-day-number { color: #c68a1f !important; font-weight: 700 !important; }
.lb-sched .fc-other-month { background: #fafbfc; }
.lb-sched .fc-day-top.fc-other-month { opacity: 1; }
.lb-sched .fc-day-top.fc-other-month .fc-day-number { color: #c3cbd6; font-weight: 600; }
.lb-sched .fc-day-top .fc-day-number { padding: 6px 8px; font-size: 12px; color: #55616f; }
.lb-sched .fc-event,
.lb-sched a.fc-event,
.lb-sched .fc-event-container .fc-event {
    background: var(--lb-accent-soft) !important;
    border: none !important;
    border-left: 3px solid var(--lb-accent) !important;
    border-radius: 3px !important;
    color: #0f7c66 !important;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 6px;
    margin: 1px 2px;
}
.lb-sched .fc-event .fc-title,
.lb-sched .fc-event .fc-content { color: #0f7c66 !important; }

/* ---------- ui-grid theming ---------- */
.lb-sched .dataGrid,
.lb-sched [ui-grid] {
    border: 1px solid var(--lb-line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.lb-sched .ui-grid-header-cell {
    background: var(--lb-head);
    font-size: 12px;
    font-weight: 700;
    color: #3b4756;
    border-right: none !important;
}
.lb-sched .ui-grid-header-cell .ui-grid-cell-contents { padding: 10px 12px; }
.lb-sched .ui-grid-cell {
    border-right: none !important;
    border-bottom: 1px solid #f0f2f6 !important;
    background: #fff;
}
.lb-sched .ui-grid-cell-contents { padding: 8px 12px; font-size: 12px; color: #55616f; }
.lb-sched .ui-grid-row:hover .ui-grid-cell { background: #f6fbf9; }
.lb-sched .ui-grid-top-panel { background: var(--lb-head); }
.lb-sched .ui-grid-header { border-bottom: 1px solid var(--lb-line); }
.lb-sched .ui-grid-filter-container input {
    height: 30px;
    border: 1px solid var(--lb-line-2);
    border-radius: 5px;
    font-size: 12px;
    padding: 0 8px;
}
.lb-sched .dataGrid .ui-grid-render-container-body,
.lb-sched .dataGrid .ui-grid-viewport,
.lb-sched .dataGrid .ui-grid-canvas { min-width: 100%; }
.lb-sched .dataGrid .ui-grid-header-canvas { min-width: 100%; }

/* Status balls */
.lb-sched .ball-Green,
.lb-sched .ball-Red,
.lb-sched .ball-Blue,
.lb-sched .ball-Orange {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.lb-sched .ball-Green { background: var(--lb-accent); }
.lb-sched .ball-Red { background: #e0563f; }
.lb-sched .ball-Blue { background: #2f80e7; }
.lb-sched .ball-Orange { background: #e2a33a; }

/* ---------- Locations grid: rich cell content ---------- */
.lb-sched .ui-grid-row:hover .ui-grid-cell { background: #f6fbf9 !important; }
.lb-sched .ui-grid-cell-contents.lb-cell-status {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}
.lb-sched .lb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.lb-sched .ui-grid-cell-contents.lb-cell-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    height: 100%;
    line-height: 1.25;
    white-space: normal;
}
.lb-sched .lb-cell-name .lb-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--lb-ink-2);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.lb-sched .lb-cell-name .lb-place {
    font-size: 12px;
    color: var(--lb-accent);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.lb-sched .ui-grid-cell-contents.lb-cell-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}
.lb-sched .lb-cell-rating .lb-stars { color: #f2b01e; font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.lb-sched .lb-cell-rating .lb-rating-num { font-size: 12px; font-weight: 600; color: #3b4756; }
.lb-sched .ui-grid-cell-contents.lb-cell-cat { display: flex; align-items: center; height: 100%; }
.lb-sched .lb-chip {
    display: inline-block;
    background: var(--lb-accent-soft);
    color: #0f7c66;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-sched .ui-grid-cell-contents.lb-cell-country { display: flex; align-items: center; height: 100%; }
.lb-sched .lb-country {
    display: inline-block;
    border: 1px solid #e3e7ee;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #55616f;
}
.lb-sched .ui-grid-cell-contents.lb-cell-action {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}
.lb-sched .lb-grid-edit {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    background: var(--lb-accent-soft);
    color: var(--lb-accent) !important;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
.lb-sched .lb-grid-edit:hover { background: var(--lb-accent); color: #fff !important; }


/* ---------- Breadcrumb (bulk edit / sheet headers) ---------- */
.lb-sched .lb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--lb-muted-2);
    margin-bottom: 4px;
}
.lb-sched .lb-breadcrumb a { color: var(--lb-accent); font-weight: 600; }

/* ================= BULK SCHEDULE EXISTING ================= */
/* ---------- Segmented tabs ---------- */
/* uib-tabset renders: <uib-tabset.seg-tabs> > div > ul.nav-tabs > li > a,
   then a sibling .tab-content > .tab-pane. Force the 4-tab segmented row. */
.lb-sched .location-editor { display: block; padding: 0; }
.lb-sched .location-editor > div { display: block; }
.lb-sched .location-editor .nav-tabs {
    border: none !important;
    background: transparent !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}
.lb-sched .location-editor .nav-tabs > li {
    float: none !important;
    margin: 0 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    display: block !important;
}
.lb-sched .location-editor .nav-tabs > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1px solid var(--lb-line-2) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #55616f !important;
    text-align: center;
    padding: 0 10px !important;
    margin: 0 !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    transition: all .2s ease;
}
.lb-sched .location-editor .nav-tabs > li > a:hover {
    border-color: var(--lb-accent) !important;
    color: var(--lb-accent) !important;
    background: var(--lb-accent-soft) !important;
}
.lb-sched .location-editor .nav-tabs > li.active > a,
.lb-sched .location-editor .nav-tabs > li.active > a:hover,
.lb-sched .location-editor .nav-tabs > li.active > a:focus {
    background: var(--lb-accent) !important;
    color: #fff !important;
    border-color: var(--lb-accent) !important;
    box-shadow: 0 1px 2px rgba(22, 160, 133, .3);
}
.lb-sched .location-editor .nav-tabs > li.active > a .glyphicon,
.lb-sched .location-editor .nav-tabs > li.active > a .glyphicon:before { color: #fff !important; }
.lb-sched .location-editor .nav-tabs > li > a .glyphicon { margin: 0; }
.lb-sched .location-editor .tab-content {
    background: #fff !important;
    margin-top: 0 !important;
    padding: 22px 24px 26px !important;
    border-radius: var(--lb-radius) !important;
    border: none !important;
    box-shadow: var(--lb-shadow) !important;
}

/* ---------- Layout + sidebar ---------- */
.lb-sched #lbSchedBulkWrapper { background: transparent; padding: 0; }
.lb-sched .bulk-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 18px;
    height: auto;
    align-items: start;
}
@media (max-width: 900px) {
    .lb-sched .bulk-layout { grid-template-columns: minmax(0, 1fr); }
}
.lb-sched .location-sidebar {
    width: auto;
    background: #fff;
    border-radius: var(--lb-radius);
    box-shadow: var(--lb-shadow);
    border: none;
    padding: 0 0 8px;
    max-height: 640px;
    overflow-y: auto;
}
.lb-sched .lb-side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 24px 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.lb-sched .lb-side-title { font-size: 15px; font-weight: 700; color: var(--lb-ink); }
.lb-sched .lb-side-count { font-size: 12px; color: var(--lb-muted); }
.lb-sched .lb-side-search {
    position: sticky;
    top: 46px;
    z-index: 2;
    background: #fff;
    padding: 0 24px 12px;
    border-bottom: 1px solid #f0f2f6;
}
.lb-sched .location-sidebar .search-box {
    margin: 0 !important;
    height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid var(--lb-line-2) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}
.lb-sched .location-sidebar .search-box::placeholder { color: #a2abb7; }
.lb-sched .location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin: 3px 18px;
    border-radius: 8px;
    font-size: 12px;
    color: #3b4756;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.lb-sched .location-item .lb-side-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.lb-sched .location-item .lb-side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sched .location-item:hover { background: var(--lb-accent-soft); }
.lb-sched .active-location,
.lb-sched .active-location:hover { background: var(--lb-accent); color: #fff; }
.lb-sched .active-location .lb-side-dot { background: #fff !important; }
.lb-sched .location-item:first-of-type { margin-top: 8px; }

/* ---------- Forms (right-side body of Bulk Schedule Existing) ---------- */
.lb-sched .location-editor { background: transparent; }
.lb-sched .location-form { padding: 0; }

/* "Applies to [location]" header at the top of each tab */
.lb-sched .lb-applies-to {
    text-align: right;
    font-size: 12px;
    color: var(--lb-muted);
    margin: 0 0 14px;
}
.lb-sched .lb-applies-to strong { color: var(--lb-ink-2); font-weight: 700; }

/* Field rhythm: label (bold) → schedule-time → control, then a clear gap
   before the next field group. The <br> tags act as group separators. */
.lb-sched .location-form label {
    font-weight: 700;
    font-size: 12px;
    margin: 0 0 8px;
    color: #3b4756;
    display: block;
}
/* collapse the raw <br> spacers and use a consistent gap before each
   subsequent field's label instead (a <br> sits between control and label) */
.lb-sched .location-form br { display: none; }
.lb-sched .location-form br + label { margin-top: 22px; }
.lb-sched .location-form .form-control {
    height: 38px;
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid var(--lb-line-2);
    font-size: 12px;
    color: var(--lb-ink-2);
    margin: 0;
    width: 100%;
}
.lb-sched .location-form .form-control:focus {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 2px rgba(22, 160, 133, .15);
}
.lb-sched .location-form .form-control[disabled],
.lb-sched .location-form .form-control:disabled {
    background: #f6f7f9;
    color: #8a95a3;
    cursor: not-allowed;
}

/* ----- schedule-Time directive panel ("Schedule this change") ----- */
.lb-sched schedule-time,
.lb-sched schedule-Time {
    display: block;
    margin: 0 0 8px;
}
/* the "Schedule" checkbox row — works WITH the app's .c-checkbox markup
   (hidden input + a positioned <span> box, label padded to make room). */
.lb-sched schedule-Time .checkbox,
.lb-sched schedule-time .checkbox {
    margin: 0 0 8px;
    padding: 0;
    min-height: 0;
}
.lb-sched schedule-Time .checkbox label,
.lb-sched schedule-time .checkbox label {
    display: inline-block;
    padding-left: 26px;
    font-weight: 600;
    font-size: 12px;
    color: #1c2b3a;
    cursor: pointer;
    margin: 0;
    line-height: 20px;
}
/* the visual box */
.lb-sched schedule-Time .checkbox span,
.lb-sched schedule-time .checkbox span {
    margin-left: -26px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--lb-line-2);
    border-radius: 4px;
    background: #fff;
    line-height: 16px;
    text-align: center;
    top: 0;
}
.lb-sched schedule-Time .checkbox input:checked + span,
.lb-sched schedule-time .checkbox input:checked + span {
    background: var(--lb-accent);
    border-color: var(--lb-accent);
    color: #fff;
}
.lb-sched schedule-Time .checkbox .fa-check,
.lb-sched schedule-time .checkbox .fa-check {
    color: #fff;
    font-size: 11px;
}
/* the date/time controls that appear when "Schedule" is ticked.
   The template renders a flat .form-group:
     label(Date:) select select select label(Time:) input(time) i(info)
   We lay it out with CSS grid so labels sit ABOVE their fields, and make
   .form-inline a flex row so the validation pill sits INLINE to the right. */
.lb-sched schedule-Time .form-inline,
.lb-sched schedule-time .form-inline {
    border: 1px solid var(--lb-line);
    border-radius: 6px;
    background: #fcfdfe;
    padding: 14px 16px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
}
/* hide the "At" legend — the DATE/TIME labels carry the meaning now */
.lb-sched schedule-Time .form-inline legend,
.lb-sched schedule-time .form-inline legend { display: none; }

/* the controls grid: labels on row 1, fields on row 2 */
.lb-sched schedule-Time .form-inline .form-group,
.lb-sched schedule-time .form-inline .form-group {
    display: grid;
    grid-template-columns: auto auto auto 12px auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 8px;
    margin: 0;
}
/* Date label → row 1, spanning the 3 date selects */
.lb-sched schedule-Time .form-inline .form-group > label:nth-of-type(1),
.lb-sched schedule-time .form-inline .form-group > label:nth-of-type(1) {
    grid-column: 1 / 4;
    grid-row: 1;
}
/* Time label → row 1, above the time input (col 5) */
.lb-sched schedule-Time .form-inline .form-group > label:nth-of-type(2),
.lb-sched schedule-time .form-inline .form-group > label:nth-of-type(2) {
    grid-column: 5;
    grid-row: 1;
}
/* the 3 date selects → row 2, cols 1-3 */
.lb-sched schedule-Time .form-inline .form-group > select:nth-of-type(1),
.lb-sched schedule-time .form-inline .form-group > select:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.lb-sched schedule-Time .form-inline .form-group > select:nth-of-type(2),
.lb-sched schedule-time .form-inline .form-group > select:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.lb-sched schedule-Time .form-inline .form-group > select:nth-of-type(3),
.lb-sched schedule-time .form-inline .form-group > select:nth-of-type(3) { grid-column: 3; grid-row: 2; }
/* the time input → row 2, col 5 */
.lb-sched schedule-Time .form-inline .form-group > input[type="time"],
.lb-sched schedule-time .form-inline .form-group > input[type="time"] { grid-column: 5; grid-row: 2; }
/* info icon → row 2, col 6 */
.lb-sched schedule-Time .form-inline .form-group > .glyphicon-info-sign,
.lb-sched schedule-time .form-inline .form-group > .glyphicon-info-sign { grid-column: 6; grid-row: 2; }

.lb-sched schedule-Time .form-inline .form-group > label,
.lb-sched schedule-time .form-inline .form-group > label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lb-muted-2);
    margin: 0;
    white-space: nowrap;
}
.lb-sched schedule-Time .form-inline select.form-control,
.lb-sched schedule-Time .form-inline input.form-control,
.lb-sched schedule-time .form-inline select.form-control,
.lb-sched schedule-time .form-inline input.form-control {
    height: 32px;
    width: auto;
    min-width: 62px;
    display: inline-block;
    padding: 0 8px;
    border: 1px solid var(--lb-line-2);
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    margin: 0;
}
.lb-sched schedule-Time .form-inline input[type="time"].form-control,
.lb-sched schedule-time .form-inline input[type="time"].form-control { width: 108px; }
.lb-sched schedule-Time .form-inline .glyphicon-info-sign,
.lb-sched schedule-time .form-inline .glyphicon-info-sign {
    color: var(--lb-muted-2);
    cursor: help;
}
/* validation + hint text */
/* validation pill sits INLINE (as a flex sibling of .form-group), aligned
   to the bottom row next to the fields */
.lb-sched schedule-Time .form-inline .label-danger,
.lb-sched schedule-time .form-inline .label-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
    background: #fdecea;
    color: #c0432c;
    border: 1px solid #f6c9c2;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    white-space: normal;
    text-align: left;
}
/* the UTC hint text drops to its own full-width line below everything */
.lb-sched schedule-Time .form-inline .text-muted,
.lb-sched schedule-time .form-inline .text-muted {
    flex: 1 0 100%;
    margin: 2px 0 0;
    font-size: 11.5px;
    color: var(--lb-muted-2);
    line-height: 1.5;
}

/* Operating hours + attribute rows (tables) */
.lb-sched .location-form table { width: 100%; }
.lb-sched .location-form table tr { border-bottom: 1px solid var(--lb-line); }
.lb-sched .location-form table td { padding: 10px 8px; }

/* ----- Operating Hours table ----- */
.lb-sched .lb-hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--lb-line);
    border-radius: 6px;
    overflow: hidden;
}
.lb-sched .lb-hours-table thead th {
    background: var(--lb-head);
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--lb-muted-2);
    border-bottom: 1px solid var(--lb-line);
}
/* column widths so header + body align (Day, Open, From, To, Action) */
.lb-sched .lb-hours-table th:nth-child(1),
.lb-sched .lb-hours-table td:nth-child(1) { width: 150px; }
.lb-sched .lb-hours-table th:nth-child(2),
.lb-sched .lb-hours-table td:nth-child(2) { width: 120px; }
.lb-sched .lb-hours-table th:nth-child(3),
.lb-sched .lb-hours-table td:nth-child(3),
.lb-sched .lb-hours-table th:nth-child(4),
.lb-sched .lb-hours-table td:nth-child(4) { width: 160px; }
.lb-sched .lb-hours-table th:nth-child(5),
.lb-sched .lb-hours-table td:nth-child(5) { width: auto; }
.lb-sched .lb-hours-table tbody tr,
.lb-sched .lb-hours-table > tr { border-bottom: 1px solid #f0f2f6; }
.lb-sched .lb-hours-table tbody tr:last-child { border-bottom: none; }
.lb-sched .lb-hours-table tbody tr:nth-of-type(even) { background: #fafbfc; }
.lb-sched .lb-hours-table td { padding: 10px 14px; vertical-align: middle; font-size: 12px; }
/* Day name */
.lb-sched .lb-hours-table td:first-child strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--lb-ink-2);
    text-transform: uppercase;
}
/* Open/Closed checkbox + label */
.lb-sched .lb-hours-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}
.lb-sched .lb-hours-table input[type=checkbox] {
    width: 14px;
    height: 14px;
    accent-color: var(--lb-accent);
    vertical-align: middle;
    cursor: pointer;
    margin: 0;
}
.lb-sched .lb-hours-open .lb-open { color: var(--lb-accent); }
.lb-sched .lb-hours-open .lb-closed { color: #8a95a3; }
/* the "Closed" text cell */
.lb-sched .lb-hours-table td strong { font-weight: 600; color: #55616f; }
/* action cell: remove + add hours */
.lb-sched .lb-hours-table .lb-hours-actions {
    text-align: right;
    white-space: nowrap;
}
/* time inputs */
.lb-sched .lb-hours-table input[type=time],
.lb-sched .lb-hours-table input[simpletime] {
    height: 34px;
    width: 128px;
    padding: 0 10px;
    border: 1px solid var(--lb-line-2);
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    color: var(--lb-ink-2);
}
/* Add hours button — soft teal, compact */
.lb-sched .lb-hours-table button {
    height: 28px;
    padding: 0 11px;
    background: var(--lb-accent-soft);
    color: var(--lb-accent);
    border: none;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lb-sched .lb-hours-table button:hover { background: var(--lb-accent); color: #fff; }
/* the small "X" remove-time button */
.lb-sched .lb-hours-table button.btn.btn-danger {
    width: 26px;
    height: 26px;
    padding: 0;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fdecea;
    color: #d1503a;
    border: 1px solid #f0d3ce;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}
.lb-sched .lb-hours-table button.btn.btn-danger:hover { background: #e0563f; color: #fff; }

/* ----- Attributes tab ----- */
/* each attribute is a .row.row-table.bb — align name | value | delete */
.lb-sched .row-table.bb {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f2f6;
    padding: 10px 14px;
    margin: 0;
}
/* zebra stripe: each attribute sits in its own ng-repeat wrapper div, so
   stripe on the wrapper's position, not the .row-table itself */
.lb-sched .location-form .form-group > div:nth-of-type(even) > .row-table.bb { background: #fafbfc; }
.lb-sched .row-table.bb .col-4 { padding: 0 8px; }
/* attribute name */
.lb-sched .row-table.bb .col-4:first-child {
    font-size: 12px;
    font-weight: 600;
    color: #3b4756;
}
/* Simple, small radios (design look): a plain circle with a teal dot when
   selected — not the big filled square/check the app default renders. */
.lb-sched .row-table.bb .c-radio span,
.lb-sched .row-table.bb .radio.c-radio span {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    border: 1.5px solid #c3cbd6 !important;
    background: #fff !important;
    top: 2px;
}
/* hide the app's check glyph — radios use a centre dot instead */
.lb-sched .row-table.bb .c-radio span:before,
.lb-sched .row-table.bb .radio.c-radio span:before {
    content: "" !important;
    opacity: 0 !important;
}
/* selected: teal ring + teal centre dot */
.lb-sched .row-table.bb .c-radio input:checked + span {
    border-color: var(--lb-accent) !important;
    background: #fff !important;
}
.lb-sched .row-table.bb .c-radio input:checked + span:before {
    content: "" !important;
    opacity: 1 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--lb-accent) !important;
}
.lb-sched .radio.c-radio { margin: 0 18px 0 0; }
.lb-sched .radio.c-radio label {
    font-size: 12px;
    color: #3b4756;
    padding-left: 22px;
    line-height: 16px;
}
/* value input inside an attribute row */
.lb-sched .row-table.bb .form-control { margin: 0; }
/* delete: small outlined red icon button (not a big solid red block) */
.lb-sched .row-table.bb .col-4:last-child { display: flex; justify-content: flex-end; }
.lb-sched .row-table.bb .btn.btn-danger {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #d1503a !important;
    border: 1px solid #f0d3ce !important;
    border-radius: 6px;
    box-shadow: none;
}
.lb-sched .row-table.bb .btn.btn-danger:hover {
    background: #fdecea !important;
    border-color: #e0563f !important;
    color: #c0432c !important;
}
.lb-sched .row-table.bb .btn.btn-danger .fa,
.lb-sched .row-table.bb .btn.btn-danger .fa-lg { font-size: 14px !important; line-height: 1; }
/* space the "Add Attribute" section away from the attributes table */
.lb-sched .lb-add-attr-label { margin-top: 26px !important; }
/* Add attribute row: dropdown + outlined green Add button, aligned */
.lb-sched .row-table.p-sm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.lb-sched .row-table.p-sm .col-4 { padding: 0; }
.lb-sched .row-table.p-sm .col-4:first-child { flex: 0 1 340px; }
.lb-sched .row-table.p-sm .col-4:nth-child(2) { flex: 0 0 auto; }
.lb-sched .row-table.p-sm .col-4:last-child { flex: 1; }
.lb-sched .row-table.p-sm .btn.btn-primary {
    height: 38px;
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--lb-accent);
    border: 1px solid var(--lb-accent);
    box-shadow: none;
}
.lb-sched .row-table.p-sm .btn.btn-primary:hover {
    background: var(--lb-accent-soft);
    color: var(--lb-accent);
}
/* the ui-select / dropdown in the add-attribute row matches field height */
.lb-sched .row-table.p-sm .ui-select-bootstrap > .ui-select-match,
.lb-sched .row-table.p-sm .form-control,
.lb-sched .row-table.p-sm .ui-select-toggle {
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--lb-line-2);
}


/* ================= BULK SCHEDULE NEW (SHEET) ================= */
/* Sheet toolbar + iframe */
.lb-sched .lb-sheet-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.lb-sched #googleSheet {
    border: 1px solid var(--lb-line);
    border-radius: var(--lb-radius);
    background: #fff;
}

