/* =====================================================================
   BioTecFarm · gestao.css
   Estilos exclusivos da área Gestão do cultivo:
   checklist compartilhado, equipamentos, compras, tabela,
   identificação do usuário e status de sincronização.
   ===================================================================== */

.gc-head{display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.gc-user{font-size:.73rem; color:var(--muted); display:flex; flex-direction:column; gap:3px; align-items:flex-end;}
.gc-user strong{color:var(--ink); font-weight:600;}
.gc-link{appearance:none; -webkit-appearance:none; border:0; background:transparent; padding:0;
           font-family:inherit; font-size:.72rem; font-weight:500; color:var(--primary); cursor:pointer;
           transition:color .15s ease;}
.gc-link:hover{color:var(--primary-deep);}
.gc-link[disabled]{color:#B6BDC2; cursor:default;}
.gc-link.danger:hover{color:var(--danger);}
.gc-subnav{display:flex; gap:2px; margin-top:18px; border-bottom:1px solid var(--border); overflow-x:auto;}
.gc-subtab{position:relative; flex:0 0 auto; appearance:none; border:0; background:transparent; cursor:pointer;
             font-family:inherit; font-size:.8rem; font-weight:600; color:var(--muted); padding:9px 14px;
             transition:color .15s ease;}
.gc-subtab:hover{color:var(--ink);}
.gc-subtab.active{color:var(--primary);}
.gc-subtab.active::after{content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:var(--primary);}
.gc-status{margin-top:12px; font-size:.73rem; color:var(--muted); line-height:1.55;}
.gc-status.err{color:var(--danger);}
.gc-status.ok{color:var(--ok);}
.gc-gate-row{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:4px;}
.gc-gate-row input{flex:1; min-width:200px; border:1px solid var(--border); border-radius:6px; padding:9px 12px;
                     font-family:inherit; font-size:.9rem; color:var(--ink); background:#fff;}
.gc-gate-row input:focus{outline:none; border-color:var(--primary);}
.gc-weekbar{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
              padding-bottom:14px; border-bottom:1px solid var(--border); margin-bottom:16px;}
.gc-week-label{text-align:center; line-height:1.3;}
.gc-week-label strong{display:block; font-size:.92rem; font-weight:600; color:var(--ink);}
.gc-week-key{font-size:.68rem; color:var(--muted); font-variant-numeric:tabular-nums;}
.gc-progress{margin-bottom:18px;}
.gc-progress-top{display:flex; justify-content:space-between; align-items:baseline; gap:12px;
                   font-size:.8rem; margin-bottom:7px; flex-wrap:wrap;}
.gc-progress-top strong{font-weight:600; color:var(--ink);}
.gc-progress-top span.gc-count{color:var(--muted); font-size:.76rem; font-variant-numeric:tabular-nums;}
.gc-cat{margin-top:18px;}
.gc-cat-title{font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
                color:var(--primary); padding-bottom:6px; border-bottom:1px solid var(--border); margin-bottom:2px;}
.gc-item{display:flex; gap:12px; align-items:flex-start; padding:11px 2px; border-bottom:1px solid #EDF1F4;}
.gc-item:last-child{border-bottom:none;}
.gc-item input.gc-check{appearance:none; -webkit-appearance:none; flex-shrink:0; width:17px; height:17px;
        margin-top:2px; border:1.5px solid #C4CFD8; border-radius:3px; background:#fff; display:grid;
        place-content:center; cursor:pointer; transition:all .15s;}
.gc-item input.gc-check:checked{background:var(--ok); border-color:var(--ok);}
.gc-item input.gc-check:checked::before{content:''; width:9px; height:9px; background:#fff;
        clip-path:polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);}
.gc-body{flex:1; min-width:0;}
.gc-name{font-size:.88rem; font-weight:600; line-height:1.4; color:var(--ink);}
.gc-item.done .gc-name{color:var(--muted); text-decoration:line-through; text-decoration-color:#C4CFD8;}
.gc-meta{font-size:.73rem; color:var(--muted); margin-top:2px; line-height:1.5;}
.gc-action{font-size:.73rem; color:#7C8792; margin-top:1px; line-height:1.5;}
.gc-note{width:100%; margin-top:6px; border:1px solid transparent; border-radius:4px; padding:4px 7px;
           font-family:inherit; font-size:.74rem; color:var(--ink); background:transparent; transition:all .15s ease;}
.gc-note::placeholder{color:#A6AFB6;}
.gc-note:hover{border-color:var(--border);}
.gc-note:focus{outline:none; border-color:var(--primary); background:#fff;}
.gc-by{display:block; font-size:.69rem; color:var(--ok); margin-top:5px; line-height:1.45;}
.gc-freq{display:inline-block; font-size:.66rem; font-weight:600; color:var(--muted); background:var(--bg);
           border:1px solid var(--border); border-radius:3px; padding:1px 6px; margin-left:6px; vertical-align:1px;}
.gc-table-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:6px;}
table.gc-table{border-collapse:collapse; width:100%; min-width:1120px; font-size:.76rem;}
table.gc-table th{text-align:left; font-weight:600; color:var(--muted); background:#F7F9FB; padding:9px 8px;
                    border-bottom:1px solid var(--border); white-space:nowrap; font-size:.7rem;
                    letter-spacing:.02em; position:sticky; top:0;}
table.gc-table td{padding:4px 6px; border-bottom:1px solid #EDF1F4; vertical-align:middle;}
table.gc-table tr:last-child td{border-bottom:none;}
table.gc-table tr.recebido td{background:var(--ok-soft);}
.gc-cell{width:100%; min-width:70px; border:1px solid transparent; border-radius:3px; padding:5px 6px;
           font-family:inherit; font-size:.76rem; color:var(--ink); background:transparent;}
.gc-cell:hover{border-color:var(--border);}
.gc-cell:focus{outline:none; border-color:var(--primary); background:#fff;}
.gc-cell.num{min-width:56px; text-align:right; font-variant-numeric:tabular-nums;}
.gc-cell.wide{min-width:150px;}
select.gc-cell{min-width:96px;}
.gc-chk-cell{display:grid; place-content:center;}
.gc-chk-cell input{width:16px; height:16px; accent-color:var(--ok); cursor:pointer;}
.gc-table-actions{display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:12px;}
.gc-prio-alta{color:#A5443F; font-weight:600;}
.gc-prio-media{color:#8A6A1F; font-weight:600;}
.gc-prio-baixa{color:var(--muted);}
.gc-toast{position:fixed; left:50%; transform:translateX(-50%); bottom:22px; z-index:80;
            background:var(--ink); color:#fff; font-size:.74rem; padding:8px 14px; border-radius:5px;
            opacity:0; pointer-events:none; transition:opacity .25s ease;}
.gc-toast.show{opacity:.94;}
.gc-empty{font-size:.8rem; color:var(--muted); padding:18px 2px; line-height:1.6;}
@media (max-width:700px){
.gc-user{align-items:flex-start; text-align:left;}
.gc-weekbar{justify-content:space-between;}
.gc-week-label{text-align:left; order:-1; width:100%;}
}
@media print{
.gc-subnav, .gc-weekbar, .gc-table-actions, .gc-toast, .gc-gate-row{display:none !important;}
.gc-sec[hidden]{display:block !important;}
.gc-note, .gc-cell{border-color:transparent !important;}
}

/* ===== Resumo compacto da Gestão ===== */
.gc-summary-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px;}
.gc-summary-card{appearance:none; -webkit-appearance:none; width:100%; text-align:left; display:flex; align-items:flex-start; gap:11px;
                 padding:13px 13px 12px; background:#fff; border:1px solid var(--border); border-top:2px solid var(--blue-700);
                 border-radius:8px; font-family:inherit; color:inherit; cursor:pointer;
                 transition:border-color .16s ease, background .16s ease;}
.gc-summary-card:nth-child(2){border-top-color:var(--blue-600);}
.gc-summary-card:nth-child(3){border-top-color:var(--blue-400);}
.gc-summary-card:hover{border-color:var(--blue-300); background:var(--blue-50);}
.gc-summary-card:focus-visible{outline:2px solid rgba(31,78,109,.22); outline-offset:3px;}
.gc-summary-icon{width:31px; height:31px; border-radius:6px; display:grid; place-content:center; flex:0 0 31px;
                 background:var(--blue-100); color:var(--blue-800);}
.gc-summary-icon .icon{width:16px; height:16px; flex-basis:16px;}
.gc-summary-icon.tone-mid{background:#EEF5F7; color:var(--blue-600);}
.gc-summary-icon.tone-soft{background:#F2F6F8; color:var(--blue-500);}
.gc-summary-copy{display:flex; flex-direction:column; min-width:0; flex:1;}
.gc-summary-kicker{font-size:.62rem; text-transform:uppercase; letter-spacing:.075em; font-weight:700; color:var(--muted);}
.gc-summary-copy strong{font-size:.85rem; font-weight:650; color:var(--ink); margin-top:3px; font-variant-numeric:tabular-nums;}
.gc-summary-meta{font-size:.65rem; color:var(--muted); margin-top:3px; line-height:1.35; min-height:18px;}
.gc-summary-go{font-size:.67rem; font-weight:600; color:var(--blue-600); margin-top:7px;}
.gc-summary-bar{height:3px; background:#E9EEF1; border-radius:2px; overflow:hidden; margin-top:7px; width:100%;}
.gc-summary-bar i{display:block; width:0%; height:100%; background:var(--blue-700); transition:width .2s ease;}
.gc-tab-icon{width:15px; height:15px; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; flex:0 0 15px;}
.gc-subtab{display:inline-flex; align-items:center; gap:6px;}

/* Um pouco mais compacto sem perder legibilidade */
.gc-cat{margin-top:14px;}
.gc-item{padding:9px 2px;}
.gc-note{margin-top:4px;}

@media (max-width:880px){
  .gc-summary-grid{grid-template-columns:1fr 1fr;}
  .gc-summary-card:last-child{grid-column:1 / -1;}
}
@media (max-width:620px){
  .gc-summary-grid{grid-template-columns:1fr;}
  .gc-summary-card:last-child{grid-column:auto;}
}
@media (prefers-reduced-motion:reduce){
  .gc-summary-card,.gc-summary-bar i{transition:none;}
}
@media print{.gc-summary-grid{display:none !important;}}


/* ===== V4 · checklist semanal compartilhado em colunas ===== */
.gc-check-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;}
.gc-check-column{min-width:0;border:1px solid #E4E9EC;border-radius:8px;background:#fff;padding:0 12px 8px;}
.gc-column-title{font-size:.68rem;font-weight:700;color:var(--ink);padding:12px 0 9px;border-bottom:1px solid var(--border);letter-spacing:.02em;}
.gc-check-column .gc-cat{margin-top:10px;}
.gc-check-column .gc-cat-title{font-size:.61rem;letter-spacing:.075em;padding-bottom:5px;}
.gc-check-column .gc-item{padding:8px 0;gap:9px;}
.gc-check-column .gc-name{font-size:.8rem;}
.gc-check-column .gc-meta,.gc-check-column .gc-action{font-size:.67rem;line-height:1.42;}
.gc-check-column .gc-note{font-size:.68rem;padding:3px 5px;}
.gc-check-column .gc-freq{font-size:.58rem;padding:1px 4px;}
.gc-item.done .gc-name{text-decoration:none;color:#52616A;}
.gc-item.done{background:linear-gradient(90deg,rgba(52,120,90,.035),transparent 70%);}
.gc-by{font-size:.64rem;color:var(--ok);font-weight:500;}
@media(max-width:980px){.gc-check-columns{grid-template-columns:repeat(2,minmax(0,1fr));}.gc-check-column:last-child{grid-column:1/-1;}}
@media(max-width:680px){.gc-check-columns{grid-template-columns:1fr;}.gc-check-column:last-child{grid-column:auto;}.gc-check-column{padding:0 10px 7px;}}


/* ===== V5 · organização da gestão por frequência ===== */
.gc-progress + .hint{margin-top:-8px;margin-bottom:14px;}
.gc-routine-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px;}
.gc-routine-legend-label{font-size:.65rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-right:4px;}
.gc-routine-pill,.gc-routine-tag,.gc-freq-tag{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:.62rem;font-weight:700;line-height:1.1;border:1px solid transparent;white-space:nowrap;}
.gc-routine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;}
.gc-routine-grid-equip{grid-template-columns:repeat(2,minmax(0,1fr));}
.gc-routine-card{min-width:0;background:#fff;border:1px solid #E4E9EC;border-radius:10px;padding:12px 12px 10px;box-shadow:0 1px 0 rgba(16,24,40,.02);}
.gc-routine-card-wide{grid-column:1 / -1;}
.gc-routine-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:4px;}
.gc-routine-head h3{margin:6px 0 0;font-size:.85rem;font-weight:650;color:var(--ink);}
.gc-routine-count{font-size:.66rem;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;}
.gc-routine-items{display:grid;grid-template-columns:1fr;gap:0;}
.gc-routine-item{padding:10px 0;gap:10px;border-bottom:1px solid #EDF1F4;}
.gc-routine-item:last-child{border-bottom:none;}
.gc-name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.gc-item-subline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:3px;}
.gc-cat-chip{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;background:#F4F7F9;color:#63717A;font-size:.61rem;font-weight:600;}
.gc-routine-item .gc-name{font-size:.83rem;line-height:1.35;}
.gc-routine-item .gc-meta,.gc-routine-item .gc-action{font-size:.69rem;line-height:1.45;}
.gc-routine-item .gc-note{font-size:.7rem;padding:4px 6px;margin-top:5px;}
.gc-routine-item.done{background:linear-gradient(90deg,rgba(53,108,145,.035),transparent 75%);}
.gc-routine-item.done .gc-name{color:#4D5961;}
.gc-freq-tag{margin-left:auto;}
.gc-routine-pill.freq-diaria,.gc-routine-tag.freq-diaria,.gc-freq-tag.freq-diaria{background:rgba(53,108,145,.10);color:#356C91;border-color:rgba(53,108,145,.18);}
.gc-routine-pill.freq-semanal,.gc-routine-tag.freq-semanal,.gc-freq-tag.freq-semanal{background:rgba(71,127,157,.10);color:#477F9D;border-color:rgba(71,127,157,.18);}
.gc-routine-pill.freq-quinzenal,.gc-routine-tag.freq-quinzenal,.gc-freq-tag.freq-quinzenal{background:rgba(184,137,63,.12);color:#9E7434;border-color:rgba(184,137,63,.22);}
.gc-routine-pill.freq-mensal,.gc-routine-tag.freq-mensal,.gc-freq-tag.freq-mensal{background:rgba(117,110,158,.12);color:#655B97;border-color:rgba(117,110,158,.22);}
.gc-routine-pill.freq-trimestral,.gc-routine-tag.freq-trimestral,.gc-freq-tag.freq-trimestral{background:rgba(180,95,95,.12);color:#A15151;border-color:rgba(180,95,95,.22);}
.gc-routine-pill.freq-uso,.gc-routine-tag.freq-uso,.gc-freq-tag.freq-uso{background:rgba(79,128,110,.12);color:#4F806E;border-color:rgba(79,128,110,.22);}
.gc-routine-pill.freq-outro,.gc-routine-tag.freq-outro,.gc-freq-tag.freq-outro{background:rgba(110,132,148,.10);color:#667C8B;border-color:rgba(110,132,148,.18);}
.gc-by{font-size:.64rem;color:var(--ok);font-weight:500;line-height:1.45;}
.gc-item.done .gc-name{text-decoration:none;}
@media(max-width:980px){
  .gc-routine-grid,.gc-routine-grid-equip{grid-template-columns:1fr;}
  .gc-routine-card-wide{grid-column:auto;}
}
@media(max-width:700px){
  .gc-routine-legend-label{width:100%;margin-bottom:2px;}
  .gc-name-row{gap:6px;}
  .gc-freq-tag{margin-left:0;}
}


/* ===== V6 · navegação por frequência e checklist mais compacto ===== */
.gc-freq-jump{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:#FBFCFD;}
.gc-freq-jump-label{font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-right:2px;}
.gc-freq-jump-link{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;border:1px solid transparent;text-decoration:none;font-size:.64rem;font-weight:700;line-height:1.1;white-space:nowrap;transition:transform .15s ease, filter .15s ease, opacity .15s ease;color:inherit;}
.gc-freq-jump-link:hover{transform:translateY(-1px);filter:saturate(105%);}
.gc-routine-stack{display:flex;flex-direction:column;gap:14px;}
.gc-routine-card-anchor{scroll-margin-top:96px;}
.gc-routine-card.compact{padding:11px 12px 9px;}
.gc-routine-items.compact{display:grid;grid-template-columns:1fr;gap:0;}
.gc-routine-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;}
.gc-routine-col{min-width:0;border-top:1px solid #EEF2F5;padding-top:8px;}
.gc-routine-col h4{margin:0 0 7px;font-size:.69rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#5F6E77;}
.gc-routine-col .gc-routine-items{display:grid;grid-template-columns:1fr;gap:0;}
.gc-routine-col .gc-cat-title-inline{display:block;margin:7px 0 3px;font-size:.58rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary);}
.gc-routine-col .gc-routine-item:first-child{padding-top:6px;}
.gc-routine-card.compact .gc-routine-item{padding:8px 0;gap:8px;}
.gc-routine-card.compact .gc-routine-item .gc-name{font-size:.79rem;line-height:1.3;}
.gc-routine-card.compact .gc-routine-item .gc-meta,.gc-routine-card.compact .gc-routine-item .gc-action{font-size:.66rem;line-height:1.38;}
.gc-routine-card.compact .gc-routine-item .gc-note{font-size:.68rem;padding:4px 6px;margin-top:4px;}
.gc-routine-card.compact .gc-by{font-size:.63rem;}
.gc-routine-card.compact .gc-cat-chip{font-size:.58rem;padding:2px 7px;}
.gc-routine-card.compact .gc-freq-tag{font-size:.58rem;padding:3px 7px;}
.gc-routine-card.compact .gc-routine-head{padding-bottom:8px;margin-bottom:2px;}
.gc-routine-card.compact .gc-routine-head h3{font-size:.82rem;margin-top:5px;}
@media(max-width:980px){.gc-routine-cols{grid-template-columns:repeat(2,minmax(0,1fr));}.gc-routine-col:last-child{grid-column:1/-1;}}
@media(max-width:700px){.gc-freq-jump{padding:8px 8px;gap:6px;}.gc-freq-jump-label{width:100%;margin-bottom:2px;}.gc-routine-cols{grid-template-columns:1fr;}.gc-routine-col:last-child{grid-column:auto;}}
@media (prefers-reduced-motion:reduce){.gc-freq-jump-link{transition:none;}}


/* ===== V10 · gestão mais legível e limpa ===== */
.gc-week-key{display:none;}
.gc-routine-stack{gap:18px;}
.gc-routine-card.compact{padding:16px 16px 14px;border-radius:12px;}
.gc-routine-card.compact .gc-routine-head{padding-bottom:10px;margin-bottom:8px;align-items:center;}
.gc-routine-card.compact .gc-routine-head h3{font-size:1rem;margin-top:0;font-weight:700;letter-spacing:.01em;color:var(--ink);}
.gc-routine-count{font-size:.74rem;color:var(--muted);font-weight:600;}
.gc-routine-tag{display:none !important;}
.gc-routine-col{border-top:1px solid #EEF2F5;padding-top:10px;}
.gc-routine-col h4{margin:0 0 10px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#556671;}
.gc-routine-col .gc-cat-title-inline{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;margin:10px 0 6px;font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:none;color:#fff;background:#577892;}
.gc-routine-col .gc-routine-items,.gc-routine-items.compact{gap:0;}
.gc-routine-card.compact .gc-routine-item{padding:11px 0 10px;gap:10px;}
.gc-routine-card.compact .gc-routine-item .gc-name{font-size:.92rem;line-height:1.42;font-weight:650;color:var(--ink);}
.gc-item.done .gc-name{color:#6F7E86;text-decoration:none;}
.gc-routine-card.compact .gc-routine-item .gc-meta,.gc-routine-card.compact .gc-routine-item .gc-action{font-size:.76rem;line-height:1.5;color:#667680;}
.gc-routine-card.compact .gc-routine-item .gc-action{color:#73828B;}
.gc-routine-card.compact .gc-note{font-size:.78rem;padding:6px 8px;margin-top:6px;background:#FBFCFD;}
.gc-routine-card.compact .gc-by{font-size:.72rem;margin-top:6px;}
.gc-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.gc-item-subline{margin-top:5px;gap:8px;}
.gc-cat-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:.67rem;font-weight:700;line-height:1.2;border:1px solid transparent;background:#F4F7F9;color:#586771;}
.gc-cat-chip.cat-autoclavados{background:rgba(53,108,145,.12);color:#356C91;border-color:rgba(53,108,145,.18);}
.gc-cat-chip.cat-solucoes{background:rgba(71,127,157,.12);color:#477F9D;border-color:rgba(71,127,157,.18);}
.gc-cat-chip.cat-consumiveis{background:rgba(184,137,63,.13);color:#9B7235;border-color:rgba(184,137,63,.2);}
.gc-cat-chip.cat-cultivo{background:rgba(79,128,110,.13);color:#4F806E;border-color:rgba(79,128,110,.2);}
.gc-cat-chip.cat-pequenos-materiais{background:rgba(117,110,158,.13);color:#6A5F98;border-color:rgba(117,110,158,.2);}
.gc-cat-chip.cat-limpeza{background:rgba(180,95,95,.12);color:#A15151;border-color:rgba(180,95,95,.2);}
.gc-cat-chip.cat-descarte{background:rgba(110,132,148,.12);color:#667C8B;border-color:rgba(110,132,148,.2);}
.gc-cat-chip.cat-epi{background:rgba(143,95,168,.13);color:#7A4C95;border-color:rgba(143,95,168,.2);}
.gc-cat-chip.cat-temperatura-e-co2,.gc-cat-chip.cat-funcionamento-limpeza,.gc-cat-chip.cat-limpeza-organizacao,.gc-cat-chip.cat-agua-limpeza,.gc-cat-chip.cat-agua-bandeja{background:#F3F7FA;color:#4D6576;border-color:#E1E9EF;}
.gc-freq-jump{padding:10px 12px;background:#FBFCFD;gap:8px;}
.gc-freq-jump-link{padding:6px 10px;font-size:.68rem;font-weight:700;}
.gc-routine-cols{gap:16px;}
.gc-routine-card.compact .gc-cat-chip{font-size:.65rem;padding:4px 10px;}
@media(max-width:980px){.gc-routine-card.compact .gc-routine-head h3{font-size:.96rem;}}
@media(max-width:700px){.gc-routine-card.compact{padding:14px 12px 12px;}.gc-routine-card.compact .gc-routine-item .gc-name{font-size:.88rem;}.gc-routine-col .gc-cat-title-inline{font-size:.64rem;}}


/* ===== V13 · evitar repetição visual das categorias ===== */
.gc-routine-col .gc-cat-title-inline,
.gc-routine-items.compact > .gc-cat-title-inline{display:inline-flex;align-items:center;border-radius:999px;padding:5px 11px;margin:10px 0 7px;font-size:.68rem;font-weight:700;letter-spacing:.02em;text-transform:none;border:1px solid transparent;}
.gc-cat-title-inline.cat-autoclavados{background:rgba(53,108,145,.12);color:#356C91;border-color:rgba(53,108,145,.18);}
.gc-cat-title-inline.cat-solucoes{background:rgba(71,127,157,.12);color:#477F9D;border-color:rgba(71,127,157,.18);}
.gc-cat-title-inline.cat-consumiveis{background:rgba(184,137,63,.13);color:#9B7235;border-color:rgba(184,137,63,.2);}
.gc-cat-title-inline.cat-cultivo{background:rgba(79,128,110,.13);color:#4F806E;border-color:rgba(79,128,110,.2);}
.gc-cat-title-inline.cat-pequenos-materiais{background:rgba(117,110,158,.13);color:#6A5F98;border-color:rgba(117,110,158,.2);}
.gc-cat-title-inline.cat-limpeza{background:rgba(180,95,95,.12);color:#A15151;border-color:rgba(180,95,95,.2);}
.gc-cat-title-inline.cat-descarte{background:rgba(110,132,148,.12);color:#667C8B;border-color:rgba(110,132,148,.2);}
.gc-cat-title-inline.cat-epi{background:rgba(143,95,168,.13);color:#7A4C95;border-color:rgba(143,95,168,.2);}


/* ===== V14 · acabamento visual das categorias da Gestão ===== */
.gc-routine-cols{
  gap:18px;
}
.gc-routine-col{
  min-width:0;
  padding:0 12px 4px;
  border-top:0;
  border-left:1px solid #EDF1F4;
}
.gc-routine-col:first-child{
  border-left:0;
  padding-left:0;
}
.gc-routine-col:last-child{
  padding-right:0;
}
.gc-routine-col h4{
  margin:0 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid #E7ECEF;
  font-size:.79rem;
  font-weight:700;
  line-height:1.35;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:#4E616D;
}

/* Categoria aparece uma única vez como cabeçalho visual do grupo */
.gc-routine-col .gc-cat-title-inline,
.gc-routine-items.compact > .gc-cat-title-inline{
  position:relative;
  display:flex;
  width:100%;
  align-items:center;
  min-height:31px;
  margin:13px 0 5px;
  padding:6px 10px 6px 13px;
  border-radius:7px;
  border:1px solid transparent;
  border-left-width:3px;
  font-size:.72rem;
  font-weight:700;
  line-height:1.25;
  letter-spacing:.015em;
  text-transform:none;
  box-sizing:border-box;
}
.gc-routine-col .gc-cat-title-inline:first-child,
.gc-routine-items.compact > .gc-cat-title-inline:first-child{
  margin-top:3px;
}

.gc-cat-title-inline.cat-autoclavados{
  background:#F1F6F9;
  color:#315F7D;
  border-color:#D8E6EE;
  border-left-color:#356C91;
}
.gc-cat-title-inline.cat-solucoes{
  background:#F2F7F9;
  color:#3F718B;
  border-color:#DBE9EF;
  border-left-color:#477F9D;
}
.gc-cat-title-inline.cat-consumiveis{
  background:#FBF7EF;
  color:#8B662F;
  border-color:#EFE0C5;
  border-left-color:#B8893F;
}
.gc-cat-title-inline.cat-cultivo{
  background:#F1F7F4;
  color:#426F5F;
  border-color:#D9E8E1;
  border-left-color:#4F806E;
}
.gc-cat-title-inline.cat-pequenos-materiais{
  background:#F5F3F8;
  color:#655A8B;
  border-color:#E3DEEC;
  border-left-color:#756E9E;
}
.gc-cat-title-inline.cat-limpeza{
  background:#FAF3F3;
  color:#965050;
  border-color:#EDDCDC;
  border-left-color:#B45F5F;
}
.gc-cat-title-inline.cat-descarte{
  background:#F3F6F8;
  color:#5D7180;
  border-color:#DFE6EA;
  border-left-color:#6E8494;
}
.gc-cat-title-inline.cat-epi{
  background:#F7F2F8;
  color:#744D87;
  border-color:#E8DAEC;
  border-left-color:#8F5FA8;
}

/* Itens mais leves, com melhor separação entre informação principal e auxiliar */
.gc-routine-card.compact .gc-routine-item{
  padding:10px 2px 11px;
  border-bottom:1px solid #EFF2F4;
}
.gc-routine-card.compact .gc-routine-item:last-child{
  border-bottom:0;
}
.gc-routine-card.compact .gc-routine-item .gc-name{
  font-size:.92rem;
  font-weight:600;
  line-height:1.38;
}
.gc-routine-card.compact .gc-routine-item .gc-meta{
  margin-top:3px;
  color:#687983;
}
.gc-routine-card.compact .gc-routine-item .gc-action{
  margin-top:1px;
  color:#7A8890;
}
.gc-routine-card.compact .gc-note{
  margin-top:7px;
  background:#FCFDFE;
  border-color:#EEF2F4;
}
.gc-routine-card.compact .gc-note:hover,
.gc-routine-card.compact .gc-note:focus{
  background:#fff;
}

/* Frequência permanece como navegação; sem competir com as categorias */
.gc-freq-jump{
  margin-top:12px;
  margin-bottom:18px;
  border-radius:9px;
}
.gc-freq-jump-link{
  border-radius:6px;
}

@media(max-width:980px){
  .gc-routine-col{
    border-left:0;
    padding:0;
  }
}
@media(max-width:700px){
  .gc-routine-cols{gap:14px;}
  .gc-routine-col h4{font-size:.75rem;}
  .gc-routine-col .gc-cat-title-inline,
  .gc-routine-items.compact > .gc-cat-title-inline{
    font-size:.70rem;
    min-height:30px;
    padding:6px 9px 6px 11px;
  }
}


/* ===== V16 · Compras e reposição em fichas editáveis ===== */
.gc-buy-section{padding:24px 26px 26px;}
.gc-buy-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:10px;}
.gc-buy-header h2{margin:0 0 4px;}
.gc-buy-header .hint{margin:0;max-width:64ch;}
.gc-buy-header-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
.gc-buy-count{font-size:.72rem;color:var(--muted);font-weight:600;white-space:nowrap;}
.gc-buy-add{white-space:nowrap;}
.gc-buy-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:14px 0 12px;padding-top:12px;border-top:1px solid var(--border);font-size:.67rem;color:var(--muted);}
.gc-buy-legend span{display:inline-flex;align-items:center;gap:6px;}
.buy-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#B7C1C8;}
.buy-dot.pending{background:#B8893F;}
.buy-dot.received{background:var(--ok);}

.gc-buy-wrap{overflow:visible;border:0;border-radius:0;background:transparent;}
.gc-buy-table{display:block;width:100%;min-width:0;border-collapse:separate;font-size:inherit;}
.gc-buy-table thead{display:none;}
.gc-buy-table tbody{display:grid;grid-template-columns:1fr;gap:12px;width:100%;}
.gc-buy-table tr.gc-buy-card{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 14px;width:100%;padding:15px 16px 13px;background:#fff;border:1px solid #DDE5EA;border-left:4px solid #B8893F;border-radius:10px;box-shadow:0 1px 0 rgba(16,24,40,.02);transition:border-color .15s ease,background .15s ease;}
.gc-buy-table tr.gc-buy-card:hover{border-color:#C8D6DF;background:#FCFDFE;}
.gc-buy-table tr.gc-buy-card.recebido{border-left-color:var(--ok);background:#FBFDFB;}
.gc-buy-table tr.gc-buy-card td{display:block;padding:0;border:0;min-width:0;background:transparent!important;}
.gc-buy-table tr.gc-buy-card td::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:.61rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;color:#74818A;line-height:1.25;}

.gc-buy-table td[data-field="prioridade"]{grid-column:span 2;}
.gc-buy-table td[data-field="categoria"]{grid-column:span 3;}
.gc-buy-table td[data-field="item"]{grid-column:span 7;}
.gc-buy-table td[data-field="estoque_atual"]{grid-column:span 2;}
.gc-buy-table td[data-field="estoque_minimo"]{grid-column:span 2;}
.gc-buy-table td[data-field="quantidade_comprar"]{grid-column:span 2;}
.gc-buy-table td[data-field="fornecedor"]{grid-column:span 6;}
.gc-buy-table td[data-field="solicitado_em"]{grid-column:span 3;}
.gc-buy-table td[data-field="responsavel"]{grid-column:span 3;}
.gc-buy-table td[data-field="pedido"]{grid-column:span 3;}
.gc-buy-table td[data-field="recebido"]{grid-column:span 2;}
.gc-buy-table td[data-field="observacoes"]{grid-column:span 7;}
.gc-buy-table .gc-buy-remove{grid-column:1/-1;display:flex!important;justify-content:flex-end!important;padding-top:8px!important;border-top:1px solid #EDF1F4!important;}

.gc-buy-table .gc-cell{display:block;width:100%;min-width:0;height:34px;padding:7px 9px;border:1px solid #DDE5EA;border-radius:6px;background:#FBFCFD;font-family:inherit;font-size:.76rem;color:var(--ink);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;}
.gc-buy-table .gc-cell:hover{border-color:#C6D2DA;background:#fff;}
.gc-buy-table .gc-cell:focus{outline:none;border-color:var(--blue-600);background:#fff;box-shadow:0 0 0 2px rgba(67,122,154,.08);}
.gc-buy-table .gc-cell.num{text-align:left;}
.gc-buy-table select.gc-cell{min-width:0;}
.gc-buy-table .gc-prio-alta{color:#A04444;background:rgba(180,95,95,.06);font-weight:700;}
.gc-buy-table .gc-prio-media{color:#8E692A;background:rgba(184,137,63,.07);font-weight:700;}
.gc-buy-table .gc-prio-baixa{color:#5D7484;background:rgba(71,127,157,.06);font-weight:700;}

.gc-buy-check{height:34px;display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #DDE5EA;border-radius:6px;background:#FBFCFD;font-size:.74rem;font-weight:600;color:#6D7780;cursor:pointer;}
.gc-buy-check input{width:16px;height:16px;margin:0;accent-color:var(--ok);cursor:pointer;}
.gc-buy-card.recebido .gc-buy-check{background:var(--ok-soft);border-color:#CFE5D9;color:var(--ok);}
.gc-buy-remove .gc-del{font-size:.68rem;color:#89939A;}
.gc-buy-remove .gc-del:hover{color:var(--danger);}

.gc-buy-empty-row{display:block!important;width:100%;}
.gc-buy-empty-row td{display:block!important;width:100%;padding:0!important;border:0!important;}
.gc-buy-empty{display:flex;align-items:center;gap:12px;padding:24px 20px;border:1px dashed #CBD6DD;border-radius:10px;background:#FBFCFD;color:var(--muted);}
.gc-buy-empty-icon{width:34px;height:34px;display:grid;place-content:center;border-radius:7px;background:var(--blue-100);color:var(--blue-700);font-size:1rem;flex:0 0 34px;}
.gc-buy-empty strong{display:block;font-size:.82rem;color:var(--ink);font-weight:650;}
.gc-buy-empty span:not(.gc-buy-empty-icon){display:block;font-size:.72rem;margin-top:3px;line-height:1.45;}

@media(max-width:900px){
  .gc-buy-table tr.gc-buy-card{grid-template-columns:repeat(6,minmax(0,1fr));}
  .gc-buy-table td[data-field="prioridade"]{grid-column:span 2;}
  .gc-buy-table td[data-field="categoria"]{grid-column:span 2;}
  .gc-buy-table td[data-field="item"]{grid-column:span 2;}
  .gc-buy-table td[data-field="estoque_atual"],
  .gc-buy-table td[data-field="estoque_minimo"],
  .gc-buy-table td[data-field="quantidade_comprar"]{grid-column:span 2;}
  .gc-buy-table td[data-field="fornecedor"]{grid-column:span 3;}
  .gc-buy-table td[data-field="solicitado_em"]{grid-column:span 3;}
  .gc-buy-table td[data-field="responsavel"]{grid-column:span 3;}
  .gc-buy-table td[data-field="pedido"]{grid-column:span 3;}
  .gc-buy-table td[data-field="recebido"]{grid-column:span 2;}
  .gc-buy-table td[data-field="observacoes"]{grid-column:span 4;}
}
@media(max-width:650px){
  .gc-buy-section{padding:20px 16px;}
  .gc-buy-header{flex-direction:column;gap:12px;}
  .gc-buy-header-actions{width:100%;justify-content:space-between;}
  .gc-buy-table tr.gc-buy-card{grid-template-columns:1fr 1fr;padding:14px 12px;gap:11px 10px;}
  .gc-buy-table td[data-field]{grid-column:span 1;}
  .gc-buy-table td[data-field="item"],
  .gc-buy-table td[data-field="fornecedor"],
  .gc-buy-table td[data-field="responsavel"],
  .gc-buy-table td[data-field="pedido"],
  .gc-buy-table td[data-field="observacoes"]{grid-column:1/-1;}
  .gc-buy-table .gc-buy-remove{grid-column:1/-1;}
}
@media(prefers-reduced-motion:reduce){
  .gc-buy-table tr.gc-buy-card,.gc-buy-table .gc-cell{transition:none;}
}


/* ===== V17 · conter fichas de compras dentro do card ===== */
.gc-buy-section{overflow:hidden;}
.gc-buy-wrap{width:100%;max-width:100%;overflow:hidden;}
.gc-buy-table,
.gc-buy-table tbody,
.gc-buy-table tr.gc-buy-card,
.gc-buy-empty-row,
.gc-buy-empty-row td,
.gc-buy-empty{box-sizing:border-box;max-width:100%;}
.gc-buy-table{table-layout:fixed;}
.gc-buy-table tbody{width:100%;}
.gc-buy-table tr.gc-buy-card{width:auto;min-width:0;}
.gc-buy-empty{width:100%;}
.gc-buy-table .gc-cell,
.gc-buy-check{max-width:100%;}
.gc-buy-table td[data-field="observacoes"] .gc-cell{width:100%;}
@media(max-width:650px){
  .gc-buy-section{overflow:visible;}
  .gc-buy-wrap{overflow:hidden;}
}


/* ===== V18 · correção definitiva do overflow em Compras ===== */
.gc-buy-section{overflow:hidden;}
.gc-buy-section *{box-sizing:border-box;}
.gc-buy-wrap{width:100%;max-width:100%;overflow:hidden;}
table.gc-table.gc-buy-table{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;}
table.gc-table.gc-buy-table tbody{display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;}
table.gc-table.gc-buy-table tr.gc-buy-card{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;}
table.gc-table.gc-buy-table .gc-buy-empty-row{width:100%!important;max-width:100%!important;min-width:0!important;}
table.gc-table.gc-buy-table .gc-buy-empty-row td{width:100%!important;max-width:100%!important;min-width:0!important;}
.gc-buy-empty{width:100%!important;max-width:100%!important;min-width:0!important;}
.gc-buy-table td,.gc-buy-table input,.gc-buy-table select,.gc-buy-table label{min-width:0!important;max-width:100%;}
@media(max-width:650px){
  .gc-buy-section{overflow:hidden;}
}


/* ===== V19 · compras em div cards, sem overflow ===== */
.gc-buy-wrap{width:100%;max-width:100%;overflow:hidden;}
.gc-buy-cards{display:grid;grid-template-columns:1fr;gap:12px;width:100%;max-width:100%;}
.gc-buy-card{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 14px;width:100%;max-width:100%;padding:15px 16px 13px;background:#fff;border:1px solid #DDE5EA;border-left:4px solid #B8893F;border-radius:10px;box-shadow:0 1px 0 rgba(16,24,40,.02);box-sizing:border-box;}
.gc-buy-card.recebido{border-left-color:var(--ok);background:#FBFDFB;}
.gc-buy-card:hover{border-color:#C8D6DF;background:#FCFDFE;}
.gc-buy-field{display:block;min-width:0;}
.gc-buy-field::before{content:attr(data-label);display:block;margin-bottom:5px;font-size:.61rem;font-weight:700;letter-spacing:.055em;text-transform:uppercase;color:#74818A;line-height:1.25;}
.gc-buy-field[data-field="prioridade"]{grid-column:span 2;}
.gc-buy-field[data-field="categoria"]{grid-column:span 3;}
.gc-buy-field[data-field="item"]{grid-column:span 7;}
.gc-buy-field[data-field="estoque_atual"]{grid-column:span 2;}
.gc-buy-field[data-field="estoque_minimo"]{grid-column:span 2;}
.gc-buy-field[data-field="quantidade_comprar"]{grid-column:span 2;}
.gc-buy-field[data-field="fornecedor"]{grid-column:span 6;}
.gc-buy-field[data-field="solicitado_em"]{grid-column:span 3;}
.gc-buy-field[data-field="responsavel"]{grid-column:span 3;}
.gc-buy-field[data-field="pedido"]{grid-column:span 3;}
.gc-buy-field[data-field="recebido"]{grid-column:span 2;}
.gc-buy-field[data-field="observacoes"]{grid-column:span 7;}
.gc-buy-remove{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:8px;border-top:1px solid #EDF1F4;}
.gc-buy-card .gc-cell,.gc-buy-card .gc-buy-check{width:100%;max-width:100%;min-width:0;box-sizing:border-box;}
.gc-buy-empty-row,.gc-buy-empty{width:100%;max-width:100%;box-sizing:border-box;}
@media(max-width:900px){
  .gc-buy-card{grid-template-columns:repeat(6,minmax(0,1fr));}
  .gc-buy-field[data-field="prioridade"],.gc-buy-field[data-field="categoria"],.gc-buy-field[data-field="estoque_atual"],.gc-buy-field[data-field="estoque_minimo"],.gc-buy-field[data-field="quantidade_comprar"],.gc-buy-field[data-field="recebido"]{grid-column:span 2;}
  .gc-buy-field[data-field="item"],.gc-buy-field[data-field="solicitado_em"],.gc-buy-field[data-field="responsavel"],.gc-buy-field[data-field="pedido"]{grid-column:span 3;}
  .gc-buy-field[data-field="fornecedor"],.gc-buy-field[data-field="observacoes"]{grid-column:span 6;}
}
@media(max-width:650px){
  .gc-buy-card{grid-template-columns:1fr 1fr;padding:14px 12px;gap:11px 10px;}
  .gc-buy-field[data-field]{grid-column:span 1;}
  .gc-buy-field[data-field="item"],
  .gc-buy-field[data-field="fornecedor"],
  .gc-buy-field[data-field="responsavel"],
  .gc-buy-field[data-field="pedido"],
  .gc-buy-field[data-field="observacoes"]{grid-column:1/-1;}
}


/* ===== V25 · checklist dobrável + fluxo de ponteiras ===== */
.gc-routine-fold{border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 1px 0 rgba(16,24,40,.02);}
.gc-routine-fold + .gc-routine-fold{margin-top:2px;}
.gc-routine-fold[open]{box-shadow:0 8px 24px rgba(16,24,40,.04);}
.gc-routine-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;background:#FBFCFD;border-left:4px solid #C7D3DB;}
.gc-routine-summary::-webkit-details-marker{display:none;}
.gc-routine-fold.freq-semanal > .gc-routine-summary{border-left-color:#356C91;}
.gc-routine-fold.freq-diaria > .gc-routine-summary{border-left-color:#4F806E;}
.gc-routine-fold.freq-quinzenal > .gc-routine-summary{border-left-color:#756E9E;}
.gc-routine-fold.freq-mensal > .gc-routine-summary{border-left-color:#B8893F;}
.gc-routine-fold.freq-trimestral > .gc-routine-summary{border-left-color:#B45F5F;}
.gc-routine-summary-main{display:flex;flex-direction:column;gap:3px;min-width:0;}
.gc-routine-summary-title{font-size:1rem;font-weight:700;color:var(--ink);line-height:1.2;}
.gc-routine-summary-sub{font-size:.73rem;color:#77848D;line-height:1.35;}
.gc-routine-summary-meta{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.gc-routine-summary .gc-routine-count{margin:0;}
.gc-routine-chevron{width:10px;height:10px;border-right:2px solid #7A8790;border-bottom:2px solid #7A8790;transform:rotate(45deg);transition:transform .18s ease;margin-top:-4px;}
.gc-routine-fold[open] .gc-routine-chevron{transform:rotate(225deg);margin-top:2px;}
.gc-routine-fold .gc-routine-card{border:0;border-top:1px solid #EEF2F5;border-radius:0;box-shadow:none;}
.gc-flow-card{margin-top:16px;padding:14px 16px;border:1px solid #E2E9EE;border-radius:12px;background:linear-gradient(180deg,#FCFDFE 0%,#F8FAFB 100%);}
.gc-flow-copy{margin-bottom:10px;}
.gc-flow-kicker{font-size:.64rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#356C91;margin-bottom:4px;}
.gc-flow-card h4{margin:0 0 6px;font-size:.95rem;color:var(--ink);}
.gc-flow-card p{margin:0;font-size:.78rem;line-height:1.5;color:#67757E;max-width:78ch;}
.gc-flow-details{margin-top:10px;}
.gc-flow-details summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #D8E3EA;border-radius:999px;background:#fff;color:#2C5F83;font-size:.74rem;font-weight:700;}
.gc-flow-details summary::-webkit-details-marker{display:none;}
.gc-flow-details summary::after{content:'▾';font-size:.78rem;line-height:1;}
.gc-flow-details[open] summary::after{content:'▴';}
.gc-flow-details img{display:block;width:100%;height:auto;margin-top:12px;border-radius:10px;border:1px solid #D8E3EA;box-shadow:0 4px 14px rgba(16,24,40,.05);}
@media(max-width:760px){
  .gc-routine-summary{padding:12px 12px;align-items:flex-start;}
  .gc-routine-summary-title{font-size:.93rem;}
  .gc-routine-summary-sub{font-size:.7rem;}
  .gc-routine-summary-meta{gap:8px;}
  .gc-flow-card{padding:12px;}
}


/* ===== V26 · polimento visual da Gestão ===== */
/* Semanal como rotina principal */
.gc-routine-fold.freq-semanal{
  border-color:#C9DCE8;
  box-shadow:0 8px 24px rgba(31,78,109,.06);
}
.gc-routine-fold.freq-semanal > .gc-routine-summary{
  background:linear-gradient(90deg,#F3F8FB 0%,#FBFCFD 72%);
  border-left-color:#2E668B;
  padding-top:16px;
  padding-bottom:16px;
}
.gc-routine-fold.freq-semanal .gc-routine-summary-title{
  font-size:1.08rem;
  color:#173F5B;
}
.gc-routine-fold.freq-semanal .gc-routine-summary-sub{
  color:#627785;
}
.gc-routine-fold.freq-semanal .gc-routine-count{
  background:#E8F1F6;
  color:#315D78;
  border:1px solid #D5E5EE;
  border-radius:999px;
  padding:4px 9px;
  font-size:.68rem;
  font-weight:700;
}

/* Outras periodicidades: discretas e consistentes */
.gc-routine-fold:not(.freq-semanal) > .gc-routine-summary{
  background:#FCFDFE;
}
.gc-routine-fold:not(.freq-semanal) .gc-routine-summary-title{
  font-size:.98rem;
}

/* Card de apoio visual */
.gc-flow-card{
  margin-top:20px;
  padding:0;
  overflow:hidden;
  border:1px solid #D7E4EC;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(31,78,109,.05);
}
.gc-flow-head{
  display:flex;
  align-items:flex-start;
  gap:13px;
  padding:15px 16px 13px;
  background:linear-gradient(90deg,#F3F8FB 0%,#FBFCFD 100%);
  border-bottom:1px solid #E7EEF2;
}
.gc-flow-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#E4F0F6;
  color:#2D668B;
}
.gc-flow-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.gc-flow-copy{margin:0;min-width:0;}
.gc-flow-kicker{
  margin:0 0 3px;
  color:#477895;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.gc-flow-card h4{
  margin:0;
  font-size:.98rem;
  line-height:1.3;
  color:#1D2B33;
}
.gc-flow-card p{
  margin:5px 0 0;
  max-width:72ch;
  font-size:.76rem;
  line-height:1.5;
  color:#6D7A82;
}
.gc-flow-details{margin:0;}
.gc-flow-details summary{
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 16px;
  border:0;
  border-radius:0;
  background:#fff;
  color:#2E607F;
  font-size:.74rem;
  font-weight:700;
  cursor:pointer;
  list-style:none;
}
.gc-flow-details summary:hover{background:#F9FBFC;}
.gc-flow-details summary::-webkit-details-marker{display:none;}
.gc-flow-details summary::after{display:none;}
.gc-flow-summary-arrow{
  width:8px;
  height:8px;
  border-right:2px solid #6C8190;
  border-bottom:2px solid #6C8190;
  transform:rotate(45deg);
  transition:transform .18s ease;
}
.gc-flow-details[open] .gc-flow-summary-arrow{transform:rotate(225deg);}
.gc-flow-image-wrap{
  padding:0 14px 14px;
  background:#fff;
}
.gc-flow-details img{
  display:block;
  width:100%;
  height:auto;
  margin:0;
  border:1px solid #D7E3EA;
  border-radius:10px;
  box-shadow:0 5px 16px rgba(16,24,40,.06);
}

/* Mais respiro entre categorias e itens */
.gc-routine-card.compact .gc-routine-item{
  padding-top:12px;
  padding-bottom:12px;
}
.gc-routine-col .gc-cat-title-inline,
.gc-routine-items.compact > .gc-cat-title-inline{
  margin-top:12px;
  margin-bottom:7px;
}

@media(max-width:760px){
  .gc-routine-fold.freq-semanal .gc-routine-summary-title{font-size:1rem;}
  .gc-flow-head{padding:13px 12px 11px;}
  .gc-flow-details summary{padding:10px 12px;}
  .gc-flow-image-wrap{padding:0 10px 10px;}
  .gc-flow-icon{width:34px;height:34px;flex-basis:34px;}
  .gc-flow-icon svg{width:19px;height:19px;}
}
@media(prefers-reduced-motion:reduce){
  .gc-flow-summary-arrow{transition:none;}
}


/* ===== V27 · contadores nas abas e padrão dobrável para equipamentos ===== */
.gc-routine-summary .gc-routine-count{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:6px 10px;
  border-radius:999px;
  background:#FFFFFF;
  border:1px solid #E4EAF0;
  color:#66757E;
  font-size:.72rem;
  font-weight:700;
  line-height:1;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
.gc-routine-summary .gc-routine-count strong{
  font-size:.78rem;
  font-weight:800;
  color:#22343F;
  font-variant-numeric:tabular-nums;
}
.gc-routine-summary .gc-routine-count small{
  font-size:.64rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#7A8790;
}
.gc-routine-fold .gc-routine-card.gc-routine-card-anchor{padding:16px 16px 14px;}
.gc-routine-fold .gc-routine-items.compact{display:grid;grid-template-columns:1fr;gap:0;}
@media(max-width:760px){
  .gc-routine-summary .gc-routine-count{padding:5px 9px;gap:6px;}
  .gc-routine-summary .gc-routine-count strong{font-size:.74rem;}
  .gc-routine-summary .gc-routine-count small{font-size:.6rem;}
}


/* ===== V28 · imagem ampliável e abas fechadas por padrão ===== */
#gc-equip-jump{display:none !important;}
.gc-flow-image-wrap{position:relative;cursor:zoom-in;}
.gc-flow-preview{display:block;width:100%;height:auto;}
.gc-flow-open{
  position:absolute;left:12px;bottom:12px;z-index:2;
  width:38px;height:38px;border:none;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(24,45,63,.82);color:#fff;box-shadow:0 8px 18px rgba(10,22,34,.18);
  cursor:pointer;backdrop-filter:blur(2px);
}
.gc-flow-open:hover{background:rgba(20,55,88,.94);transform:translateY(-1px);}
.gc-flow-open svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.gc-image-modal[hidden]{display:none !important;}
.gc-image-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:22px;}
.gc-image-backdrop{position:absolute;inset:0;background:rgba(7,16,26,.72);backdrop-filter:blur(4px);}
.gc-image-dialog{position:relative;z-index:1;width:min(1400px,96vw);max-height:92vh;background:#F8FBFD;border:1px solid rgba(255,255,255,.3);border-radius:18px;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.28);}
.gc-image-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid #E2E9EE;background:linear-gradient(180deg,#FCFEFF 0%,#F4F8FB 100%);}
.gc-image-title-wrap{display:flex;flex-direction:column;gap:3px;min-width:0;}
.gc-image-kicker{font-size:.66rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5A7590;}
.gc-image-title-wrap strong{font-size:.98rem;color:#20313D;line-height:1.25;}
.gc-image-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.gc-image-btn{min-width:40px;height:38px;padding:0 12px;border-radius:10px;border:1px solid #D3DDE5;background:#fff;color:#294C68;font-size:.88rem;font-weight:700;cursor:pointer;}
.gc-image-btn:hover{background:#F5F8FB;}
.gc-image-btn.close{min-width:42px;}
.gc-image-stage{height:min(78vh,980px);overflow:auto;padding:18px;background:radial-gradient(circle at top,#FFFFFF 0%,#F1F5F8 100%);cursor:zoom-in;}
.gc-image-stage img{display:block;max-width:none;width:min(100%,1250px);height:auto;margin:0 auto;transform-origin:top center;transition:transform .16s ease;box-shadow:0 10px 28px rgba(8,24,36,.12);border-radius:10px;}
body.gc-modal-open{overflow:hidden;}
@media(max-width:760px){
  .gc-image-modal{padding:10px;}
  .gc-image-dialog{width:100%;max-height:94vh;border-radius:14px;}
  .gc-image-toolbar{padding:12px 12px;align-items:flex-start;}
  .gc-image-title-wrap strong{font-size:.9rem;}
  .gc-image-actions{gap:6px;}
  .gc-image-btn{height:34px;min-width:34px;padding:0 10px;}
  .gc-image-stage{padding:10px;height:76vh;}
  .gc-flow-open{left:10px;bottom:10px;width:34px;height:34px;}
}

/* ===== V29 · arrastar imagem ampliada com mouse ou toque ===== */
.gc-flow-open{
  left:auto !important;
  right:12px !important;
  bottom:12px !important;
}

.gc-image-stage{
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  user-select:none;
}

.gc-image-stage.is-zoomed{
  cursor:grab;
  touch-action:none;
}

.gc-image-stage.is-dragging{
  cursor:grabbing !important;
}

.gc-image-stage img{
  width:100%;
  max-width:none;
  height:auto;
  margin:0 auto;
  transform:none;
  transform-origin:top left;
  transition:width .16s ease;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}

@media(max-width:760px){
  .gc-flow-open{
    left:auto !important;
    right:10px !important;
    bottom:10px !important;
  }
}

/* ===== V30 · atalho direto do item para o fluxo de lavagem ===== */
.gc-item-flow-link{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:auto;
  border:1px solid #D8E3EA;
  border-radius:7px;
  background:#F8FBFD;
  color:#356C91;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}

.gc-item-flow-link:hover{
  background:#EDF5FA;
  border-color:#BFD2DE;
  transform:translateY(-1px);
}

.gc-item-flow-link svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.gc-flow-image-wrap.gc-flow-highlight,
.gc-flow-card.gc-flow-highlight{
  animation:gcFlowHighlight 1.35s ease;
}

@keyframes gcFlowHighlight{
  0%{box-shadow:0 0 0 0 rgba(53,108,145,.32);}
  45%{box-shadow:0 0 0 5px rgba(53,108,145,.13);}
  100%{box-shadow:0 0 0 0 rgba(53,108,145,0);}
}

@media(max-width:760px){
  .gc-item-flow-link{
    width:30px;
    height:30px;
    flex-basis:30px;
  }
}


/* ===== V31 · Contribuições e ranking da equipe ===== */
.gc-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.gc-summary-card:nth-child(4){border-top-color:#756E9E;}
.gc-summary-icon.tone-rank{background:rgba(117,110,158,.12);color:#655B97;}
.gc-rank-section{padding:24px 26px 26px;}
.gc-rank-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;}
.gc-rank-head h2{margin:4px 0 4px;}
.gc-rank-current{flex:0 0 auto;padding:7px 11px;border:1px solid #E0E5EA;border-radius:999px;background:#FAFBFC;color:#5B6670;font-size:.72rem;font-weight:700;}
.gc-rank-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0 15px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.gc-rank-toggle{display:inline-flex;gap:3px;padding:3px;border-radius:9px;background:#F2F5F7;border:1px solid #E2E8EC;}
.gc-rank-toggle button{appearance:none;border:0;background:transparent;border-radius:6px;padding:7px 11px;font-family:inherit;font-size:.72rem;font-weight:650;color:#697680;cursor:pointer;}
.gc-rank-toggle button:hover{color:var(--ink);}
.gc-rank-toggle button.active{background:#fff;color:#244A73;box-shadow:0 1px 4px rgba(16,24,40,.08);}
.gc-rank-toggle.secondary button.active{color:#655B97;}
.gc-rank-note{font-size:.72rem;color:#78848C;line-height:1.5;margin:12px 0;}
.gc-rank-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 16px;}
.gc-rank-podium-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;padding:14px;border:1px solid #E2E8EC;border-radius:10px;background:#fff;}
.gc-rank-podium-card.pos-1{border-top:3px solid #B8893F;background:linear-gradient(180deg,rgba(184,137,63,.055),#fff 42%);}
.gc-rank-podium-card.pos-2{border-top:3px solid #718797;}
.gc-rank-podium-card.pos-3{border-top:3px solid #A56F50;}
.gc-rank-place{width:34px;height:34px;border-radius:50%;display:grid;place-content:center;background:#F2F5F7;color:#4E606C;font-size:.72rem;font-weight:800;}
.pos-1 .gc-rank-place{background:rgba(184,137,63,.14);color:#876326;}
.gc-rank-person{display:flex;flex-direction:column;min-width:0;gap:3px;}
.gc-rank-person strong{font-size:.86rem;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gc-rank-person span{font-size:.65rem;color:#7B8790;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gc-rank-score{font-size:1.18rem;font-weight:800;color:#244A73;font-variant-numeric:tabular-nums;}
.gc-rank-list{border:1px solid #E3E9ED;border-radius:10px;overflow:hidden;}
.gc-rank-list-head,.gc-rank-row{display:grid;grid-template-columns:70px minmax(160px,1fr) 85px 85px 70px;align-items:center;gap:8px;padding:9px 12px;}
.gc-rank-list-head{background:#F7F9FA;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#78858D;border-bottom:1px solid #E3E9ED;}
.gc-rank-row{font-size:.76rem;color:#64717A;border-bottom:1px solid #EDF1F4;}
.gc-rank-row:last-child{border-bottom:0;}
.gc-rank-row.is-me{background:rgba(53,108,145,.055);}
.gc-rank-pos{font-weight:700;color:#71808A;}
.gc-rank-name{font-weight:650;color:var(--ink);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gc-rank-name small{font-size:.6rem;color:#356C91;text-transform:uppercase;letter-spacing:.05em;margin-left:5px;}
.gc-rank-row strong{font-size:.82rem;color:#244A73;font-variant-numeric:tabular-nums;}
.gc-rank-empty{display:flex;flex-direction:column;gap:4px;padding:22px 18px;border:1px dashed #CBD6DD;border-radius:10px;background:#FBFCFD;color:#77848C;}
.gc-rank-empty strong{font-size:.84rem;color:var(--ink);}
.gc-rank-empty span{font-size:.72rem;line-height:1.5;}
.gc-rank-empty code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.68rem;}
@media(max-width:1050px){.gc-summary-grid{grid-template-columns:1fr 1fr;}.gc-summary-card:last-child{grid-column:auto;}.gc-rank-podium{grid-template-columns:1fr;}}
@media(max-width:760px){.gc-rank-section{padding:20px 16px;}.gc-rank-head{flex-direction:column;}.gc-rank-toolbar{align-items:flex-start;}.gc-rank-toggle{width:100%;}.gc-rank-toggle button{flex:1;padding:7px 6px;}.gc-rank-list{overflow-x:auto;}.gc-rank-list-head,.gc-rank-row{min-width:570px;}}
@media(max-width:620px){.gc-summary-grid{grid-template-columns:1fr;}}


/* ===== V32 · históricos e reset automático por período ===== */
.gc-week-label{display:flex;flex-direction:column;align-items:center;gap:3px;}
.gc-history-links{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:2px;color:#A1ABB2;font-size:.64rem;}
.gc-history-link{appearance:none;border:0;background:transparent;padding:1px 0;color:#52758E;font:inherit;font-weight:650;cursor:pointer;text-decoration:underline;text-decoration-color:rgba(82,117,142,.3);text-underline-offset:3px;}
.gc-history-link:hover{color:#244E6B;text-decoration-color:currentColor;}

.gc-history-modal[hidden]{display:none !important;}
.gc-history-modal{position:fixed;inset:0;z-index:1250;display:grid;place-items:center;padding:22px;}
.gc-history-backdrop{position:absolute;inset:0;background:rgba(7,16,26,.72);backdrop-filter:blur(4px);}
.gc-history-dialog{position:relative;z-index:1;width:min(1040px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.35);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.28);}
.gc-history-head{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px 14px;background:rgba(255,255,255,.97);border-bottom:1px solid #E6ECEF;backdrop-filter:blur(8px);}
.gc-history-kicker{font-size:.64rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#5A7590;}
.gc-history-head h2{margin:4px 0 3px;font-size:1.15rem;color:var(--ink);}
.gc-history-head p{margin:0;font-size:.75rem;color:#74818A;}
.gc-history-close{width:38px;height:38px;border:1px solid #D8E1E7;border-radius:10px;background:#fff;color:#53636D;font-size:.9rem;cursor:pointer;}
.gc-history-close:hover{background:#F5F8FA;}
.gc-history-tabs{display:flex;gap:4px;margin:16px 20px 0;padding:4px;background:#F1F5F7;border:1px solid #E3E9ED;border-radius:10px;}
.gc-history-tabs button{flex:1;border:0;border-radius:7px;background:transparent;padding:8px 10px;font-family:inherit;font-size:.73rem;font-weight:700;color:#6A7881;cursor:pointer;}
.gc-history-tabs button.active{background:#fff;color:#2C5875;box-shadow:0 1px 4px rgba(16,24,40,.08);}
.gc-history-note{margin:10px 20px 0;padding:10px 12px;border-left:3px solid #5C839D;background:#F7FAFC;border-radius:6px;font-size:.7rem;line-height:1.45;color:#667680;}
.gc-history-list{display:flex;flex-direction:column;gap:10px;padding:14px 20px 22px;}
.gc-history-period{border:1px solid #E2E8EC;border-radius:11px;background:#fff;overflow:hidden;}
.gc-history-period>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;cursor:pointer;background:#FBFCFD;}
.gc-history-period>summary::-webkit-details-marker{display:none;}
.gc-history-period[open]>summary{border-bottom:1px solid #E8EDF0;background:#F9FBFC;}
.gc-history-period-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.gc-history-period-main strong{font-size:.84rem;color:var(--ink);}
.gc-history-period-main span{font-size:.66rem;color:#7A8790;}
.gc-history-period-stats{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.gc-history-pct{font-size:.88rem;font-weight:800;color:#285977;font-variant-numeric:tabular-nums;}
.gc-history-frac{font-size:.68rem;font-weight:700;color:#71808A;font-variant-numeric:tabular-nums;}
.gc-history-state{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.62rem;font-weight:700;white-space:nowrap;}
.gc-history-state.current{background:rgba(184,137,63,.12);color:#916B30;}
.gc-history-state.reset{background:rgba(79,128,110,.12);color:#42725F;}
.gc-history-chevron{width:8px;height:8px;border-right:2px solid #7A8790;border-bottom:2px solid #7A8790;transform:rotate(45deg);transition:transform .15s ease;margin:0 3px 4px 2px;}
.gc-history-period[open] .gc-history-chevron{transform:rotate(225deg);margin-bottom:-2px;}
.gc-history-period-body{padding:12px 14px 14px;}
.gc-history-mini{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-bottom:8px;font-size:.68rem;color:#738089;}
.gc-history-mini strong{color:#334B5A;font-size:.74rem;}
.gc-history-progress{height:6px;border-radius:999px;background:#EDF2F5;overflow:hidden;margin-bottom:12px;}
.gc-history-progress i{display:block;height:100%;border-radius:inherit;background:#4F806E;}
.gc-history-log{border-top:1px solid #EDF1F4;}
.gc-history-log-row{display:grid;grid-template-columns:8px minmax(0,1fr) minmax(150px,auto);align-items:center;gap:10px;padding:9px 2px;border-bottom:1px solid #EEF2F4;}
.gc-history-log-row:last-child{border-bottom:0;}
.gc-history-log-dot{width:6px;height:6px;border-radius:50%;background:#5F849C;}
.gc-history-log-main,.gc-history-log-who{display:flex;flex-direction:column;gap:2px;min-width:0;}
.gc-history-log-main strong{font-size:.73rem;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.gc-history-log-main span,.gc-history-log-who span{font-size:.63rem;color:#849098;}
.gc-history-log-who{text-align:right;}
.gc-history-log-who strong{font-size:.68rem;color:#556670;font-weight:700;}
.gc-history-empty{padding:18px;border:1px dashed #CBD6DD;border-radius:9px;background:#FBFCFD;color:#7A8790;font-size:.72rem;}
.gc-history-empty.compact{padding:12px 2px;border:0;background:transparent;}
@media(max-width:760px){
  .gc-history-modal{padding:9px;}
  .gc-history-dialog{width:100%;max-height:95vh;border-radius:14px;}
  .gc-history-head{padding:14px 13px 12px;}
  .gc-history-tabs{margin:12px 12px 0;}
  .gc-history-note{margin:9px 12px 0;}
  .gc-history-list{padding:12px;}
  .gc-history-period>summary{align-items:flex-start;flex-direction:column;gap:8px;}
  .gc-history-period-stats{justify-content:flex-start;}
  .gc-history-log-row{grid-template-columns:8px minmax(0,1fr);}
  .gc-history-log-who{grid-column:2;text-align:left;flex-direction:row;gap:6px;flex-wrap:wrap;}
}


/* ===== V33 · históricos por área e início oficial em agosto/2026 ===== */
.gc-equip-weekbar{margin-bottom:18px;}
#equipamentos > h2{margin-top:0;}
.gc-weekbar .gc-link:disabled{opacity:.38;cursor:not-allowed;text-decoration:none;}
@media(max-width:720px){
  .gc-equip-weekbar{margin-bottom:15px;}
}

/* ===== V37 · status inteligente + estoque real ===== */
.gc-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
.gc-summary-card.stock{border-top-color:#4F806E;}
.gc-summary-icon.tone-stock{background:rgba(79,128,110,.12);color:#4F806E;}
.gc-task-state{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:.61rem;font-weight:700;border:1px solid transparent;line-height:1.15;}
.gc-task-state.pending{background:#F4F7F9;color:#687983;border-color:#E3E8EB;}
.gc-task-state.due{background:#FFF7E8;color:#9B6B24;border-color:#F0D8A8;}
.gc-task-state.late{background:#FCEFEF;color:#A04C4C;border-color:#EECFCF;}
.gc-task-state.done{background:#EFF7F2;color:#477A5E;border-color:#D8E9DE;}
.gc-stock-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.gc-stock-title h2{margin:5px 0 5px}.gc-stock-count{font-size:.68rem;color:#75848C;background:#F6F9FA;border:1px solid #E1E8EC;padding:6px 9px;border-radius:999px;white-space:nowrap}.gc-stock-legend{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:#FBFCFD;margin-bottom:12px}.gc-stock-legend span{display:inline-flex;align-items:center;gap:6px;font-size:.64rem;color:#687983}.gc-stock-legend i{width:8px;height:8px;border-radius:50%;background:#9AA6AC}.gc-stock-legend i.ok{background:#4F806E}.gc-stock-legend i.attention{background:#B8893F}.gc-stock-legend i.low{background:#B45F5F}.gc-stock-legend i.unknown{background:#98A4AA}.gc-stock-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gc-stock-card{border:1px solid #E0E7EB;border-left:4px solid #9AA6AC;border-radius:11px;background:#fff;padding:13px 14px}.gc-stock-card.ok{border-left-color:#4F806E}.gc-stock-card.attention{border-left-color:#B8893F}.gc-stock-card.low{border-left-color:#B45F5F}.gc-stock-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}.gc-stock-head>div{display:flex;flex-direction:column;gap:2px}.gc-stock-head>div span{font-size:.58rem;text-transform:uppercase;letter-spacing:.07em;color:#7B8991;font-weight:700}.gc-stock-head>div strong{font-size:.84rem;color:#304852}.gc-stock-state{font-size:.59rem;font-weight:750;padding:4px 7px;border-radius:999px;white-space:nowrap}.gc-stock-state.ok{background:#EFF7F2;color:#477A5E}.gc-stock-state.attention{background:#FFF7E8;color:#94681F}.gc-stock-state.low{background:#FCEFEF;color:#A04C4C}.gc-stock-state.unknown{background:#F2F5F6;color:#77868D}.gc-stock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gc-stock-grid label{display:flex;flex-direction:column;gap:4px;font-size:.62rem;font-weight:650;color:#697A84}.gc-stock-grid input,.gc-stock-note-row input{height:36px;border:1px solid #DCE4E8;border-radius:7px;background:#FBFCFD;padding:0 9px;font:500 .72rem "IBM Plex Sans",sans-serif;color:#354B56;min-width:0}.gc-stock-input{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid #DCE4E8;border-radius:7px;background:#FBFCFD;overflow:hidden}.gc-stock-input input{border:0;border-radius:0;background:transparent}.gc-stock-input span{padding:0 8px;font-size:.62rem;color:#89949A}.gc-stock-note-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:9px}.gc-stock-buy{height:36px;border:1px solid #C8D8E1;border-radius:7px;background:#F2F7F9;color:#315F7C;font:700 .65rem "IBM Plex Sans",sans-serif;padding:0 10px;cursor:pointer}.gc-stock-buy:hover:not(:disabled){background:#E8F1F5}.gc-stock-buy:disabled{opacity:.42;cursor:not-allowed}.gc-stock-meta{margin-top:8px;font-size:.6rem;color:#89949A}.gc-stock-empty{grid-column:1/-1;padding:22px;text-align:center;border:1px dashed #D7E1E6;border-radius:10px;color:#849199;font-size:.7rem;background:#FBFCFD}
@media(max-width:1180px){.gc-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.gc-stock-list{grid-template-columns:1fr}}@media(max-width:760px){.gc-summary-grid{grid-template-columns:1fr 1fr}.gc-stock-title{flex-direction:column}.gc-stock-grid{grid-template-columns:1fr}.gc-stock-note-row{grid-template-columns:1fr}.gc-summary-card:last-child{grid-column:auto}}@media(max-width:520px){.gc-summary-grid{grid-template-columns:1fr}}
