/* ===================== THEME ===================== */
:root {
  --primary: #176B87;
  --primary-hover: #1f8aa9;
  --accent: #57cc99;
  --accent-hover: #3fb784;
  --danger: #e58a9c;
  --danger-hover: #d66d82;
  --bg: #f4f6f8;
  --text: #2a2f33;
  --card-bg: #ffffff;
  --border: #e3e8ec;
  --radius: 12px;
  --transition: .25s ease;
  --shadow: 0 4px 12px rgba(22, 34, 51, .08);
  --header-height: 70px;
  font-size: 16px;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===================== HEADER ===================== */
.app-header {
  background: linear-gradient(90deg, var(--primary) 0%, #2492b2 60%, #27a4c7 100%);
  color: #fff;
  padding: .75rem 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.app-title {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.app-subtitle {
  font-size: .8rem;
  opacity: .85;
  margin-top: -2px;
}

.env-indicator {
  margin-left: 1rem;
  display: none;
}

.env-indicator.test {
  display: inline;
  color: red;
  font-weight: 700;
  font-size: 2rem;
}

/* ===================== LAYOUT ===================== */
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  display: flex;
  gap: 1.25rem;
  position: relative;
  align-items: flex-start;
}

#filterPane {
  width: 240px;
  flex: 0 0 240px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-height) + .5rem);
  height: fit-content;
}

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-title {
  margin: .25rem 0 .25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
}

.menu-buttons {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.menu-buttons li {
  margin: 0;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: .25rem 0 .5rem;
}

.filter-list li {
  padding: .3rem 0;
  cursor: pointer;
  color: var(--primary);
  font-size: .85rem;
}

.filter-list li.active {
  font-weight: 600;
  text-decoration: underline;
}

#filterPane input {
  width: 100%;
  padding: .45rem .55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .8rem;
  background: #f9fafb;
  box-sizing: border-box;
}

/* ===================== GENERIC ===================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

/* ===================== FICHAJE ===================== */
#DivContainer {
  text-align: center;
}

.TiempoTrabajado {
  color: var(--primary);
  font-size: 30pt;
  font-family: 'Segoe UI';
}

#TitleTiempoTotalTrabajado:hover {
  text-decoration: none;
  cursor: default;
}

.TextUltima {
  font-size: 14px;
  display: none;
  margin-top: .5rem;
  font-weight: 500;
}

#UltimaAccionSalida {
  color: #d90429;
}

#UltimaAccionEntrada {
  color: var(--accent);
}

/* Nuevo bloque selector tarea */
.current-task-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0 1.25rem;
}

.current-task-block .field-label {
  font-size: .65rem;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .25rem;
}

.current-task-block .field-control {
  padding: .45rem .55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .8rem;
  background: #f9fafb;
  min-width: 220px;
}

.current-task-block .field-control:focus {
  outline: 2px solid var(--primary);
  background: #fff;
}

/* ===================== BUTTONS ===================== */
.Buttons {
  min-width: 130px;
  height: 40px;
  color: #fff;
  padding: 5px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 40px;
  font-family: 'Segoe UI', sans-serif;
  border: 2px solid;
  background: var(--accent);
  border-color: var(--accent);
  font-size: .8rem;
  text-decoration: none;
}

.Buttons:hover:not(:disabled) {
  background: #fff;
  color: var(--accent);
}

#BtnEntrar {
  background: #32cd32;
  border-color: #32cd32;
}

#BtnEntrar:hover:not(:disabled) {
  background: #fff;
  color: #32cd32;
}

#BtnSalir {
  background: #9E0000;
  border-color: #9E0000;
}

#BtnSalir:hover:not(:disabled) {
  background: #fff;
  color: #9E0000;
}

#BtnLoadAllImp {
  background: #9E6900;
  border-color: #9E6900;
}

#BtnLoadAllImp:hover:not(:disabled) {
  background: #fff;
  color: #9E6900;
}

#BtnPrintInv,
#BtnPrintInvoice {
  background: #009688;
  border-color: #009688;
}

#BtnPrintInv:hover:not(:disabled),
#BtnPrintInvoice:hover:not(:disabled) {
  background: #fff;
  color: #009688;
}

/* Botón para abrir la vista anual del calendario */
#BtnYearView {
  background: #137CBD;
  border-color: #137CBD;
}

#BtnYearView:hover:not(:disabled) {
  background: #fff;
  color: #137CBD;
}

