/* New look (html.pie-premium) — checklists page.
   Owned by one session at a time; see .claude/skills/pie-new-ui/SKILL.md.
   Every selector starts with: html.pie-premium .pp-shell <this page's root class> */

/* ==========================================================================
   Checklists (PremiumChecklistIndex.vue around the classic checklist/list.vue,
   GeneralChecklistGroup.vue and checklist/templates.vue) — the design's
   "Checklist" and "Checklist Templates" screens (sections.js P['chk-list'],
   P['chk-templates']): page head, glass tabs, stat cards, toolbar, filter
   fields, one card per trip / template with its tasks
   ========================================================================== */
html.pie-premium .pp-shell.pp-checklists .checklists-dpage > .crm-panel > .container-fluid {
    padding: 0 32px 32px;
}

html.pie-premium .pp-shell.pp-checklists .checklists-dpage .bg-white-block {
    margin: 0 !important;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue {
    position: relative;
    color: var(--pp-ink-2);
    font-family: var(--pp-sans);
}

/* --------------------------------------------------------------------------
   Page head: eyebrow, 30px title, subtitle; Refresh (and Add New) on the right
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin: 0;
    padding: 18px 0 22px;
    color: var(--pp-ink);
    font: 30px/1.15 var(--pp-bold);
    letter-spacing: -.015em;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4::before {
    content: "Checklists";
    grid-area: 1 / 1;
    margin-bottom: 6px;
    color: var(--pp-acc);
    font: 11.5px/1.55 var(--pp-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4::after {
    content: "Every task, grouped by trip and checklist";
    grid-area: 3 / 1;
    margin-top: 4px;
    color: var(--pp-ink-3);
    font: 14px/1.55 var(--pp-sans);
    letter-spacing: 0;
}

/* Templates page: no Trip / Agency tabs */
html.pie-premium .pp-shell.pp-checklists .checklist-vue:not(:has(> .checklist-task-tabs)) > h4::after {
    content: "Reusable checklists you add to trips";
}

/* The refresh icon becomes the design's white "Refresh" pill */
html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4 > .pie-icon-thin-0142_rotate_sync {
    grid-area: 1 / 2 / 4 / 3;
    align-self: end;
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .05), 0 6px 16px -10px rgba(30, 40, 32, .25);
    color: var(--pp-ink);
    font: 13.5px var(--pp-bold);
    font-style: normal;
    letter-spacing: 0;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4 > .pie-icon-thin-0142_rotate_sync:hover {
    background: color-mix(in srgb, var(--pp-acc) 8%, #fff);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4 > .pie-icon-thin-0142_rotate_sync::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--pp-i-refresh) center / contain no-repeat;
    mask: var(--pp-i-refresh) center / contain no-repeat;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > h4 > .pie-icon-thin-0142_rotate_sync::after {
    content: "Refresh";
    font: 13.5px var(--pp-bold) !important;
    letter-spacing: 0;
}

/* Templates: the primary "+ Add New" joins the head row, right of Refresh */
html.pie-premium .pp-shell.pp-checklists .checklist-vue:has(> .mb-4 > .btn-primary) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue:has(> .mb-4 > .btn-primary) > * {
    grid-column: 1 / -1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue:has(> .mb-4 > .btn-primary) > h4 {
    grid-column: 1;
    grid-row: 1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > .mb-4:has(> .btn-primary) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 22px !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > .mb-4 > .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)), var(--pp-acc);
    box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--pp-acc) 80%, #000);
    color: #fff;
    font: 13.5px var(--pp-bold);
    letter-spacing: 0;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > .mb-4 > .btn-primary:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)), var(--pp-acc);
    color: #fff;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue > hr {
    display: none;
}

