/* Rotina360 — owner visual de Tarefas Diárias.
 * Extraído do app.css no R889 para impedir que manutenção desta tela altere
 * o stylesheet global do shell. Mantém integralmente R883/R884/R885.
 */

/* ==========================================================================
   R883 — Tarefas Diárias / detalhe da tarefa
   Replica o modal de referência com escopo próprio para não alterar outros modais.
   ========================================================================== */
.daily-task-detail-modal-r883{width:min(96vw,900px);max-height:min(92vh,820px);border-radius:20px;box-shadow:0 28px 70px rgba(15,23,42,.3)}
.daily-task-detail-modal-r883 .modal-header{padding:20px 28px!important;min-height:78px}
.daily-task-detail-modal-r883 .modal-header h2{display:flex;align-items:center;gap:20px;font-size:23px;line-height:1.2;color:#0f2748;font-weight:800}
.daily-task-detail-modal-r883 .modal-title-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#dff1ff;color:#0f61e8;flex:none}
.daily-task-detail-modal-r883 .modal-close{width:48px;height:48px;border:1px solid #c8d7eb;border-radius:12px;background:#fff;color:#0f54cf;font-size:25px}
.daily-task-detail-modal-r883 .modal-body{padding:18px 28px 16px}
.daily-task-detail-modal-r883 .modal-footer{padding:12px 28px!important;min-height:76px}
.daily-task-close-r883{min-width:112px!important;padding:10px 20px!important;border:1px solid #b9cce5!important;border-radius:12px!important;background:#fff!important;color:#102743!important;font-weight:800!important;font-size:15px!important}
.daily-task-summary-r883{border:1px solid #d8e4f2;border-radius:15px;background:#fbfdff;padding:14px 20px;margin-bottom:26px}
.daily-task-summary-row-r883{display:grid;grid-template-columns:42px 175px minmax(0,1fr);align-items:center;gap:14px;min-height:54px}
.daily-task-summary-row-r883+.daily-task-summary-row-r883{border-top:0}
.daily-task-summary-icon-r883{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eef5ff;color:#1764e8}
.daily-task-summary-row-r883>strong{font-size:14px;color:#53698a;font-weight:800;border-right:1px solid #d6e1ef;padding-right:22px;min-height:36px;display:flex;align-items:center}
.daily-task-summary-value-r883{min-width:0;color:#233b5b;font-size:15px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.daily-task-summary-value-r883>a{font-size:12px;font-weight:800;color:#1764e8;text-decoration:none;padding:5px 9px;border-radius:8px;background:#edf4ff}
.daily-task-progress-r883{margin:0 0 20px}
.daily-task-progress-r883 span{font-size:15px;color:#5a6f8f;align-items:baseline}
.daily-task-progress-r883 span strong{font-size:18px;color:#0e63ed}
.daily-task-progress-r883 i{height:10px;margin-top:10px;background:#e8eef6}
.daily-task-progress-r883 b{background:#1667ee}
.daily-task-empty-r883{min-height:270px;border:1px solid #cbdced;border-radius:15px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 24px}
.daily-task-empty-icon-r883{position:relative;display:grid;place-items:center;width:88px;height:88px;border-radius:50%;background:#f0f6ff;color:#1265eb;margin-bottom:8px}
.daily-task-empty-icon-r883:before,.daily-task-empty-icon-r883:after{content:"";position:absolute;width:7px;height:7px;border-radius:999px;background:#b9d4fb}
.daily-task-empty-icon-r883:before{left:-10px;top:36px;box-shadow:7px -21px 0 #b9d4fb,7px 21px 0 #b9d4fb}
.daily-task-empty-icon-r883:after{right:-10px;top:36px;box-shadow:-7px -21px 0 #b9d4fb,-7px 21px 0 #b9d4fb}
.daily-task-empty-r883 h3{margin:0 0 6px;color:#102743;font-size:17px;font-weight:850}
.daily-task-empty-r883 p{max-width:520px;margin:0 0 17px;color:#7285a3;font-size:14px;line-height:1.35}
.daily-task-add-stage-r883{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 24px!important;border-radius:10px!important;background:#1765e8!important;border-color:#1765e8!important;color:#fff!important;font-size:15px!important;font-weight:800!important;box-shadow:0 8px 18px rgba(23,101,232,.18)}
.daily-task-detail-modal-r883 .daily-task-stage-group-r883{border:1px solid #d8e4f2;border-radius:14px;padding:14px 16px;background:#fff;margin:12px 0}
.daily-task-detail-modal-r883 .daily-task-stage-group-r883 h3{margin-bottom:8px;color:#526987}
.daily-task-detail-modal-r883 .daily-task-stage-group-r883 article{border-top:1px solid #edf2f7;padding:11px 4px}
.daily-task-detail-modal-r883 .daily-task-stage-group-r883 article:first-of-type{border-top:0}
.daily-task-detail-modal-r883 .daily-task-stage-group-r883+.daily-task-add-stage-r883{margin-top:8px}
@media(max-width:760px){
  .daily-task-detail-modal-r883{width:100%!important;max-height:94vh;border-radius:18px 18px 0 0}
  .daily-task-detail-modal-r883 .modal-header{padding:16px 18px!important;min-height:68px}
  .daily-task-detail-modal-r883 .modal-header h2{gap:12px;font-size:19px}
  .daily-task-detail-modal-r883 .modal-title-icon{width:44px;height:44px;border-radius:12px}
  .daily-task-detail-modal-r883 .modal-close{width:42px;height:42px}
  .daily-task-detail-modal-r883 .modal-body{padding:14px 16px 18px}
  .daily-task-summary-r883{padding:10px 12px;margin-bottom:20px}
  .daily-task-summary-row-r883{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:7px 0}
  .daily-task-summary-row-r883>strong{border-right:0;padding-right:0;min-height:auto}
  .daily-task-summary-value-r883{grid-column:2;font-size:14px}
  .daily-task-empty-r883{min-height:235px;padding:24px 16px}
  .daily-task-empty-icon-r883{width:76px;height:76px}
  .daily-task-add-stage-r883{width:100%}
  .daily-task-detail-modal-r883 .modal-footer{padding:10px 16px!important;min-height:66px}
}

/* ==========================================================================
   R884 — Tarefas Diárias no padrão visual de Minhas Demandas
   Escopo exclusivo da tela para evitar impacto em outros módulos.
   ========================================================================== */
.daily-task-title-r884{display:inline-flex;align-items:center;gap:11px;color:#0f2748}
.daily-task-title-r884>svg{color:#1765e8}
.daily-task-header-actions-r884{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.daily-task-secondary-r884,.daily-task-new-r884{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border-radius:10px;font-weight:750}
.daily-task-secondary-r884{background:#fff;border:1px solid #bfd0e6;color:#14345b}
.daily-task-secondary-r884:hover{background:#f5f9ff;border-color:#91b4df}
.daily-task-new-r884{padding-inline:17px!important;box-shadow:0 8px 18px rgba(37,99,235,.18)}
.daily-task-page-r884{display:grid;gap:14px}
.daily-task-filters-r884{display:grid;grid-template-columns:minmax(220px,1.15fr) repeat(4,minmax(170px,1fr));gap:9px;padding:10px;border:1px solid #d8e3f1;border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 8px 22px rgba(15,39,72,.045)}
.daily-task-filters-r884 select,.daily-task-search-r884,.daily-task-clear-r884{min-height:42px;border:1px solid #bfd0e6;border-radius:10px;background:#fff;color:#17365d;font-size:13px}
.daily-task-filters-r884 select{width:100%;padding:0 12px}
.daily-task-search-r884{display:flex;align-items:center;gap:8px;padding:0 12px;color:#6f86a5}
.daily-task-search-r884 input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#17365d;padding:0;font-size:13px}
.daily-task-search-r884 input::placeholder{color:#7e91ac}
.daily-task-clear-r884{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;font-weight:700;color:#355474}
.daily-task-filters-r884>*:focus-within,.daily-task-filters-r884 select:focus{outline:0;border-color:#2f6fed;box-shadow:0 0 0 3px rgba(47,111,237,.12)}
.daily-task-kpis-r884{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.daily-task-kpis-r884 article{min-height:78px;display:grid;align-content:center;gap:4px;padding:14px 15px;border:1px solid #cbd9ea;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(15,39,72,.035)}
.daily-task-kpis-r884 article strong{font-size:23px;line-height:1;color:#0f2748;font-weight:850}
.daily-task-kpis-r884 article span{font-size:12px;color:#627a9a}
.daily-task-kpis-r884 article.has-alert strong{color:#c2410c}
.daily-task-kpis-r884 article.is-success strong{color:#15803d}
.daily-task-table-card-r884{padding:14px 14px 12px;border:1px solid #cbd9ea;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(15,39,72,.07)}
.daily-task-list-heading-r884{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1px 2px 12px}
.daily-task-list-heading-r884>div{display:grid;gap:2px}
.daily-task-list-heading-r884 strong{font-size:15px;color:#102b4e}
.daily-task-list-heading-r884 span{font-size:11px;color:#7890ad}
.daily-task-today-r884{display:inline-flex!important;align-items:center;justify-content:center;min-width:58px;height:28px;padding:0 10px;border-radius:99px;background:#edf4ff;color:#1e5ecf!important;font-weight:800!important}
.daily-task-table-wrap-r884{overflow:auto;border:1px solid #d3dfed;border-radius:12px}
.daily-task-table-r884{width:100%;min-width:970px;border-collapse:separate;border-spacing:0;background:#fff}
.daily-task-table-r884 thead th{height:48px;padding:0 12px;border-bottom:1px solid #bed0e5;background:#dce9f8;color:#294d74;font-size:10px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.daily-task-table-r884 thead th:first-child{padding-left:18px}
.daily-task-table-r884 tbody tr{transition:background .15s ease}
.daily-task-table-r884 tbody tr:hover{background:#f8fbff}
.daily-task-table-r884 tbody td{padding:11px 12px;border-bottom:1px solid #dce5f0;color:#17365d;font-size:12px;vertical-align:middle}
.daily-task-table-r884 tbody tr:last-child td{border-bottom:0}
.daily-task-table-r884 tbody td:first-child{padding-left:18px}
.daily-task-name-r884{display:flex;align-items:flex-start;gap:11px;min-width:320px}
.daily-task-row-icon-r884{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:10px;background:#edf4ff;color:#1765e8}
.daily-task-name-r884>div{display:grid;gap:3px;min-width:0}
.daily-task-name-r884 strong{font-size:12.5px;line-height:1.25;color:#0f2748;font-weight:800}
.daily-task-name-r884 small{max-width:560px;color:#607b9d;font-size:10.5px;line-height:1.35;white-space:normal}
.daily-task-owner-r884{display:inline-block;max-width:130px;color:#25476d;line-height:1.3}
.daily-task-status-r884{display:inline-flex;align-items:center;gap:7px;min-height:27px;padding:0 11px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.daily-task-status-r884 i{width:7px;height:7px;border-radius:50%;background:currentColor}
.daily-task-status-r884.warning{background:#fff1c4;color:#b76d00}
.daily-task-status-r884.progress{background:#e3f0ff;color:#1765e8}
.daily-task-status-r884.danger{background:#fee2e2;color:#b42318}
.daily-task-status-r884.success{background:#dcfce7;color:#15803d}
.daily-task-deadline-r884{display:inline-block;max-width:100px;color:#395979;line-height:1.3}
.daily-task-actions-r884{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;white-space:nowrap}
.daily-task-detail-button-r884,.daily-task-edit-r885,.daily-task-delete-r885,.daily-task-complete-r884{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 12px;border-radius:9px;font-size:11px;font-weight:800}
.daily-task-detail-button-r884{background:#fff;border:1px solid #b9cce4;color:#17365d}
.daily-task-detail-button-r884:hover{background:#f6f9fd}
.daily-task-edit-r885{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}
.daily-task-edit-r885:hover{background:#dbeafe;border-color:#93c5fd}
.daily-task-delete-r885{background:#fff7f7;border:1px solid #fecaca;color:#b42318}
.daily-task-delete-r885:hover{background:#fee2e2;border-color:#fca5a5}
.daily-task-complete-r884{min-width:78px;padding-inline:13px!important;box-shadow:0 6px 14px rgba(37,99,235,.14)}
.daily-task-empty-list-r884{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#7890ad;text-align:center}
.daily-task-empty-list-r884>svg{color:#6f8fb8;margin-bottom:3px}
.daily-task-empty-list-r884 strong{color:#284969;font-size:13px}
.daily-task-empty-list-r884 span{font-size:11px}
.daily-task-recurrence-r884{display:grid;gap:12px}
.daily-task-recurrence-r884>p{margin:0;padding:11px 13px;border:1px solid #d8e4f2;border-radius:10px;background:#f8fbff;color:#55708f;font-size:12px;line-height:1.45}

[data-theme=dark] .daily-task-title-r884{color:var(--text)}
[data-theme=dark] .daily-task-filters-r884,[data-theme=dark] .daily-task-table-card-r884,[data-theme=dark] .daily-task-kpis-r884 article{background:var(--surface,#0f172a);border-color:var(--border)}
[data-theme=dark] .daily-task-filters-r884 select,[data-theme=dark] .daily-task-search-r884,[data-theme=dark] .daily-task-clear-r884{background:var(--surface-2,#172033);border-color:var(--border);color:var(--text)}
[data-theme=dark] .daily-task-search-r884 input{color:var(--text)}
[data-theme=dark] .daily-task-table-wrap-r884,[data-theme=dark] .daily-task-table-r884{background:var(--surface,#0f172a);border-color:var(--border)}
[data-theme=dark] .daily-task-table-r884 thead th{background:var(--surface-2,#172033);border-color:var(--border);color:#b9c8dc}
[data-theme=dark] .daily-task-table-r884 tbody td{border-color:var(--border);color:var(--text)}
[data-theme=dark] .daily-task-table-r884 tbody tr:hover{background:rgba(59,130,246,.07)}
[data-theme=dark] .daily-task-name-r884 strong,[data-theme=dark] .daily-task-list-heading-r884 strong,[data-theme=dark] .daily-task-kpis-r884 article strong{color:var(--text)}
[data-theme=dark] .daily-task-name-r884 small,[data-theme=dark] .daily-task-list-heading-r884 span,[data-theme=dark] .daily-task-kpis-r884 article span,[data-theme=dark] .daily-task-owner-r884,[data-theme=dark] .daily-task-deadline-r884{color:var(--muted)}
[data-theme=dark] .daily-task-row-icon-r884{background:#172554;color:#93c5fd}
[data-theme=dark] .daily-task-detail-button-r884,[data-theme=dark] .daily-task-secondary-r884{background:var(--surface-2,#172033);border-color:var(--border);color:var(--text)}

@media(max-width:1180px){
  .daily-task-filters-r884{grid-template-columns:repeat(3,minmax(0,1fr))}
  .daily-task-search-r884{grid-column:span 2}
}
@media(max-width:820px){
  .daily-task-header-actions-r884{width:100%;justify-content:stretch}
  .daily-task-header-actions-r884>button{flex:1}
  .daily-task-filters-r884{grid-template-columns:1fr 1fr}
  .daily-task-search-r884{grid-column:1/-1}
  .daily-task-kpis-r884{grid-template-columns:1fr 1fr}
  .daily-task-table-card-r884{padding:10px}
}
@media(max-width:620px){
  .daily-task-header-actions-r884{display:grid;grid-template-columns:1fr 1fr}
  .daily-task-header-actions-r884 .daily-task-new-r884{grid-column:1/-1}
  .daily-task-filters-r884{grid-template-columns:1fr}
  .daily-task-search-r884{grid-column:auto}
  .daily-task-kpis-r884{grid-template-columns:1fr 1fr}
  .daily-task-kpis-r884 article{min-height:68px;padding:11px}
  .daily-task-kpis-r884 article strong{font-size:20px}
  .daily-task-table-wrap-r884{overflow:visible;border:0}
  .daily-task-table-r884{min-width:0}
  .daily-task-table-r884 thead{display:none}
  .daily-task-table-r884,.daily-task-table-r884 tbody,.daily-task-table-r884 tr,.daily-task-table-r884 td{display:block;width:100%}
  .daily-task-table-r884 tbody{display:grid;gap:10px}
  .daily-task-table-r884 tbody tr{border:1px solid #d5e1ee;border-radius:12px;background:#fff;padding:11px}
  .daily-task-table-r884 tbody td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;padding:6px 0!important;border:0}
  .daily-task-table-r884 tbody td:before{content:attr(data-label);color:#8093ac;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
  .daily-task-table-r884 tbody td:first-child{display:block;padding-bottom:10px!important;border-bottom:1px solid #edf2f7}
  .daily-task-table-r884 tbody td:first-child:before{display:none}
  .daily-task-name-r884{min-width:0}
  .daily-task-actions-r884{justify-content:flex-start;flex-wrap:wrap}
  .daily-task-actions-r884>button{flex:1}
  [data-theme=dark] .daily-task-table-r884 tbody tr{background:var(--surface,#0f172a);border-color:var(--border)}
}
