/* ══════════════════════════════════════════════════════════
   MANAGER SHEET — Camada 40  (Projeto Vector)
   ══════════════════════════════════════════════════════════ */

.manager-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0,0,0,0.3);
}
.manager-overlay.active { display: block; }

.manager-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--grey-bg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.manager-sheet.active { display: flex; }

/* ── Header ──────────────────────────────────────── */
.manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(16px,3vw,20px) clamp(14px,3vw,20px) clamp(12px,2vw,16px);
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    flex-shrink: 0;
}

.manager-title {
    font-size: clamp(16px,4vw,18px);
    font-weight: 700;
    color: var(--dark);
}

.manager-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grey-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.manager-close:hover { background: var(--grey-light); }
.manager-close svg { width: 14px; height: 14px; color: var(--grey); }

/* ── Body ────────────────────────────────────────── */
.manager-body {
    overflow-y: auto;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px,5vw,40px) clamp(14px,3vw,20px) calc(var(--nav-height) + var(--safe-bottom) + 24px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mgr-loading {
    color: var(--grey);
    font-size: 13px;
    padding: 40px 0;
    text-align: center;
    width: 100%;
}

/* ── Step container ──────────────────────────────── */
.mgr-step-header-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.mgr-step-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
}

.mgr-step {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.mgr-step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
    gap: 12px;
}

.mgr-step-title {
    font-size: clamp(18px,4vw,20px);
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.mgr-step-close {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: color 0.2s;
    padding: 0;
    flex-shrink: 0;
    margin-top: 4px;
}

.mgr-step-close:hover {
    color: var(--dark);
}

.mgr-step-close svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.mgr-step-sub {
    font-size: clamp(12px,2vw,13px);
    color: var(--grey);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Field ───────────────────────────────────────── */
.mgr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.mgr-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
}

.mgr-input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-sm);
    padding: clamp(10px,2vw,12px) clamp(12px,2vw,14px);
    font-size: clamp(13px,2vw,14px);
    font-family: var(--font);
    color: var(--dark);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.mgr-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.mgr-input::placeholder { color: var(--grey); }
.mgr-input:disabled { background: var(--grey-bg); color: var(--grey); cursor: not-allowed; }
.mgr-input--upper { text-transform: uppercase; letter-spacing: .08em; }

/* ── Error / Success ─────────────────────────────── */
.mgr-error {
    font-size: 12px;
    font-weight: 500;
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    margin-bottom: 12px;
}