button[id^="BtnDel"] {
  background: #d90429;
  border-color: #d90429;
}

button[id^="BtnDel"]:hover:not(:disabled) {
  background: #fff;
  color: #d90429;
}

button[id^="BtnEdit"] {
  background: #ff8c00;
  border-color: #ff8c00;
}

button[id^="BtnEdit"]:hover:not(:disabled) {
  background: #fff;
  color: #ff8c00;
}

.Buttons.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.Buttons.primary:hover {
  background: #fff;
  color: var(--primary);
}

.Buttons:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===================== TABLES ===================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.invoices-popup .modal {
  max-width: 1100px;
}

.invoices-header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.invoices-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.invoices-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.invoices-filter {
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  gap: .25rem;
}

.invoices-filter select {
  min-width: 110px;
  padding: .35rem .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f9fafb;
  font-size: .75rem;
}

.expenses-filters {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

.expenses-filter {
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  gap: .25rem;
}

.expenses-filter select {
  min-width: 110px;
  padding: .35rem .5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f9fafb;
  font-size: .75rem;
}

.table-responsive {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .75rem;
}

#invoicesTable th,
#invoicesTable td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: #000;
}

#invoicesTable th {
  background: #f0f4f8;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

#invoicesTable tbody tr.selected {
  background: rgba(23, 107, 135, .1);
}

#invoicesTable tbody tr:hover {
  background: rgba(23, 107, 135, .07);
}

#invoicesTable td:nth-child(4),
#invoicesTable td:nth-child(5),
#invoicesTable td:nth-child(6),
#invoicesTable td:nth-child(7),
#invoicesTable td:nth-child(8),
#invoicesTable th:nth-child(4),
#invoicesTable th:nth-child(5),
#invoicesTable th:nth-child(6),
#invoicesTable th:nth-child(7),
#invoicesTable th:nth-child(8) {
  text-align: right;
}

#invoicesTable td:nth-child(9),
#invoicesTable th:nth-child(9) {
  text-align: center;
}

#invoicesTable tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--border);
  background: rgba(23, 107, 135, .08);
  text-align: right;
}

#invoicesTable tfoot td:last-child {
  text-align: center;
}

#imputationsTable th.col-date,
#imputationsTable td.col-date {
  width: 105px;
  white-space: nowrap;
}

#imputationsTable th.col-time,
#imputationsTable td.col-time {
  width: 90px;
  white-space: nowrap;
}

#imputationsTable th.col-tight,
#imputationsTable td.col-tight {
  width: 80px;
  white-space: nowrap;
}

#imputationsTable th.col-compact,
#imputationsTable td.col-compact {
  width: 60px;
  white-space: nowrap;
}

#imputationsTable th.col-task,
#imputationsTable td.col-task {
  width: 280px;
  text-align: left;
}

#imputationsTable th.col-comments,
#imputationsTable td.col-comments {
  width: 220px;
  text-align: left;
}

#imputationsTable th.col-jira,
#imputationsTable td.col-jira {
  width: 170px;
  text-align: left;
  white-space: nowrap;
}

#imputationsTable td.col-jira a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

thead {
  background: var(--primary);
  color: #fff;
}

th,
td {
  padding: .45rem .55rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

tbody tr:hover {
  background: #eef7fb;
}

tbody tr {
  cursor: pointer;
  transition: background .15s;
}

tbody tr.selected {
  background: #cfe8ff !important;
}

table td a {
  color: var(--primary);
  text-decoration: none;
}

table td a:hover {
  text-decoration: underline;
}

.imputation-comment-link {
  color: var(--primary);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline;
  white-space: normal;
  text-align: left;
}

.imputation-comment-link:hover,
.imputation-comment-link:focus {
  text-decoration: underline;
}

.imputation-comment-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


#tasksTable th.select-col,
#tasksTable td.select-cell {
  width: 48px;
  text-align: center;
}

#tasksTable td.select-cell input {
  cursor: pointer;
}

#tasksTable tbody tr.bulk-selected:not(.selected) {
  background: #fff1d6;
}

#tasksTable tbody tr.selected.bulk-selected {
  box-shadow: inset 0 0 0 2px #ffb347;
}

#invoiceTotals {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

#invoiceTotals div {
  display: flex;
  justify-content: flex-end;
  gap: .25rem;
}

#invoiceTotals .final {
  font-size: 1rem;
  font-weight: 700;
}

