/* Tabla de vencimientos inspirada en la vista de escritorio de TAX7. */
.due-workspace { font: 12px/1.24 "Segoe UI Variable Text", "Segoe UI", Tahoma, Arial, sans-serif; color: #182d41; }
.due-kpis, .due-controls { background: #fff; border: 1px solid #cfdeeb; border-radius: 4px; }
.due-kpis { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 4px 6px; margin-bottom: 8px; }
.due-kpi-group { display: flex; gap: 4px; flex-wrap: wrap; }
.due-kpi { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; min-height: 24px; border: 1px solid #d2dfec; border-radius: 4px; color: #34516a; background: white; font-size: 11px; white-space: nowrap; }
.due-kpi b { font-size: 12px; margin-left: 5px; }
.due-kpi .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.due-kpi.overdue { color: #a82218; background: #fff9f7; border-color: #efc4bb; }
.due-kpi.today { color: #825d12; background: #fffcf3; border-color: #f0dcac; }
.due-kpi.next { color: #155eb5; background: #f3f8ff; border-color: #abcdf6; }
.due-kpi:hover { filter: brightness(.97); }
.due-kpi[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.due-settings { position: relative; flex: none; }
.due-settings summary { height: 24px; width: 26px; cursor: pointer; list-style: none; border: 1px solid #dbe4ed; border-radius: 3px; background: #f6f8fa; display: grid; place-items: center; color: #1e3d57; }
.due-settings summary::-webkit-details-marker { display: none; }
.due-settings summary .icon { width: 14px; height: 14px; }
.due-menu { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; min-width: 204px; padding: 4px; background: #fff; border: 1px solid #c6d4e0; border-radius: 4px; box-shadow: 0 6px 16px #1e37532b; }
.due-menu button { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; padding: 6px 8px; background: #fff; color: #203b53; border: 0; border-radius: 3px; }
.due-menu button:hover { background: #eaf5ff; }
.due-menu button .icon { width: 13px; height: 13px; color: #006bca; }
.due-controls { padding: 0 8px; box-shadow: 0 1px 2px #16344f14; margin-bottom: 15px; }
.due-title-line { min-height: 28px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e8eef5; }
.due-title-line h1 { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; letter-spacing: 0; color: #142d43; white-space: nowrap; }
.due-title-line .icon { width: 13px; height: 13px; color: #087bff; }
.due-drag-hint, .due-demo-date { color: #5a7187; font-size: 10px; }
.due-demo-date { margin-left: auto; white-space: nowrap; }
.due-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.due-rows, .due-filters { display: flex; align-items: center; gap: 5px; }
.due-rows { flex: none; }
.due-filters { justify-content: flex-end; min-width: 0; }
.due-toolbar label { color: #2b4863; font-size: 11px; font-weight: 650; }
.due-toolbar input, .due-toolbar select { min-height: 27px; padding: 3px 6px; color: #263f58; background: white; border: 1px solid #c5d4e1; border-radius: 3px; font: inherit; }
#deadlineSize { width: 56px; }
#deadlineSearch { width: min(185px, 20vw); }
#deadlineView { width: min(322px, 28vw); }
#deadlineSearch::placeholder { color: #687e91; font-size: 10px; }
.due-columns-btn { min-height: 27px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; color: #006cdd; background: #fff; border: 1px solid #087bff; border-radius: 3px; font: inherit; white-space: nowrap; }
.due-columns-btn:hover { background: #ecf6ff; }
.due-columns-btn .icon { width: 12px; height: 12px; }
.due-table-scroll { overflow-x: auto; background: #fff; }
.due-table { width: 100%; table-layout: fixed; border-collapse: collapse; color: #12293f; font-size: 11px; }
.due-table th, .due-table td { border: 1px solid #dce6ef; }
.due-table th { position: relative; background: #f3f7fa; padding: 0; text-align: left; user-select: none; }
.due-heading { display: flex; align-items: center; gap: 3px; width: 100%; min-height: 22px; padding: 3px 7px 3px 4px; background: none; border: 0; color: inherit; font: 700 10px/1.2 "Segoe UI", Tahoma, Arial, sans-serif; text-align: left; text-transform: uppercase; white-space: nowrap; }
.due-heading:hover { background: #ecf4fb; }
.due-grip, .due-sort { color: #8ba0b3; font-size: 9px; flex: none; }
.due-grip { cursor: grab; touch-action: none; min-width: 11px; }
.due-column-label { overflow: hidden; text-overflow: ellipsis; }
.due-sort { margin-left: auto; }
.due-table th[aria-sort="ascending"] .due-sort, .due-table th[aria-sort="descending"] .due-sort { color: #146fbe; }
.due-table th.due-drop-target { box-shadow: inset 3px 0 #1085e8; background: #e0f0ff; }
.due-resize { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; touch-action: none; }
.due-resize:hover { background: #007bff25; }
.due-table td { padding: 4px 5px; height: 29px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.due-table tr.overdue td { background: #fcf7f7; }
.due-table tr.due-today td { background: #fffcf2; }
.due-table tr:hover td { background: #edf6ff; }
.due-table td.due-col-day, .due-table td.due-col-period, .due-table td.due-col-due { text-align: center; }
.due-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: #0168c9; font: inherit; text-align: left; vertical-align: middle; }
.due-link:hover { text-decoration: underline; }
.due-obligation-link { display: block; line-height: 1.08; }
.due-table td small { display: block; line-height: 1.04; color: #50677c; font-size: 9px; }
.due-day-chip, .due-timing, .due-status { display: inline-block; line-height: 1.15; white-space: nowrap; font-weight: 700; }
.due-day-chip { padding: 1px 8px; border-radius: 8px; color: #1260ae; background: #e9f1fe; }
.due-timing { padding: 1px 5px; border-radius: 9px; }
.due-timing.late { color: #b3261c; background: #fcedec; }
.due-timing.today { color: #885d01; background: #fff2d2; }
.due-timing.next { color: #165ba4; background: #eaf3ff; }
.due-status { padding: 1px 5px; font-size: 10px; border-radius: 4px; color: #3f5770; border: 1px solid #d2dfe9; background: #eef3f6; }
.due-status[data-stage="DIGITADO"] { color: #805900; background: #fff1bc; border-color: #f1d27b; }
.due-status[data-stage="EN_PROCESO"] { color: #0b60a7; background: #e8f4ff; border-color: #b6d9f5; }
.due-status[data-stage="DECLARADO"] { color: #60448c; background: #f4edff; border-color: #dbcaee; }
.due-table td.due-empty { height: 54px; text-align: center; color: #526b82; }
.due-footer { min-height: 35px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px; color: #516c82; font-size: 11px; }
.due-pagination { display: flex; align-items: center; gap: 5px; }
.due-pagination button { padding: 3px 7px; color: #28567f; background: #fff; border: 1px solid #ccdae6; border-radius: 3px; }
.due-pagination button:hover:enabled { background: #eaf4ff; }
.modal:has(#form-deadline-columns) { width: min(715px, 100%); }
.due-column-editor { min-width: 480px; }
.due-column-editor th[scope="row"] { text-transform: none; font-size: 12px; }
.due-column-editor input[type="number"] { width: 72px; }
.due-column-check { display: flex; align-items: center; gap: 4px; }
.due-column-order { white-space: nowrap; }
@media (max-width: 760px) {
  .due-toolbar { flex-wrap: wrap; }
  .due-filters { flex-wrap: wrap; justify-content: flex-start; }
  #deadlineSearch { width: clamp(145px, 44vw, 185px); }
  #deadlineView { width: clamp(125px, 41vw, 230px); }
  .due-drag-hint { display: none; }
}