.mgr-success {
    font-size: 12px;
    font-weight: 500;
    color: var(--success-text);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* ── Buttons ─────────────────────────────────────── */
.mgr-btn {
    width: 100%;
    padding: clamp(11px,2vw,13px) 16px;
    background: var(--primary);
    color: var(--white);
    font-size: clamp(13px,2vw,14px);
    font-weight: 600;
    font-family: var(--font);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mgr-btn:hover:not(:disabled) { background: var(--primary-dark); }
.mgr-btn:active:not(:disabled) { transform: scale(.98); }
.mgr-btn:disabled { opacity: .55; cursor: not-allowed; }

.mgr-btn--ghost {
    background: #fff;
    color: var(--grey);
    border-color: var(--grey-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mgr-btn--ghost:hover:not(:disabled) {
    background: #fff;
    color: var(--dark);
    border-color: var(--grey);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mgr-btn--orange {
    background: var(--orange);
    color: var(--white);
    border-color: transparent;
}
.mgr-btn--orange:hover:not(:disabled) { background: var(--orange-dark); }

/* ── Spinner ─────────────────────────────────────── */
.mgr-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mgrSpin .6s linear infinite;
    flex-shrink: 0;
}
.mgr-btn--ghost .mgr-spinner {
    border-color: rgba(0,0,0,.15);
    border-top-color: var(--grey);
}
@keyframes mgrSpin { to { transform: rotate(360deg); } }

/* ── Tabs ────────────────────────────────────────── */
.mgr-dashboard-wrap {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.mgr-tabs {
    display: flex;
    gap: 4px;
    background: var(--grey-bg);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.mgr-tab {
    flex: 1;
    padding: 8px 6px;
    font-size: clamp(11px,2vw,12px);
    font-weight: 600;
    font-family: var(--font);
    color: var(--grey);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.mgr-tab.active {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.mgr-tab-panel { display: none; }
.mgr-tab-panel.active {
    display: block;
    margin: 10px 10px 0;
}

/* ── Vehicle cards ───────────────────────────────── */
.mgr-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.mgr-vehicle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    gap: 12px;
}
.mgr-vehicle-card:hover { border-color: var(--primary); }
.mgr-vehicle-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.mgr-vehicle-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mgr-vehicle-modelo {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
}

.mgr-vehicle-desc {
    font-size: 12px;
    color: var(--grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mgr-vehicle-active-tag {
    font-size: 10px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    padding: 1px 7px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ── Vehicle empty state ─────────────────────────── */
.mgr-vehicle-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 20px;
    gap: 8px;
}
.mgr-vehicle-empty-icon { font-size: 2.5rem; }
.mgr-vehicle-empty-text {
    font-size: 13px;
    color: var(--grey);
    text-align: center;
}

/* ── Vehicle active chip (painel) ────────────────── */
.mgr-vehicle-active {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--primary-light);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ── Dashboard ───────────────────────────────────── */
.mgr-step--dashboard {
    align-items: center;
    text-align: center;
    padding-top: clamp(16px,4vw,32px);
}
.mgr-dash-icon { font-size: 3rem; margin-bottom: 16px; line-height: 1; }
.mgr-dash-title { font-size: clamp(18px,4vw,20px); font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.mgr-dash-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    padding: 3px 12px;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.mgr-dash-sub { font-size: clamp(12px,2vw,13px); color: var(--grey); line-height: 1.6; margin-bottom: 28px; max-width: 280px; }

/* ── Vehicle card actions ─────────────────────────── */
.mgr-vehicle-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mgr-vehicle-edit {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: color .15s;
    flex-shrink: 0;
}
.mgr-vehicle-edit svg { width: 16px; height: 16px; }
.mgr-vehicle-edit:hover { color: var(--primary); }

.mgr-vehicle-delete {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: color .15s;
    flex-shrink: 0;
}
.mgr-vehicle-delete svg { width: 16px; height: 16px; }
.mgr-vehicle-delete:hover { color: #d64545; }

/* ── Danger button variant ───────────────────────── */
.mgr-btn--danger {
    background: var(--danger-text);
    color: var(--white);
    border-color: transparent;
}
.mgr-btn--danger:hover:not(:disabled) { background: var(--danger-dark); }

.mgr-btn--modal {
    margin-top: 0;
}

/* ── Confirm modal ───────────────────────────────── */
.mgr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background .2s;
}
.mgr-modal-overlay.visible { background: rgba(0,0,0,0.45); }

.mgr-modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px 20px;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px);
    opacity: 0;
    transition: transform .2s cubic-bezier(.32,.72,0,1), opacity .2s;
}
.mgr-modal-overlay.visible .mgr-modal { transform: translateY(0); opacity: 1; }

.mgr-modal-icon { font-size: 2rem; text-align: center; margin-bottom: 12px; }

.mgr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 10px;
}

.mgr-modal-body {
    font-size: 13px;
    color: var(--grey);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}
.mgr-modal-body strong { color: var(--dark-mid); }

.mgr-modal-actions {
    display: flex;
    gap: 8px;
}
.mgr-modal-actions .mgr-btn { flex: 1; }

/* ── Dashboard footer ────────────────────────────── */
.mgr-dashboard-footer {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--grey-light);
}

/* ══════════════════════════════════════════════════
   MONITORAMENTO
   ══════════════════════════════════════════════════ */

.mgr-mon-add-btn {
    width: 100%;
    padding: clamp(11px,2vw,13px) 16px;
    background: var(--primary);
    color: var(--white);
    font-size: clamp(13px,2vw,14px);
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
    transition: background .15s, transform .1s;
    box-sizing: border-box;
}
.mgr-mon-add-btn:hover { background: var(--primary-dark); }
.mgr-mon-add-btn:active { transform: scale(.98); }

.mgr-mon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mgr-mon-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
}

.mgr-mon-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mgr-mon-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mgr-mon-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.mgr-mon-card-meta {
    font-size: 12px;
    color: var(--grey);
    margin-top: 2px;
}

.mgr-mon-card-rate {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey);
    margin-top: 1px;
}

/* ── Pct badge (estilo protótipo) ────────────────── */
.mgr-mon-pct {
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 4px;
    text-align: right;
}
.mgr-mon-pct--ok    { color: var(--primary); background: var(--primary-light); }
.mgr-mon-pct--warn  { color: var(--warn); background: var(--warn-bg); }
.mgr-mon-pct--crit  { color: var(--danger-text); background: var(--danger-bg); }

/* ── Progress bar (estilo protótipo) ─────────────── */
.mgr-mon-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mgr-mon-bar-track {
    flex: 1;
    height: 6px;
    background: #d0d0d0;
    border-radius: 2px;
    overflow: hidden;
}

.mgr-mon-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .4s ease, background-color .4s ease;
}
.mgr-mon-bar-fill--ok   { background: var(--primary); }
.mgr-mon-bar-fill--warn { background: var(--warn); }
.mgr-mon-bar-fill--crit { background: var(--danger-text); }

.mgr-mon-bar-label {
    font-size: 11px;
    color: var(--grey);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Card actions (estilo protótipo: colored bg) ─── */
.mgr-mon-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}

.mgr-mon-action-btn {
    width: 34px; height: 34px;
    border-radius: 5px;
    background: transparent;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .15s;
    padding: 0;
}
.mgr-mon-action-btn svg { width: 15px; height: 15px; transition: color .15s; }

.mgr-mon-action-btn--edit    { background: var(--primary-light); }
.mgr-mon-action-btn--edit    svg { color: var(--primary); }
.mgr-mon-action-btn--reset   { background: var(--warn-bg); }
.mgr-mon-action-btn--reset   svg { color: var(--warn-dark); }
.mgr-mon-action-btn--delete  { background: var(--danger-bg); }
.mgr-mon-action-btn--delete  svg { color: #F56565; }

.mgr-mon-action-btn:hover { opacity: .75; }

/* ── Reserva slider ──────────────────────────────── */
.mgr-mon-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mgr-mon-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mgr-mon-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 99px;
    background: var(--grey-light);
    outline: none;
    cursor: pointer;
}
.mgr-mon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    cursor: pointer;
}
.mgr-mon-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    cursor: pointer;
    border: none;
}

/* ── Empty state ─────────────────────────────────── */
.mgr-mon-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0 12px;
    gap: 8px;
}
.mgr-mon-empty-icon { font-size: 2.5rem; }
.mgr-mon-empty-text { font-size: 13px; color: var(--grey); text-align: center; }