#tasksTable td,
#tasksTable th,
#customersTable td,
#customersTable th {
  white-space: nowrap;
}

#providersTable th,
#providersTable td,
#expensesTable th,
#expensesTable td,
#customersTable th,
#customersTable td,
#tasksTable th,
#tasksTable td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
}

#providersTable thead th,
#expensesTable thead th,
#customersTable thead th,
#tasksTable thead th {
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .7rem;
}

.table-subtext {
  display: block;
  margin-top: .15rem;
  font-size: .65rem;
  font-weight: 500;
  color: #4a6379;
}

#providersTable td.numeric,
#providersTable th.numeric,
#expensesTable td.numeric,
#expensesTable th.numeric {
  text-align: right;
}

#totalsBar {
  display: flex;
  gap: 2rem;
  margin-top: .75rem;
  padding: .75rem .25rem 0;
  border-top: 2px solid var(--border);
  font-size: .7rem;
  flex-wrap: wrap;
}

#totalsBar div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.totals-right {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: stretch;
}

#totalsBar .totals-right div {
  align-items: flex-end;
  text-align: right;
  flex: 0 0 auto;
}

#totalsBar span {
  color: #555;
  margin-bottom: .2rem;
  font-weight: 500;
}

#totalsBar strong {
  font-size: .95rem;
  color: var(--primary);
}