/* --------------------------------------------------------------------------
   Trip Tasks / Agency Tasks: the glass segmented tabs
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tabs {
    display: flex;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px !important;
    padding: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    overflow-x: auto;
    scrollbar-width: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pp-ink-3);
    font: 13.5px var(--pp-sans);
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab:hover {
    color: var(--pp-ink);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab.active {
    background: var(--pp-ink);
    box-shadow: 0 6px 14px -10px rgba(20, 24, 20, .6);
    color: #fff;
    font-family: var(--pp-bold);
    font-weight: normal;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab > i {
    display: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab-count {
    min-width: 20px;
    margin: 0;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .72);
    color: var(--pp-ink-3);
    font: 11px/18px var(--pp-bold);
    text-align: center;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-task-tab.active .checklist-task-tab-count {
    background: rgba(255, 255, 255, .2);
    color: inherit;
}

/* Agency Tasks intro line */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .pt-2 > p.fs-13 {
    margin: 0 0 14px !important;
    color: var(--pp-ink-3);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .pt-2:has(> .general-checklist-group) {
    padding-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Counters: the design's stat cards (label above, 26px number)
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 0 0 20px !important;
    padding: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary li {
    width: auto;
    height: auto;
    margin: 0;
    padding: 18px 20px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .04), 0 14px 32px -20px rgba(30, 40, 32, .22);
    color: var(--pp-ink-3) !important;
    font: 12.5px/1.55 var(--pp-sans);
    text-align: left;
    text-transform: none;
}

/* The number comes first in the markup; the label reads first in the design */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary li .wrapper-list {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    height: auto;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary li .total-count {
    display: block;
    margin: 6px 0 2px;
    color: var(--pp-ink);
    font: 26px/1.1 var(--pp-bold);
    letter-spacing: -.02em;
}

/* "overdue" is lower case in the markup */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary li.color-pink {
    text-transform: capitalize;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checklist-summary li.color-pink .total-count {
    text-transform: none;
}

/* --------------------------------------------------------------------------
   Toolbar: search across the row, then the two switches
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.checklist-summary + .text-end, .general-checklist-group > .d-flex > .text-end) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 0 0 14px;
    text-align: left !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group > .d-flex > .text-end {
    flex: 1;
    margin: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group > .d-flex {
    flex-wrap: nowrap !important;
    gap: 16px !important;
    margin: 0 0 14px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group > .d-flex > .agency-add-task {
    order: 2;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box {
    order: -1;
    flex: 1;
    min-width: 220px;
    margin: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .pie_search_box {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .pie_search_box:focus-within {
    border-color: color-mix(in srgb, var(--pp-acc) 55%, transparent);
    background: var(--pp-panel);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pp-acc) 16%, transparent);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query input {
    flex: 1;
    min-width: 0;
    height: 38px;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    outline: 0;
    background: transparent !important;
    box-shadow: none;
    color: var(--pp-ink);
    font: 13.5px var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query input::placeholder {
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query input::-webkit-search-cancel-button {
    display: none;
}

/* Clear search: only while there is something to clear */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query > i {
    position: static;
    padding: 4px;
    color: var(--pp-muted);
    font-size: 12px;
    cursor: pointer;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-query:has(input:placeholder-shown) > i {
    display: none;
}

/* The search button sits on the left as the design's magnifier */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-button {
    order: -1;
    display: flex;
    width: auto;
    line-height: 1;
    background: transparent;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-button button {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-button button > span {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--pp-i-search) center / contain no-repeat;
    mask: var(--pp-i-search) center / contain no-repeat;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box .typeahead-button button > span::before {
    content: none;
}

/* On/off switches */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle {
    margin: 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input + label {
    min-height: 20px;
    padding-left: 42px;
    color: var(--pp-ink-2);
    font: 13.5px/20px var(--pp-sans);
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input + label::before {
    top: 0;
    width: 34px;
    height: 20px;
    border: 0;
    border-radius: 10px;
    background: var(--pp-line-2);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input + label::after,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input + label:hover::after {
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transition: left .15s;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input:checked + label::before {
    background: var(--pp-acc);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .checkbox-toggle input:checked + label::after {
    left: 17px;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Filter fields: the design's filled fields (label above the value)
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.text-end, .general-checklist-group > .d-flex) + .row.g-2 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.text-end, .general-checklist-group > .d-flex) + .row.g-2 > * {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 50.5px;
    margin: 0;
    padding: 7px 12px 8px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating:focus-within {
    border-color: color-mix(in srgb, var(--pp-acc) 55%, transparent);
    background: var(--pp-panel);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pp-acc) 16%, transparent);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating > .ffl-label {
    order: -1;
    position: static;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    transform: none;
    opacity: 1;
    color: var(--pp-muted);
    font: 11.5px/1 var(--pp-bold);
    letter-spacing: 0;
    text-transform: none;
}

/* Inner controls drop their own boxes: the field is the box */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .vdp-datepicker .form-control {
    height: 20px;
    min-height: 0 !important;
    padding: 0 22px 0 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: var(--pp-ink);
    font: 13.5px/20px var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .vdp-datepicker .form-control::placeholder {
    color: var(--pp-ink);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating > i.icon {
    position: absolute;
    top: 50%;
    right: 12px;
    margin: 0;
    padding: 0;
    color: var(--pp-ink);
    font-size: 15px;
    line-height: 1;
    transform: translateY(-15%);
    pointer-events: none;
}

/* The calendar icon keeps common.css's z-index 8, the same as the fixed top bar, so it painted over
   the bar while the page scrolled under it. Only the clear button and the input share its field */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating > i.icon {
    z-index: 1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .vdp-datepicker .vdp-datepicker__clear-button {
    position: absolute;
    top: 0;
    right: 22px;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .vdp-datepicker__calendar {
    top: 34px;
    z-index: 20;
}

/* Assigned user (bootstrap-select) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select {
    width: 100% !important;
    height: 20px;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-toggle {
    height: 20px;
    min-height: 0;
    padding: 0 18px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--pp-ink);
    font: 13.5px/20px var(--pp-sans);
    letter-spacing: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
    color: var(--pp-ink);
    font: 13.5px/20px var(--pp-sans);
    letter-spacing: 0;
    text-transform: none;
}

/* Nothing picked = every user */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner {
    font-size: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-toggle.bs-placeholder .filter-option-inner-inner::after {
    content: "All users";
    font-size: 13.5px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-toggle::after {
    position: absolute;
    top: 50%;
    right: 0;
    margin: -2px 0 0;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .bootstrap-select > .dropdown-menu {
    margin-top: 14px !important;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 70px -26px rgba(30, 40, 32, .35), 0 0 0 1px var(--pp-line);
}

/* Show / Task type (v-select) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .v-select .vs__dropdown-toggle {
    min-height: 0 !important;
    height: 20px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .v-select :is(.vs__selected-options, .vs__selected, .vs__search) {
    margin: 0 !important;
    padding: 0;
    border: 0;
    color: var(--pp-ink);
    font: 13.5px/20px var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .v-select .vs__actions {
    padding: 0;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .v-select .vs__actions svg {
    fill: var(--pp-muted);
    transform-origin: center;
    scale: .8;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .row.g-2:not(.modal *) .form-floating .v-select .vs__dropdown-menu {
    top: calc(100% + 14px);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 70px -26px rgba(30, 40, 32, .35), 0 0 0 1px var(--pp-line);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .footer-pagination {
    justify-content: flex-end;
    gap: 4px;
    margin: 0 0 14px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .footer-pagination:last-child {
    margin: 4px 0 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .footer-pagination .page-link {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    margin: 0 !important;
    padding: 0 8px;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    box-shadow: none;
    color: var(--pp-ink-3);
    font: 12.5px var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .footer-pagination .page-item:not(.disabled) .page-link:hover {
    background: #fff;
    color: var(--pp-ink);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .footer-pagination .page-item.active .page-link {
    background: var(--pp-ink);
    box-shadow: 0 6px 14px -10px rgba(20, 24, 20, .6);
    color: #fff;
    font-family: var(--pp-bold);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .footer-pagination .page-item.disabled .page-link {
    color: var(--pp-line-2);
}

/* --------------------------------------------------------------------------
   Trip / template cards (design .nest .panel)
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion {
    padding: 0 !important;
    margin: 0 !important;
    color: var(--pp-ink-2);
    font: 13.5px/1.55 var(--pp-sans);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel {
    margin: 0 0 16px;
    padding: 18px 22px 10px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(30, 38, 32, .04), 0 14px 32px -20px rgba(30, 40, 32, .22);
}

/* Checkboxes on the trip, the checklist and template rows tick nothing (no handler) — the design has none */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .custom-checkbox,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_inner_detail > .custom-checkbox,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .custom-checkbox,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card > .custom-checkbox {
    display: none !important;
}

/* Card header: trip name (the collapse toggle) and the collapse icon */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row {
    display: block;
    margin: 0;
    padding: 0;
}

/* Trip name over the column labels (Task / Description / Assigned to / Due date) that line up
   with the task rows below; the collapse icon on the right. Columns: --chk-cols */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion {
    --chk-cols: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) 64px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row {
    display: grid;
    grid-template-columns: 27px var(--chk-cols);
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    margin: 0 !important;
    padding: 0 10px 10px 0;
    border-bottom: 1px solid var(--pp-line);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row.collapsed {
    padding-bottom: 0;
    border-bottom: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:first-child {
    grid-area: 1 / 1 / 2 / 6;
    min-width: 0;
    color: var(--pp-ink);
    font: 16px/1.55 var(--pp-bold);
}

/* Column labels */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row::after {
    content: "Task";
    grid-area: 2 / 2;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row::after,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:not(:first-child):not(:last-child) {
    min-width: 0;
    overflow: hidden;
    color: var(--pp-muted);
    font: 12px/1.4 var(--pp-sans);
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:nth-child(2) {
    grid-area: 2 / 3;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:nth-child(3) {
    grid-area: 2 / 4;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:nth-child(4) {
    grid-area: 2 / 5;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row.collapsed::after,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row.collapsed > div:not(:first-child):not(:last-child) {
    display: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:last-child {
    grid-area: 1 / 6;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: -10px;
    border-radius: 999px;
    color: var(--pp-ink-3);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row:hover > div:last-child {
    background: var(--pp-panel-2);
    color: var(--pp-ink);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:last-child > i {
    font-size: 13px;
    line-height: 1;
}

/* One checklist: its name (uppercase), "+ Add New Task" next to it, edit / delete on the right, then its tasks */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 14px;
    margin: 0;
    padding: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > .row.g-0 {
    display: contents;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > .row.g-0 > div:first-child {
    order: 0;
    flex: none;
    width: auto;
    max-width: 60%;
    padding: 14px 0 6px !important;
    overflow: hidden;
    color: var(--pp-muted);
    font: 12px/1.55 var(--pp-bold) !important;
    letter-spacing: .05em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > .trip_list_row-add-new-task {
    order: 1;
    flex: none;
    margin: 0;
    padding: 14px 0 6px !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > .row.g-0 > div:last-child {
    order: 2;
    flex: none;
    width: auto;
    margin-left: auto;
    padding: 8px 10px 0 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > :is(div:not([class]), .no_task_found) {
    order: 3;
    flex: 0 0 100%;
}

/* "+ Add New Task" / "+ Add New Checklist": the design's small accent links */
html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.trip-checklist-accordion, .general-checklist-group > .d-flex) .add_new_tast {
    float: none;
    margin: 0;
    color: var(--pp-acc) !important;
    font: 12.5px var(--pp-bold);
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.trip-checklist-accordion, .general-checklist-group > .d-flex) .add_new_tast:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_row-add-new-task {
    margin: 0;
    padding: 14px 0 6px !important;
}

/* Round edit / delete / duplicate icons → the design's 30px icon buttons */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .i-icon-round-border {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--pp-ink-3);
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .i-icon-round-border:hover {
    background: var(--pp-panel-2);
    color: var(--pp-ink);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .i-icon-round-border.pie-icon-trash:hover {
    color: #b4232c;
}

/* --------------------------------------------------------------------------
   Task rows (design .nt): checkbox, title over description, assignee, due date, actions
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_inner_detail > div:has(> .trip_list_detail),
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .agency-task-line:has(> .trip_list_detail),
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--pp-line);
}

/* Trip and agency task rows sit 10px in, so a completed row's tint has room around its text */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_inner_detail > div:has(> .trip_list_detail),
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .agency-task-line:has(> .trip_list_detail) {
    padding: 11px 10px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion :is(.trip_list_inner_detail > div, .agency-task-check) > .custom-checkbox {
    flex: none;
    float: none !important;
    width: 17px;
    height: 17px;
    margin: 0 !important;
    padding: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .agency-task-check {
    flex: none;
    width: 17px;
    align-self: center;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .custom-checkbox input[type=checkbox] {
    top: 0;
    width: 17px;
    height: 17px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .custom-checkbox .checkmark {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--pp-line-2);
    border-radius: 5px;
    background: var(--pp-panel);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .custom-checkbox input[type=checkbox]:checked ~ .checkmark {
    border-color: var(--pp-acc) !important;
    background-color: var(--pp-acc) !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .custom-checkbox input[type=checkbox]:disabled ~ .checkmark {
    opacity: .5;
}

/* The row: title / description stacked on the left, the rest on the right */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion :is(.trip_list_inner_detail > div, .agency-task-line, .checklist-task-card) > .trip_list_detail {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "t a d i" "s a d i";
    align-items: center;
    column-gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 13.5px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div {
    width: auto;
    max-width: none;
    padding: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.55;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(1) {
    grid-area: t;
    align-self: end;
    color: var(--pp-ink);
    font-family: var(--pp-bold);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(2) {
    grid-area: s;
    align-self: start;
    color: var(--pp-muted);
    font-size: 12px !important;
    line-height: 21.7px !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(2) :is(label, .user-card-row-name) {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(3) {
    grid-area: a;
    max-width: 220px;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(3) .user-card-row-name {
    color: inherit;
    font: inherit;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(4) {
    grid-area: d;
    color: var(--pp-ink-2);
    font: 12.5px/1.55 var(--pp-bold) !important;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail > div:nth-child(5) {
    grid-area: i;
    display: flex;
    justify-content: flex-end;
    min-width: 60px;
}

/* Trip task rows: one line per task, each value in its column under the card's labels
   (Task / Description / Assigned to / Due date, see --chk-cols) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail {
    grid-template-columns: var(--chk-cols);
    grid-template-areas: "t s a d i";
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(2) {
    align-self: center;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(1) {
    align-self: center;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(3) {
    max-width: none;
}

/* Completed: the row tinted green (the classic list's completed colour, softened), struck-through
   muted title; no classic box or line */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail.completed_trip::before {
    content: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion :is(.trip_list_inner_detail > div, .agency-task-line):has(> .trip_list_detail.completed_trip) {
    border-bottom-color: #fff;
    border-radius: 10px;
    background: #eef7f1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_detail.completed_trip > div:nth-child(1) {
    color: var(--pp-muted);
    text-decoration: line-through;
}

/* Overdue (the classic pink row: no completed / pending / due class): the due date in red.
   Trip rows have it 4th, agency rows 5th (after Linked to) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .trip_list_inner_detail > div:not([class]) > .trip_list_detail:not(.completed_trip, .no_task_found, .quotes) > div:nth-child(4),
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .agency-task-line > .trip_list_detail:not(.completed_trip, .no_task_found, .quotes) > div:nth-child(5) {
    color: #b4232c !important;
}

/* "No task found" */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .no_task_found.trip_list_detail:not(:has(> div)) {
    display: block;
    margin: 0 !important;
    padding: 11px 0 !important;
    border: 0;
    border-bottom: 1px solid var(--pp-line);
    border-radius: 0;
    background: transparent;
    color: var(--pp-muted);
    font-size: 13.5px;
    text-align: left !important;
}

/* --------------------------------------------------------------------------
   Agency Tasks tab (GeneralChecklistGroup.vue): one card, title + Linked to column
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .trip-checklist-accordion {
    margin-top: 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-line.mt-3 {
    margin: 0 !important;
}

/* The task list: one task per line (the shared flex row above would put several side by side) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-collapse > .trip_list_inner_detail {
    display: block;
}

/* Columns: Task / Description / Linked to / Assigned to / Due date / actions */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .trip-checklist-accordion {
    --chk-agency-cols: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 2fr) minmax(0, 2.4fr) 64px;
}

/* Header: "Agency Tasks" over the column labels, lined up with the rows (same 10px inset and
   empty checkbox column) */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-line {
    gap: 14px;
    padding: 0 10px 10px 0;
    border-bottom: 1px solid var(--pp-line);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-check {
    width: 27px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head {
    display: grid;
    grid-template-columns: var(--chk-agency-cols);
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
    padding: 0;
    border: 0;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head > div {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0 !important;
}

/* The title starts at the card edge, over the checkbox column */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head > div:first-child {
    grid-area: 1 / 1 / 2 / -1;
    margin-left: -41px;
    color: var(--pp-ink);
    font: 16px/30px var(--pp-bold);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head::after {
    content: "Task";
    grid-area: 2 / 1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head::after,
html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head > div:not(:first-child) {
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
    color: var(--pp-muted);
    font: 12px/1.4 var(--pp-sans);
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) {
    grid-template-columns: var(--chk-agency-cols) !important;
    grid-template-areas: "t s l a d i" !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > :is(div:nth-child(1), div:nth-child(2)) {
    align-self: center;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(2) {
    font-size: 13px !important;
    line-height: 1.55 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(3) {
    grid-area: l;
    max-width: none;
    color: var(--pp-muted);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(4) {
    grid-area: a;
    max-width: none;
    color: var(--pp-muted);
    font: 13.5px/1.55 var(--pp-sans) !important;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(4) .user-card-row-name {
    color: inherit;
    font: inherit;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(5) {
    grid-area: d;
    display: block;
    min-width: 0;
    color: var(--pp-ink-2);
    font: 12.5px/1.55 var(--pp-bold) !important;
    white-space: nowrap;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(6) {
    grid-area: i;
    display: flex;
    justify-content: flex-end;
    min-width: 60px;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-empty {
    margin-left: 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .footer-pagination {
    margin: 12px 0 4px;
}

/* --------------------------------------------------------------------------
   Templates page (templates.vue): card header = name + "(Created by …)" + actions;
   tasks with the drag handle, title over description, actions
   -------------------------------------------------------------------------- */
html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .row.g-0 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--pp-line);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .row.g-0 > div {
    width: auto;
    max-width: none;
    padding: 0 !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .row.g-0 > div:first-child {
    flex: 1;
    min-width: 0;
    color: var(--pp-ink);
    font: 16px/1.55 var(--pp-bold) !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .row.g-0 > div:first-child > label {
    margin: 0 0 0 4px;
    color: var(--pp-muted);
    font: 12.5px var(--pp-sans) !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .row.g-0 > div:last-child {
    flex: none;
    display: flex;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card > .trip_list_detail {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "t i" "s i";
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card > .trip_list_detail > div:nth-child(3) {
    grid-area: i;
    display: flex;
    justify-content: flex-end;
    max-width: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card > .trip_list_detail > div:nth-child(2) .user-card-row-name:empty {
    display: none;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card .checklist-task-drag-icon {
    margin-right: 8px !important;
    color: var(--pp-line-2);
    opacity: 1;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .checklist-task-card:hover .checklist-task-drag-icon {
    color: var(--pp-ink-3);
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .panel > .p-2.ps-5 {
    padding: 14px 0 6px !important;
}

html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion > .no_task_found.trip_list_detail {
    padding: 18px 22px !important;
    border: 0;
    border-radius: 24px;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Narrow screens: stack the toolbar and let the task rows wrap
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    html.pie-premium .pp-shell.pp-checklists .checklists-dpage > .crm-panel > .container-fluid {
        padding: 0 20px 24px;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .search-box {
        flex-basis: 100%;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue :is(.text-end, .general-checklist-group > .d-flex) + .row.g-2 {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group > .d-flex {
        flex-wrap: wrap !important;
    }

    /* Too narrow for the columns: title over description on the left, the rest on the right,
       and no column labels */
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-areas: "t a d i" "s a d i";
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(1) {
        align-self: end;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(2) {
        align-self: start;
        font-size: 12px !important;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-collapse > .trip_list_inner_detail > div:not([class]) > .trip_list_detail > div:nth-child(3) {
        max-width: 220px;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
        grid-template-areas: "t l a d i" "s l a d i" !important;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(1) {
        align-self: end;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(2) {
        align-self: start;
        font-size: 12px !important;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) > div:nth-child(4) {
        max-width: 220px;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row::after,
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion .panel-heading .user-card-row > .row > div:not(:first-child):not(:last-child),
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head::after,
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .panel-heading .agency-task-head > div:not(:first-child) {
        display: none;
    }
}

@media (max-width: 767px) {
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .trip-checklist-accordion :is(.trip_list_inner_detail > div, .agency-task-line) > .trip_list_detail,
    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body:not(.agency-task-head) {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas: "t i" "s i" "a i" "d i" !important;
    }

    html.pie-premium .pp-shell.pp-checklists .checklist-vue .general-checklist-group .agency-task-body > div:nth-child(3) {
        display: none;
    }
}