/* ══════════════════════════════════════════════════════════
   COMBUSTÍVEL
   ══════════════════════════════════════════════════════════ */

.mgr-fuel-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: clamp(11px,2vw,13px) 16px;
    margin-bottom: 16px;
    font-size: clamp(13px,2vw,14px);
    font-weight: 600;
    font-family: var(--font);
    color: var(--white);
    background: var(--orange);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-sizing: border-box;
}
.mgr-fuel-add-btn:hover { background: var(--orange-dark); }
.mgr-fuel-add-btn:active { transform: scale(0.98); }

/* ── Alias para usar em botões de contexto similar (ex: Transações no Painel) ── */
.mgr-fuel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: clamp(11px,2vw,13px) 16px;
    margin-top: 16px;
    font-size: clamp(13px,2vw,14px);
    font-weight: 600;
    font-family: var(--font);
    color: var(--white);
    background: var(--orange);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.mgr-fuel-btn:hover { background: var(--orange-dark); }
.mgr-fuel-btn:active { transform: scale(0.98); }

.mgr-fuel-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.mgr-fuel-card {
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mgr-fuel-card--toggleable {
    padding: 12px;
}

.mgr-fuel-metric-toggle {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: var(--grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color .2s;
    flex-shrink: 0;
}
.mgr-fuel-metric-toggle:hover {
    color: var(--primary);
}
.mgr-fuel-metric-toggle svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.mgr-fuel-label {
    font-size: 11px;
    color: var(--grey);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.mgr-fuel-value {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}
.mgr-fuel-value--orange { color: var(--orange); }
.mgr-fuel-value--dark   { color: var(--dark); }

/* ── Lista de registros ──────────────────────────── */
.mgr-fuel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mgr-fuel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mgr-fuel-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: rgba(237,137,54,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mgr-fuel-item-icon svg { width: 20px; height: 20px; color: var(--orange); }

.mgr-fuel-item-body {
    flex: 1;
    min-width: 0;
}

.mgr-fuel-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mgr-fuel-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.mgr-fuel-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--orange);
    margin: 0;
    white-space: nowrap;
}

.mgr-fuel-item-sub {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.mgr-fuel-item-meta {
    font-size: 12px;
    color: var(--grey);
    margin: 0;
}

.mgr-fuel-item-odo {
    font-size: 12px;
    color: var(--grey);
    margin: 0;
}

/* ── Ações editar/deletar ────────────────────────── */
.mgr-fuel-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.mgr-fuel-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: color .15s;
}
.mgr-fuel-action-btn svg { width: 16px; height: 16px; }
.mgr-fuel-action-btn--edit:hover { color: var(--primary); }
.mgr-fuel-action-btn--delete:hover { color: #d64545; }

/* ── Gráfico SVG Area (estilo protótipo) ─────────── */
.mgr-fuel-chart-wrap {
    margin-bottom: 16px;
    padding: 16px 8px 8px 0;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mgr-fuel-chart-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 16px;
}

.mgr-fuel-chart {
    width: 100%;
    height: 180px;
    position: relative;
}

.mgr-fuel-chart svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.mgr-fuel-chart-dot {
    transition: r .15s;
    cursor: pointer;
}

/* Tooltip */
.mgr-fuel-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 5px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 10;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
    transform: translateX(-50%);
}
.mgr-fuel-tooltip.visible { opacity: 1; }
.mgr-fuel-tooltip-date { font-size: 12px; font-weight: 700; color: var(--dark); }
.mgr-fuel-tooltip-meta { font-size: 12px; color: var(--grey); margin-top: 2px; }
.mgr-fuel-tooltip-value { font-size: 14px; font-weight: 800; color: var(--orange); margin-top: 2px; }

/* ── Tooltip específico para gráfico de histórico financeiro (preto) ── */
#panelFinanceChart .mgr-fuel-tooltip-value {
    color: var(--dark);
}

/* ── Litros calculado preview ────────────────────── */
.mgr-fuel-litros-preview {
    background: rgba(237,137,54,.07);
    border-radius: 5px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mgr-fuel-litros-label { font-size: 13px; color: var(--grey); }
.mgr-fuel-litros-val   { font-size: 18px; font-weight: 800; color: var(--orange); }

/* ══════════════════════════════════════════════════════════
   PROTO LAYOUT — Header + Icon Tabs (estilo protótipo)
   ══════════════════════════════════════════════════════════ */

.mgr-proto-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── Header fixo ─────────────────────────────────── */
.mgr-proto-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-light);
    flex-shrink: 0;
}