/* ===================== MODALS ===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 40, 54, .55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  z-index: 2000;
  overflow-y: auto;
}

.modal {
  background: var(--card-bg);
  max-width: 900px;
  width: 95%;
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  animation: pop .25s ease;
}

.modal.narrow {
  max-width: 600px;
  width: 50%;
}

@keyframes pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal header {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.modal header button.close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

.modal header button.close:hover {
  color: #000;
}

.modal form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.modal label {
  font-size: .65rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.modal label .field-hint {
  font-size: .6rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7a90;
}

.modal input,
.modal select {
  width: 100%;
  padding: .45rem .55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .8rem;
  background: #f9fafb;
}

.modal .jira-link-field {
  font-size: .8rem;
  font-weight: 400;
  text-transform: none;
  color: var(--primary);
  word-break: break-all;
}

.modal .jira-link-field.disabled {
  color: #999;
  pointer-events: none;
  text-decoration: none;
}

.task-duplicate-banner {
  grid-column: 1 / 3;
  background: #ffe3e3;
  color: #b00020;
  font-weight: 700;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid #ffb3b3;
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

#taskForm.task-readonly label {
  opacity: .6;
}

#taskForm.task-readonly input:not([name="completed"]),
#taskForm.task-readonly select {
  cursor: not-allowed;
}

#taskForm.task-readonly button:not([type="submit"]) {
  pointer-events: none;
  opacity: .5;
}

.modal input:focus,
.modal select:focus {
  outline: 2px solid var(--primary);
  background: #fff;
}

.modal .full {
  grid-column: 1/3;
}

.modal .check {
  flex-direction: row;
  align-items: center;
  font-size: .7rem;
  margin-top: .5rem;
  text-transform: none;
  font-weight: 400;
}

.modal .check input {
  margin-right: .4rem;
}

.modal footer {
  text-align: right;
  margin-top: .5rem;
}

.modal.invoice-extras-modal {
  max-width: 940px;
  width: min(940px, 96%);
}

.invoice-extras-modal form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.invoice-extras-summary {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  padding: 1rem 1.1rem;
  background: #f5f7fb;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.extras-topline {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  align-items: start;
  gap: 1rem;
}

.extras-topline__factura {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.extras-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .025em;
  color: #475569;
  text-transform: uppercase;
}

.extras-topline__factura .extras-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.extras-topline__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .55rem .85rem;
}

.extras-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  padding: .5rem .75rem;
  background: rgba(255, 255, 255, .82);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .3);
}

.extras-metric span {
  font-weight: 600;
  color: #1f2937;
  font-size: .78rem;
}

.extras-metric strong {
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
}

.extras-metric--highlight strong {
  color: var(--primary);
  font-weight: 700;
}

.extras-metric--invoice strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.extras-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .65rem;
}

.extras-card-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}

.extras-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .3);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
  padding: .65rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  height: 100%;
}

.extras-card h3 {
  margin: 0;
  font-size: .86rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.extras-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .38rem;
}

.extras-list > div,
.extras-list > .extras-list__total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
}

.extras-list dt {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
  font-size: .83rem;
}

.extras-list dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: .86rem;
  text-align: right;
}

.extras-list__total dd {
  font-weight: 700;
  color: #0f172a;
}

.extras-highlight {
  margin-top: .2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem .8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(23, 107, 135, .12), rgba(9, 132, 227, .1));
  border: 1px solid rgba(23, 107, 135, .25);
  font-weight: 700;
  color: #0f172a;
  font-size: .9rem;
}

.extras-highlight strong {
  font-variant-numeric: tabular-nums;
}

.extras-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem .85rem;
  margin-top: 1.1rem;
}

.extras-form-grid label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
  font-weight: 600;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 9px;
  padding: .45rem .55rem;
  box-shadow: inset 0 0 0 1px rgba(241, 245, 249, .55);
}

.extras-form-grid input {
  padding: .32rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #fff;
  font-size: .82rem;
}

@media (max-width: 1100px) {
  .extras-topline {
    grid-template-columns: 1fr;
  }

  .extras-cards {
    grid-template-columns: 1fr;
  }
}

.extras-basic__highlight {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.extras-basic__invoice {
  font-weight: 700;
  font-size: 1.18rem;
  color: #0f172a;
}

.extras-text {
  font-size: .9rem;
  color: #1f2937;
  max-width: 100%;
  text-align: left;
  font-variant-numeric: normal;
}

.extras-amount-negative {
  color: #c1121f;
}

.extras-amount-positive {
  color: #15803d;
}

.extras-amount-neutral {
  color: #0f172a;
}

.extras-locked .extras-form-grid label {
  opacity: .6;
}

.extras-locked .extras-form-grid input {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

.extras-locked .extras-footer-actions .Buttons.primary {
  opacity: .6;
  cursor: not-allowed;
}


.extras-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
}

.modal.company-calc-modal {
  max-width: 900px;
  width: min(900px, 96%);
}

.company-calc-modal form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.company-calc-summary .extras-topline {
  align-items: stretch;
}

.company-calc-topline__meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.company-calc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: .45rem .65rem;
  background: rgba(255, 255, 255, .88);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .28);
}

.company-calc-meta span {
  font-weight: 600;
  color: #1f2937;
  font-size: .78rem;
}

.company-calc-meta strong {
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
  color: #0f172a;
}

.company-calc-cards {
  margin-top: .25rem;
}

.company-calc-highlight {
  margin-top: .35rem;
}

.company-calc-grid {
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.company-calc-grid label {
  min-height: 100%;
}

.company-calc-grid select {
  padding: .35rem .5rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #fff;
  font-size: .82rem;
}

.company-calc-summary .calc-line {
  font-weight: 600;
}

.company-calc-summary .calc-line--pending {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1.05rem;
}

.company-calc-summary .calc-line--vat {
  color: #7c3aed;
}

.company-calc-summary .calc-line--tithe,
.company-calc-summary .calc-line--nomina {
  color: #16a34a;
}

.company-calc-summary .calc-line--extras {
  color: #475569;
}

.company-calc-summary .calc-line--manual-extra {
  color: #0f172a;
}

#companyCalcPage input[readonly] {
  background: #f1f5f9;
  color: #475569;
}

#companyCalcPage input[name="result"] {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
}

@media(max-width:700px) {
  main {
    flex-direction: column;
  }

  #filterPane {
    width: 100%;
    position: static;
  }

  .content {
    width: 100%;
  }

  .modal form {
    grid-template-columns: 1fr;
  }

  .modal .full {
    grid-column: 1;
  }

  .modal.narrow {
    width: 95%;
  }
}

/* ===================== MISC ===================== */
.cursor {
  cursor: pointer;
}


/* === Calendario (checkbox semana) === */
.calendar-week {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.calendar-week label {
  font-size: .7rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  background: #f1f5f7;
  padding: .35rem .55rem;
  border-radius: 6px;
}

.calendar-week input {
  margin: 0;
}

.hidden {
  display: none;
}

/* === Resumen calendario === */
#calendarSummary {
  display: flex;
  gap: 1rem;
  margin-top: .5rem;
  font-size: .7rem;
  flex-wrap: wrap;
}

#calendarSummary div {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

#calendarSummary span {
  color: #555;
  margin-bottom: .2rem;
  font-weight: 500;
}

#calendarSummary strong {
  font-size: .85rem;
  color: var(--primary);
}