.mgr-proto-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
}

.mgr-proto-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.2px;
    margin: 0;
}

.mgr-proto-subtitle {
    font-size: 11px;
    color: var(--grey);
    margin: 1px 0 0 0;
}

.mgr-proto-header-actions {
    display: flex;
    gap: 6px;
}

.mgr-proto-header-btn {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: var(--grey-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    transition: background .15s;
    flex-shrink: 0;
}
.mgr-proto-header-btn:hover { background: var(--grey-light); }
.mgr-proto-header-btn svg { color: var(--grey); width: 16px; height: 16px; }

/* ── Icon Tabs ───────────────────────────────────── */
.mgr-proto-tabs {
    display: flex;
    gap: 0;
}

.mgr-proto-tab {
    flex: 1;
    padding: 10px 0 12px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--grey);
    border-bottom: 2.5px solid transparent;
    transition: all .2s;
    font-family: var(--font);
}
.mgr-proto-tab span {
    font-size: 10px;
    font-weight: 500;
}
.mgr-proto-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.mgr-proto-tab.active span {
    font-weight: 700;
}

/* ── Scroll content ──────────────────────────────── */
.mgr-proto-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mgr-proto-content {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}


/* ══════════════════════════════════════════════════════════
   PAINEL — Cards + Resumo (estilo protótipo)
   ══════════════════════════════════════════════════════════ */

.mgr-panel-reserve {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    padding: 20px;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.mgr-panel-reserve-label {
    font-size: 12px;
    font-weight: 500;
    opacity: .8;
    margin-bottom: 4px;
}

.mgr-panel-reserve-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.mgr-panel-reserve-sub {
    font-size: 12px;
    opacity: .7;
    margin-top: 8px;
}

.mgr-panel-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.mgr-panel-card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.mgr-panel-card-label {
    font-size: 11px;
    color: var(--grey);
    font-weight: 500;
    margin: 0 0 4px 0;
}

.mgr-panel-card-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 2px 0;
}
.mgr-panel-card-value--orange { color: var(--orange); }

.mgr-panel-card-sub {
    font-size: 11px;
    color: var(--grey);
    margin: 0;
}

.mgr-panel-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

/* ── Mini mon list no painel ─────────────────────── */
.mgr-panel-mon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mgr-panel-mon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 6px;
}

.mgr-panel-mon-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mgr-panel-mon-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.mgr-panel-mon-meta {
    font-size: 12px;
    color: var(--grey);
}

/* ── Config section title ────────────────────────── */
.mgr-cfg-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

/* ── Override: quando o proto-layout está ativo, o body precisa flex fill ── */
.manager-body:has(.mgr-proto-layout) {
    padding: 0;
    align-items: stretch;
}

.manager-body .mgr-proto-layout {
    width: 100%;
    max-width: none;
}

/* ── PAINEL: Novos componentes ──────────────────────── */
.panel-section {
    margin-bottom: 20px;
}

.panel-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mgr-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.mgr-btn-small:hover {
    background: var(--dark-hover, #1a1a1a);
}

.mgr-btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Modal de Transações — Removido (conflitava com modal acima) ──── */
/* Estas regras foram removidas pois conflitavam com a definição de .mgr-modal-overlay em linha 426
   A definição em linha 426 é a correta e é utilizada por todos os modais.
   Se precisar de estilos específicos para transações, adicione como .mgr-transaction-modal */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

.mgr-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 16px 0;
}

.mgr-modal-body {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 16px;
    line-height: 1.5;
}

.mgr-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.mgr-modal-actions .mgr-btn {
    flex: 1;
}

.mgr-btn--modal {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
}

.mgr-btn--danger {
    background: var(--danger-text);
    color: var(--white);
}

.mgr-btn--danger:hover {
    background: var(--danger-dark);
}

/* ===========================
   EXTRACT CARDS (Retráteis)
   =========================== */

.extract-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.extract-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.extract-card-header {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
    font-size: inherit;
}

.extract-card-header:hover {
    background-color: #f9fafb;
}

.extract-card-left {
    flex: 1;
    text-align: left;
}

.extract-card-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.extract-card-distance {
    font-size: 0.75rem;
    color: var(--grey);
}

.extract-card-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.extract-card-amount {
    text-align: right;
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    min-width: 80px;
}

.extract-card-chevron {
    width: 20px;
    height: 20px;
    color: #4b5563;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.extract-card-content {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 1rem;
}

.extract-detalhamento {
    width: 100%;
}

.extract-detalhamento-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--grey);
    margin: 0 0 0.75rem 0;
}

.extract-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extract-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 0.375rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
}

.extract-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.extract-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
}

/* ══════════════════════════════════════════════════════════
   MANAGER PROFILE — Interface de Perfil do Usuário
   ══════════════════════════════════════════════════════════ */

/* Card de Perfil */
.mgr-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mgr-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8eef7 0%, #d0ddf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mgr-profile-avatar svg {
    color: var(--primary);
}

.mgr-profile-info {
    flex: 1;
    min-width: 0;
}

.mgr-profile-name {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.mgr-profile-phone {
    font-size: clamp(12px, 1.5vw, 14px);
    color: var(--grey);
    margin: 0;
}

/* Detalhes do Perfil */
.mgr-profile-details {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mgr-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-light);
}

.mgr-detail-row:last-child {
    border-bottom: none;
}

.mgr-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mgr-detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

/* Container de Botões */
.mgr-profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Botão Editar */
.mgr-edit-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-family: var(--font);
}

.mgr-edit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mgr-edit-btn:active {
    transform: scale(0.98);
}

.mgr-edit-btn--orange {
    background: var(--orange);
}

.mgr-edit-btn--orange:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.mgr-edit-btn--danger {
    background: var(--danger-text);
}

.mgr-edit-btn--danger:hover {
    background: var(--danger-dark);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.mgr-edit-btn.mgr-edit-btn--back {
    background: #fff !important;
    color: var(--grey) !important;
    border: 1px solid var(--grey-light) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.mgr-edit-btn.mgr-edit-btn--back:hover {
    background: #fff !important;
    color: var(--dark) !important;
    border-color: var(--grey) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.mgr-edit-btn.mgr-edit-btn--back:active {
    transform: scale(0.98);
}

/* ─── Modal de Edição ───────────────────────────────────── */

.mgr-profile-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mgr-profile-modal-overlay.active {
    display: block;
    opacity: 1;
}

.mgr-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--white);
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
}

.mgr-modal-sheet.active {
    transform: translateY(0);
}

.mgr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--grey-light);
    flex-shrink: 0;
}

.mgr-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}


.mgr-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.mgr-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mgr-form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
}

.mgr-form-input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--dark);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mgr-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.mgr-form-input::placeholder {
    color: var(--grey);
}

.mgr-form-input:disabled {
    background: var(--grey-bg);
    color: var(--grey);
    cursor: not-allowed;
}

.mgr-error-message {
    font-size: 12px;
    font-weight: 500;
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: var(--radius-xs);
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.mgr-success-message {
    font-size: 12px;
    font-weight: 500;
    color: var(--success-text);
    background: #F0FDF4;
    border: 1px solid #DCFCE7;
    border-radius: var(--radius-xs);
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.mgr-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--grey-light);
    flex-shrink: 0;
    background: var(--white);
}

.mgr-btn-cancel {
    background: var(--grey-light);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: var(--font);
}

.mgr-modal-footer .mgr-btn-cancel {
    flex: 1;
}

.mgr-btn-cancel:hover {
    background: #CBD5E0;
}

.mgr-btn-save {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    font-family: var(--font);
    box-shadow: var(--shadow);
}

.mgr-btn-save:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mgr-btn-save:active {
    transform: scale(0.98);
}

.mgr-btn-save:disabled {
    background: var(--grey);
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── Botão de Perigo (para modais de exclusão) ──────────── */
.mgr-btn-delete {
    flex: 1;
    background: var(--danger-text);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    font-family: var(--font);
    box-shadow: var(--shadow);
}

.mgr-btn-delete:hover {
    background: var(--danger-dark);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.mgr-btn-delete:active {
    transform: scale(0.98);
}

.mgr-btn-delete:disabled {
    background: var(--grey);
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── Info Box para Combustível (Litros) ────────────────── */
.mgr-fuel-info-box {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: rgba(237, 137, 54, 0.06);
    border: 1px solid rgba(237, 137, 54, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mgr-fuel-info-box.visible {
    display: flex;
}

.mgr-fuel-info-label {
    font-size: 10px;
    font-weight: 600;
    color: #A0AEC0;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mgr-fuel-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--orange);
}

/* Spinner de carregamento */
.mgr-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ──── Preview de Odômetro ──── */
#previewSection {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#previewCard {
    border-radius: 8px;
}

#previewLucro {
    border-left: 3px solid var(--primary);
}

#previewLucroVal {
    transition: color 0.2s ease;
}

#previewPerformanceVal {
    transition: color 0.2s ease;
}

/* Responsivo */
@media (max-width: 480px) {
    .mgr-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .mgr-profile-info {
        width: 100%;
    }

    .mgr-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .mgr-modal-footer {
        flex-direction: column-reverse;
    }
}

/* ════════════════════════════════════════════════════════════
   Drag & Drop Monitoring Cards (absorvido de drag-drop-monitoring.css)
   ════════════════════════════════════════════════════════════ */

/* Estilo do card durante o drag */
.mgr-mon-card.dragging {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
    background: var(--white);
}

/* Estilo do placeholder */
.mgr-mon-card-placeholder {
    display: block;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    animation: placeholderPulse 1.5s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Feedback visual durante drag */
.mgr-mon-list {
    transition: opacity 0.2s ease;
}

.mgr-mon-list.dragging-active {
    opacity: 0.85;
}

/* Efeito de cursor durante drag */
.mgr-mon-card {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mgr-mon-card:active {
    cursor: grabbing;
}

/* Melhorar o toque em dispositivos móveis */
@media (hover: hover) and (pointer: fine) {
    .mgr-mon-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
}

/* Para telas touchscreen (mobile) */
@media (hover: none) and (pointer: coarse) {
    .mgr-mon-card {
        transition: all 0.15s ease;
    }

    .mgr-mon-card:active {
        background: var(--grey-bg);
        border-color: var(--primary);
    }
}

/* Animação suave ao colocar o card no lugar */
@keyframes placeCard {
    from {
        opacity: 0.8;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mgr-mon-card {
    animation: placeCard 0.2s ease;
}

/* Indicador de salvamento */
.drag-drop-save-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drag-drop-save-indicator::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ════════════════════════════════════════════════════════════
   Extract Panel Styles (absorvido de extract.css)
   ════════════════════════════════════════════════════════════ */

.extract-panel {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem;
}

.extract-panel-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.extract-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Card Container */
.extract-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Card Header */
.extract-card-header {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

.extract-card-header:hover {
  background-color: #f9fafb;
}

.extract-card-left {
  flex: 1;
  text-align: left;
}

.extract-card-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.extract-card-distance {
  font-size: 0.75rem;
  color: #6b7280;
}

.extract-card-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.extract-card-amount {
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  min-width: 80px;
}

.extract-card-reserved {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  white-space: nowrap;
}

.extract-card-header:has(+ .extract-card-content:not([style*="display: none"])) .extract-card-reserved,
.extract-card-header[data-card-id] .extract-card-reserved {
  display: block;
}

.extract-card-chevron {
  width: 20px;
  height: 20px;
  color: #4b5563;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Card Content (Expandível) */
.extract-card-content {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1rem;
  animation: slideDown 0.3s ease;
}

.extract-detalhamento {
  width: 100%;
}

.extract-detalhamento-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.75rem;
  margin: 0 0 0.75rem 0;
}

.extract-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.extract-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 0.375rem;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
}

.extract-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.extract-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563eb;
}

/* Delete Button */
.extract-delete-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--danger-text);
  color: white;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.extract-delete-btn:hover:not(:disabled) {
  background-color: var(--danger-dark);
}

.extract-delete-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.extract-delete-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.extract-delete-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Animações */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Responsividade */
@media (max-width: 640px) {
  .extract-panel {
    padding: 0.75rem;
  }

  .extract-card-header {
    padding: 0.875rem;
  }

  .extract-card-amount {
    font-size: 0.9rem;
    min-width: auto;
  }

  .extract-card-content {
    padding: 0.875rem;
  }
}
