/* Costa Jardineros · diseño fácil de usar · noviembre 2026
   El logotipo se utiliza siempre como PNG transparente, sin placas de color. */
:root
{
    --green: #286941;
    --green-dark: #17472d;
    --green-mid: #3c8454;
    --mint: #e5f4e2;
    --lime: #d8ef9b;
    --sun: #fff0cf;
    --peach: #ffe8d4;
    --blue: #e6f3fa;
    --ink: #22372b;
    --muted: #66766b;
    --line: #e4e9df;
    --paper: #f7f9f4;
    --white: #fff;
    --shadow: 0 8px 28px rgba(33,73,48,.055);
    --radius: 19px;
    --ring: 0 0 0 4px rgba(79,149,90,.20);
    color-scheme: light;
    font-family: ui-rounded,"Trebuchet MS", "Segoe UI",system-ui,-apple-system,sans-serif;
    font-size: 16px;
    color: var(--ink);
    font-synthesis: none;
}
*
{
    box-sizing: border-box;
}
html
{
    min-height: 100%;
    scroll-behavior: smooth;
}
body
{
    margin: 0;
    background: var(--paper);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a
{
    color: inherit;
    text-decoration: none;
}
a:hover
{
    color: var(--green);
}
button,input,select,textarea
{
    font: inherit;
}
button
{
    cursor: pointer;
}
img
{
    max-width: 100%;
}
p
{
    margin: 0 0 13px;
}
h1,h2,h3
{
    line-height: 1.2;
    letter-spacing: -.032em;
}
h1
{
    font-size: clamp(27px,2.6vw,36px);
    margin: 0;
    font-weight: 800;
}
h2
{
    font-size: 21px;
    margin: 0 0 16px;
    font-weight: 800;
}
h3
{
    font-size: 17px;
    margin: 0 0 10px;
    font-weight: 750;
}
small
{
    font-size: 12px;
}
.muted
{
    color: var(--muted);
}
:focus-visible
{
    outline: 3px solid #7db790;
    outline-offset: 3px;
}
.visually-hidden
{
    position: absolute!important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
/* Navegación clara, cálida, sin bloques oscuros alrededor del logo. */
.shell
{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 256px minmax(0,1fr);
}
.sidebar
{
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    background: #fff;
    padding: 27px 16px 18px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e8ecdf;
    scrollbar-width: thin;
}
.brand
{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    margin: 0 10px 13px;
    padding: 4px 5px;
    color: var(--green-dark);
}
.brand img
{
    width: 200px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
}
.brand-logo-surface,.login-logo-surface
{
    background: transparent!important;
    border: 0!important;
    box-shadow: none!important;
    padding: 0!important;
}
.sidebar-label
{
    font-size: 10px;
    letter-spacing: .13em;
    font-weight: 850;
    color: #7c8f7a;
    margin: 20px 15px 9px;
}
.sidebar-label.second
{
    margin-top: 28px;
}
.nav-link
{
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 13px;
    min-height: 50px;
    padding: 10px 12px;
    margin: 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #536659;
    transition: background .16s,transform .16s;
}
.nav-link:hover
{
    background: #f0f6eb;
    color: var(--green-dark);
    transform: translateX(2px);
}
.nav-link.active
{
    background: #e6f3df;
    color: #205537;
    box-shadow: inset 3px 0 #66a55a;
}
.nav-icon
{
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 10px;
    background: #f3f6ef;
    font-size: 17px;
    line-height: 1;
}
.nav-link.active .nav-icon
{
    background: #d1eabb;
}
.sidebar-spacer
{
    flex: 1;
    min-height: 16px;
}
.sidebar-help
{
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px;
    border-radius: 14px;
    background: #f2f8ea;
    color: #647761;
    font-size: 12px;
    line-height: 1.55;
}
.sidebar-help>span:first-child
{
    font-size: 19px;
    line-height: 1.2;
}
.side-user
{
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 19px 8px 9px;
    margin-top: 18px;
}
.avatar,.topbar-avatar
{
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #dcedd6;
    color: #2a7149;
    font-size: 17px;
    font-weight: 850;
}
.side-user>div
{
    min-width: 0;
}
.side-user strong,.side-user small
{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.side-user strong
{
    font-size: 13px;
}
.side-user small
{
    color: var(--muted);
}
.sidebar form
{
    margin: 0;
}
.logout
{
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #697c6d;
    font-size: 13px;
    font-weight: 750;
    padding: 12px 13px;
}
.logout:hover
{
    background: #f6f7f2;
    color: #bd4c46;
}
.menu-backdrop
{
    display: none;
}
.main
{
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar
{
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px clamp(20px,3.2vw,52px);
    background: rgba(255,255,255,.9);
    border-bottom: 1px solid var(--line);
}
.topbar-left,.topbar-brand,.topbar-user
{
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}
.topbar-brand img
{
    display: block;
    max-width: none;
    width: 123px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}
.topbar-date
{
    padding-left: 21px;
    border-left: 1px solid var(--line);
    color: #667a6a;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.topbar-user
{
    color: #3c5545;
    font-size: 13px;
    font-weight: 750;
}
.topbar-avatar
{
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    font-size: 14px;
}
.menu-toggle
{
    display: none;
}
.content
{
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    padding: 35px clamp(20px,3.2vw,52px) 50px;
    flex: 1;
}
.footer
{
    padding: 18px 16px;
    color: #98a798;
    text-align: center;
    font-size: 11px;
}
.mobile-nav
{
    display: none;
}
/* Títulos, botones y mensajes muy legibles */
.titlebar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 27px;
}
.titlebar h1
{
    color: #1c4d31;
}
.titlebar p
{
    color: #718074;
    margin: 8px 0 0;
    font-size: 15px;
    max-width: 660px;
}
.title-actions
{
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    border-radius: 13px;
    border: 1px solid transparent;
    white-space: normal;
    text-align: center;
    transition: background .16s,transform .16s,box-shadow .16s;
}
.btn:hover
{
    transform: translateY(-1px);
}
.btn-primary
{
    background: #327b4b;
    color: white;
    box-shadow: 0 5px 13px rgba(45,107,60,.14);
}
.btn-primary:hover
{
    background: #24643a;
    color: white;
    box-shadow: 0 7px 17px rgba(45,107,60,.2);
}
.btn-secondary
{
    background: #e7f3df;
    color: #275e3a;
    border-color: #cee3c8;
}
.btn-secondary:hover
{
    background: #d9ebce;
    color: #205638;
}
.btn-ghost
{
    background: white;
    color: #42674b;
    border-color: #dbe4d9;
}
.btn-ghost:hover
{
    background: #f2f7ed;
}
.btn-link-danger
{
    min-height: 35px;
    padding: 7px 10px;
    background: #fff1ef;
    color: #ac4c43;
    border-color: #f2d8d5;
    font-size: 12px;
}
.btn-link-danger:hover
{
    background: #ffe5e0;
    color: #88342e;
}
.btn:disabled
{
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}
.alert
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    padding: 16px 18px;
    border: 1px solid #cae4c4;
    border-radius: 15px;
    background: #eaf7e6;
    color: #245f3b;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(40,90,50,.04);
}
.alert-icon
{
    font-size: 18px;
    line-height: 1.35;
}
.alert-error
{
    background: #fff0ee;
    border-color: #f3c8c5;
    color: #a13c35;
}
/* Panel principal: acciones primero, estadísticas después */
.welcome-card
{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 254px;
    border-radius: 25px;
    padding: 36px 42px;
    background: linear-gradient(113deg,#e2f3db 0%,#ecf7de 52%,#f8f6d8 100%);
    border: 1px solid #d8ead0;
    margin-bottom: 32px;
}
.welcome-copy
{
    position: relative;
    z-index: 2;
    max-width: 690px;
}
.welcome-tag
{
    display: inline-flex;
    align-items: center;
    gap: 9px;
    letter-spacing: .1em;
    color: #4c8053;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 15px;
}
.welcome-dot
{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #74b465;
}
.welcome-card h1
{
    color: #205c37;
    font-size: clamp(32px,3vw,44px);
    letter-spacing: -.045em;
    margin-bottom: 13px;
}
.greeting-emoji
{
    font-size: .66em;
    vertical-align: 8%;
}
.welcome-card p
{
    max-width: 520px;
    color: #55745c;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 23px;
}
.btn-welcome
{
    min-height: 46px;
}
.welcome-illustration
{
    position: absolute;
    right: 35px;
    top: 0;
    bottom: 0;
    width: 27%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.welcome-illustration span:first-child
{
    font-size: 145px;
    transform: rotate(-18deg);
    opacity: .85;
    filter: drop-shadow(0 18px 18px rgba(60,95,45,.08));
}
.welcome-illustration span:nth-child(2)
{
    position: absolute;
    top: 15px;
    right: 17px;
    font-size: 60px;
    opacity: .65;
}
.welcome-illustration span:nth-child(3)
{
    position: absolute;
    bottom: 12px;
    right: 10px;
    font-size: 54px;
}
.quick-heading
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 17px;
}
.eyebrow
{
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    color: #68a05c;
    margin-bottom: 8px;
}
.quick-heading h2
{
    font-size: 23px;
    margin: 0;
    color: #254e35;
}
.quick-heading p
{
    color: #8a9688;
    font-size: 13px;
    margin: 0;
}
.quick-grid
{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.quick-card
{
    position: relative;
    display: flex;
    align-items: center;
    min-height: 120px;
    gap: 14px;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid transparent;
    transition: transform .18s,box-shadow .18s;
}
.quick-card:hover
{
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(45,90,53,.09);
    color: var(--green-dark);
}
.quick-card-lime
{
    background: #e2f2d5;
    border-color: #d4eabf;
}
.quick-card-peach
{
    background: #fff0df;
    border-color: #f6e4d0;
}
.quick-card-blue
{
    background: #e7f1f7;
    border-color: #d9e9f2;
}
.quick-emoji
{
    flex: 0 0 57px;
    width: 57px;
    height: 57px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: rgba(255,255,255,.65);
    font-size: 28px;
}
.quick-content
{
    min-width: 0;
    flex: 1;
}
.quick-content strong,.quick-content small
{
    display: block;
}
.quick-content strong
{
    color: #244832;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.3;
}
.quick-content small
{
    color: #64796b;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
}
.quick-arrow
{
    align-self: flex-start;
    margin-left: auto;
    font-size: 20px;
    font-weight: 800;
    color: #658b6f;
}
.stats
{
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
    margin-bottom: 28px;
}
.stat
{
    min-width: 0;
    position: relative;
    min-height: 157px;
    padding: 21px 21px 19px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.stat-symbol
{
    position: absolute;
    right: 17px;
    top: 16px;
    font-size: 23px;
    opacity: .86;
}
.stat>span:not(.stat-symbol)
{
    display: block;
    max-width: 80%;
    font-size: 13px;
    color: #64766b;
    font-weight: 700;
}
.stat>strong
{
    display: block;
    font-size: 41px;
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 14px 0 10px;
    color: #215a37;
}
.stat>small
{
    display: block;
    color: #8a988d;
    font-size: 12px;
}
.stat a
{
    color: var(--green);
    font-weight: 850;
}
/* Secciones / listados / etiquetas de estado */
.section
{
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px 28px;
    margin: 0 0 24px;
    box-shadow: var(--shadow);
}
.section.narrow
{
    max-width: 920px;
}
.section-heading
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}
.section-heading h2
{
    margin: 0;
    font-size: 21px;
    color: #294937;
}
.section-heading small
{
    color: var(--muted);
}
.text-link
{
    display: inline-flex;
    align-items: center;
    color: #297343;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}
.text-link:hover
{
    text-decoration: underline;
}
.table-wrap
{
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}
table
{
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
thead
{
    background: #f4f8f0;
}
th
{
    color: #617763;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}
td,th
{
    padding: 15px 13px;
    vertical-align: middle;
    border-bottom: 1px solid #edf0e9;
}
td
{
    font-size: 13px;
    color: #344c3d;
    overflow-wrap: anywhere;
}
tbody tr:last-child td
{
    border-bottom: 0;
}
tbody tr:hover
{
    background: #fafcf6;
}
.strong-link
{
    color: #245936;
    font-weight: 850;
    font-size: 14px;
}
.strong-link:hover
{
    text-decoration: underline;
}
.table-action
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 9px;
    background: #edf6e8;
    color: #276842;
    font-weight: 850;
    font-size: 12px;
    white-space: nowrap;
}
.table-action:hover
{
    background: #dff0d9;
    color: #1f5335;
}
.tiny-line
{
    display: block;
    color: #879689;
    font-size: 12px;
    margin-top: 3px;
}
.td-time
{
    color: #265a3a;
    font-weight: 900;
    white-space: nowrap;
}
.priority
{
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 6px;
    background: #fff2cf;
    color: #956116;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .035em;
    margin-left: 8px;
}
.empty
{
    padding: 34px 12px!important;
    color: #738674;
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
}
.empty-hint
{
    margin: 12px 0 0;
    color: #647866;
    font-size: 13px;
    text-align: center;
}
.empty-hint a
{
    color: var(--green);
    font-weight: 850;
    text-decoration: underline;
}
.badge
{
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    padding: 5px 11px;
    background: #edf2e9;
    color: #58705c;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}
.badge-abierto,.badge-en_curso
{
    background: #e5f0ff;
    color: #3a6b94;
}
.badge-parcial,.badge-pendiente
{
    background: #fff2d4;
    color: #97641e;
}
.badge-finalizado,.badge-finalizada
{
    background: #ddf2db;
    color: #2e783d;
}
.badge-cancelada
{
    background: #ffe4e1;
    color: #b44d45;
}
/* Formularios a prueba de usuarios no técnicos */
.form-grid
{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 4px 22px;
    margin-bottom: 12px;
}
.field
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-bottom: 19px;
}
.field>span,.field-label
{
    display: block;
    color: #415a47;
    font-size: 14px;
    font-weight: 800;
}
.required-mark
{
    color: #cc634d;
    font-size: 17px;
    font-weight: 900;
}
.field input,.field select,.field textarea,textarea
{
    width: 100%;
    min-width: 0;
    min-height: 47px;
    border: 1.5px solid #d6e2d5;
    border-radius: 12px;
    background: #fcfdfa;
    color: #213d2c;
    padding: 11px 14px;
    font-size: 15px;
    outline: 0;
    transition: border-color .15s,box-shadow .15s;
}
.field textarea
{
    resize: vertical;
    line-height: 1.55;
    min-height: 98px;
}
.field input::placeholder,textarea::placeholder
{
    color: #9ea99c;
}
.field input:focus,.field select:focus,.field textarea:focus
{
    border-color: #52986c;
    box-shadow: var(--ring);
    background: #fff;
}
.field input:invalid:not(:placeholder-shown):not(:focus)
{
    border-color: #d7a38c;
}
.field input[type=color]
{
    height: 47px;
    padding: 5px 8px;
    cursor: pointer;
}
.field input[type=file]
{
    height: auto;
    min-height: 52px;
    padding: 10px;
    background: #f8faf4;
    font-size: 13px;
}
.field small,.field-note
{
    color: #788b79;
    font-size: 12px;
    line-height: 1.5;
}
.form-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}
.form-actions .btn
{
    min-width: 155px;
}
.check
{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 11px;
    background: #f7faf4;
    color: #344d3a;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    min-height: 48px;
}
.check:hover
{
    background: #edf6e8;
}
.check input
{
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    accent-color: #367b4b;
}
.check small
{
    display: block;
    color: #7c8e80;
    font-weight: 500;
}
.checks
{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
    padding: 11px;
    border: 1px solid #e4ebde;
    border-radius: 15px;
    background: #fff;
}
.check-compact
{
    max-width: 350px;
}
.field:has(.checks)
{
    margin-top: 12px;
}
.notice
{
    padding: 17px 19px;
    margin: 18px 0;
    background: #fff9e8;
    border: 1px solid #f0e5be;
    border-radius: 14px;
    color: #795f35;
    font-size: 13px;
    line-height: 1.6;
}
/* Calendario: tocar un día y ver los detalles justo debajo */
.filters
{
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filters .field
{
    min-width: 190px;
    flex: 0 1 235px;
    margin: 0;
}
.filter-nav
{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}
.calendar-title
{
    text-align: center;
    font-size: 23px;
    color: #28563a;
    font-weight: 900;
    margin: 21px 0 17px;
}
.calendar-grid
{
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    border: 1px solid #e2eadf;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.cal-dayname
{
    background: #eff7e9;
    text-align: center;
    padding: 12px 4px;
    color: #58755b;
    font-weight: 850;
    font-size: 12px;
}
.cal-cell
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    min-height: 106px;
    padding: 9px;
    border-right: 1px solid #edf0e9;
    border-top: 1px solid #edf0e9;
    background: #fff;
    transition: background .15s;
}
.cal-cell:nth-child(7n)
{
    border-right: 0;
}
a.cal-cell:hover
{
    background: #f0f8eb;
    color: var(--ink);
}
.cal-cell.cal-empty
{
    background: #fbfcf9;
}
.cal-cell.selected
{
    background: #e5f4df;
    box-shadow: inset 0 0 0 2px #75ac72;
}
.cal-number
{
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    color: #657b67;
}
.cal-cell.is-today .cal-number
{
    background: #39794e;
    color: white;
}
.cal-task
{
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 6px;
    background: #e8f5df;
    color: #3f7045;
    font-size: 10px;
    font-weight: 700;
}
.cal-more
{
    color: #64815f;
    font-size: 11px;
    font-weight: 800;
}
.tabs
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.tab
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 39px;
    padding: 8px 14px;
    color: #617963;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #e2eadc;
    border-radius: 11px;
    background: #f8faf4;
}
.tab:hover
{
    background: #edf6e7;
}
.tab.is-active
{
    background: #347b4b;
    color: white;
    border-color: #347b4b;
}
/* Detalle de tareas, partes, materiales, documentos y firmas */
.facts
{
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 19px 0;
}
.facts>div
{
    min-width: 140px;
}
.facts span,.part-meta span
{
    display: block;
    font-size: 12px;
    font-weight: 750;
    color: var(--muted);
    margin-bottom: 6px;
}
.facts strong,.part-meta strong
{
    display: block;
    color: #2c5139;
    font-size: 15px;
}
.split-panels
{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
}
.split-panels>div
{
    background: #f8fbf5;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 21px;
    min-width: 0;
}
.mini-title
{
    font-weight: 900;
    font-size: 16px;
    color: #2b5839;
    margin-bottom: 16px;
}
.subhead
{
    font-size: 17px;
    margin: 29px 0 15px;
    color: #2b5839;
}
.part-head
{
    display: grid;
    grid-template-columns: 1.13fr 1fr;
    gap: 22px;
    background: linear-gradient(122deg,#e5f3db,#f5f9ec);
    border: 1px solid #d9e9ce;
    color: #244f34;
    border-radius: 20px;
    padding: 26px 29px;
    margin-bottom: 20px;
}
.part-head h2
{
    font-size: 27px;
    color: #275c39;
    margin: 13px 0 9px;
}
.part-head p
{
    color: #66806a;
    white-space: pre-wrap;
}
.part-meta
{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 17px 14px;
    align-content: center;
}
.part-meta span
{
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.part-meta strong
{
    font-size: 14px;
    overflow-wrap: anywhere;
}
.timeline-status
{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
    margin-bottom: 23px;
}
.milestone
{
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 11px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    padding: 15px;
}
.milestone span
{
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #eef2ea;
    color: #8b9a8e;
    font-weight: 900;
}
.milestone.done span
{
    background: #d7eed0;
    color: #287244;
}
.milestone strong
{
    font-size: 13px;
}
.milestone small
{
    font-size: 11px;
    color: #839383;
    overflow-wrap: anywhere;
}
.read-only
{
    padding: 20px;
    background: #f6faf3;
    border-radius: 14px;
}
.read-only p
{
    white-space: pre-wrap;
}
.inline-form
{
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.inline-form .field
{
    flex: 1;
    min-width: 185px;
    margin: 0;
}
.inline-form .btn
{
    min-height: 47px;
}
.document-list
{
    margin-top: 17px;
}
.doc-item
{
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 15px;
    margin: 8px 0;
    border: 1px solid var(--line);
    background: #fcfdfa;
    border-radius: 13px;
}
.doc-item:hover
{
    background: #f5faef;
}
.doc-item>span:nth-child(2)
{
    flex: 1;
    min-width: 0;
}
.doc-item strong,.doc-item small
{
    display: block;
    overflow-wrap: anywhere;
}
.doc-item strong
{
    font-size: 13px;
}
.doc-item small
{
    color: #849386;
    font-size: 11px;
}
.doc-item>span:last-child
{
    font-size: 12px;
    color: #2d7545;
    font-weight: 800;
}
.doc-icon
{
    flex: 0 0 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e3f2dd;
    color: #377a45;
    font-weight: 900;
    font-size: 11px;
    height: 44px;
}
.signature-grid,.close-grid
{
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}
.signature-card,.close-grid>form
{
    min-width: 0;
    background: #f9fbf6;
    border: 1px solid var(--line);
    padding: 19px;
    border-radius: 15px;
}
.signature-card h3,.close-grid h3
{
    font-size: 17px;
    color: #2b5a3b;
}
.signature-preview
{
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 5px;
    margin-bottom: 13px;
    background: #fff;
}
.signed-label
{
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    background: #e4f5e4;
    color: #2e7145;
    font-weight: 750;
    font-size: 12px;
    margin-bottom: 12px;
}
.signature-pad
{
    margin: 11px 0;
    border: 2px dashed #a7c7a7;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.signature-pad canvas
{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 560/175;
    cursor: crosshair;
    touch-action: none;
}
.signature-actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.signature-actions .btn
{
    flex: 1;
    min-width: 125px;
}
.close-grid p
{
    color: #708373;
    font-size: 13px;
}
.partial-notice
{
    background: #fff7de;
    border: 1px solid #eddbb9;
    padding: 18px;
    margin-top: 18px;
    border-radius: 13px;
}
.partial-notice p
{
    margin: 8px 0 14px;
}
.success-note
{
    background: #e5f6e4;
    border: 1px solid #c6e8c8;
    border-radius: 13px;
    padding: 17px;
    color: #2a7441;
    font-weight: 750;
}
.events
{
    border-left: 2px solid #dbead9;
    margin-left: 8px;
}
.event
{
    display: flex;
    gap: 18px;
    margin: 0 0 23px;
    transform: translateX(-6px);
}
.event-dot
{
    width: 12px;
    height: 12px;
    background: #4a955c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #cfe7cd;
    flex-shrink: 0;
    margin-top: 5px;
}
.event strong
{
    font-size: 13px;
}
.event p,.event small
{
    display: block;
    color: #778b79;
    font-size: 12px;
    margin: 4px 0;
}
.notification
{
    display: flex;
    gap: 14px;
    padding: 19px 15px;
    border-bottom: 1px solid var(--line);
}
.notification:last-child
{
    border-bottom: 0;
}
.notification.unread
{
    background: #f1f9ea;
    border-radius: 12px;
}
.notification-symbol
{
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e3f3d9;
    color: #3b8550;
    font-size: 21px;
    font-weight: 900;
}
.notification>div:last-child
{
    min-width: 0;
}
.notification strong
{
    font-size: 14px;
    color: #28583d;
}
.notification p
{
    margin: 6px 0;
    color: #5d7362;
    font-size: 13px;
}
.notification small
{
    color: #859687;
}
.notification-links
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 13px;
}
.notification-links form
{
    margin: 0;
}
.settings-logo-preview
{
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    padding: 4px;
    background: transparent;
    border: 0;
    margin: 5px 0 7px;
}
/* Inicio de sesión acogedor: la marca flota sobre la superficie sin fondo blanco */
.login-body
{
    background: #f8faf4;
}
.login-wrap
{
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}
.login-art
{
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 610px;
    background: linear-gradient(145deg,#e1f1d5,#cfe6b3 63%,#f7eebf);
    padding: clamp(32px,5vw,72px);
    color: #235638;
}
.login-art::before
{
    content: "";
    position: absolute;
    z-index: -1;
    right: -100px;
    bottom: -165px;
    width: 530px;
    height: 530px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 39%,rgba(255,255,255,.55),rgba(114,170,95,.18) 70%,transparent 71%);
}
.login-art::after
{
    content: "🌱";
    position: absolute;
    z-index: -1;
    bottom: 13%;
    right: 8%;
    font-size: clamp(100px,16vw,255px);
    transform: rotate(-13deg);
    opacity: .85;
    filter: drop-shadow(0 25px 15px rgba(43,98,56,.13));
}
.login-brand img
{
    display: block;
    width: 220px;
    height: auto;
    max-width: 60%;
}
.login-art-message
{
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: auto 0;
}
.login-welcome-pill
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 100px;
    color: #367146;
    font-weight: 800;
    font-size: 13px;
}
.login-art h1
{
    font-size: clamp(40px,4.5vw,72px);
    line-height: 1.08;
    letter-spacing: -.055em;
    margin: 28px 0 24px;
    color: #245a36;
}
.login-art h1 em
{
    font-style: normal;
    color: #4e9352;
}
.login-art p
{
    max-width: 460px;
    font-size: 17px;
    color: #567960;
    line-height: 1.65;
}
.login-points
{
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}
.login-points span
{
    background: rgba(255,255,255,.62);
    padding: 8px 12px;
    border-radius: 9px;
    color: #497350;
    font-size: 12px;
    font-weight: 850;
}
.login-art-foot
{
    font-size: 12px;
    color: #577b5d;
    font-weight: 750;
}
.login-panel
{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 35px;
}
.login-form
{
    width: min(100%,440px);
}
.login-mark
{
    display: none;
}
.login-form .eyebrow
{
    font-size: 11px;
    color: #5da164;
    margin-bottom: 11px;
}
.login-form h2
{
    color: #265337;
    font-size: clamp(29px,2.5vw,37px);
    margin: 0 0 13px;
}
.login-form .muted
{
    font-size: 15px;
    margin-bottom: 30px;
}
.login-form .field
{
    margin-bottom: 19px;
}
.login-form .field>span
{
    font-size: 14px;
}
.login-form .field input
{
    min-height: 55px;
}
.login-form form
{
    margin-top: 28px;
}
.login-form form>.btn
{
    width: 100%;
    min-height: 55px;
    font-size: 16px;
    margin-top: 10px;
}
.login-footnote
{
    color: #8b9a8a;
    font-size: 12px;
    text-align: center;
    margin-top: 31px;
}
/* Pantallas medianas */
@media(max-width:1200px)
{
    .shell
    {
        grid-template-columns: 229px minmax(0,1fr);
    }
    .sidebar
    {
        padding: 20px 11px;
    }
    .nav-link
    {
        font-size: 13px;
        gap: 9px;
    }
    .content
    {
        padding: 28px 24px 46px;
    }
    .topbar
    {
        padding: 12px 24px;
    }
    .quick-card
    {
        padding: 15px;
        gap: 10px;
    }
    .quick-content strong
    {
        font-size: 15px;
    }
    .quick-emoji
    {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 25px;
    }
    .stats
    {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .checks
    {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media(max-width:920px)
{
    .shell
    {
        display: block;
    }
    .sidebar
    {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 200;
        width: min(300px,86vw);
        max-height: 100vh;
        transform: translateX(-102%);
        transition: transform .2s;
        box-shadow: 12px 0 38px rgba(19,59,36,.09);
    }
    body.menu-open .sidebar
    {
        transform: translateX(0);
    }
    .menu-backdrop
    {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(19,48,30,.35);
        opacity: 0;
        visibility: hidden;
        z-index: 190;
        transition: opacity .2s,visibility .2s;
    }
    body.menu-open .menu-backdrop
    {
        opacity: 1;
        visibility: visible;
    }
    body.menu-open
    {
        overflow: hidden;
    }
    .menu-toggle
    {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        min-height: 43px;
        padding: 7px 13px;
        border-radius: 11px;
        background: #ecf4e7;
        border: 1px solid #dcead4;
        color: #2b5a3b;
        font-size: 18px;
        font-weight: 800;
    }
    .menu-toggle-text
    {
        font-size: 13px;
    }
    .topbar
    {
        min-height: 69px;
    }
    .topbar-user span:last-child
    {
        display: none;
    }
    .topbar-date
    {
        display: none;
    }
    .topbar-brand img
    {
        width: 105px;
    }
    .content
    {
        padding: 26px 20px 120px;
    }
    .footer
    {
        padding-bottom: 92px;
    }
    .mobile-nav
    {
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        align-items: stretch;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        bottom: env(safe-area-inset-bottom,0px);
        z-index: 175;
        background: rgba(255,255,255,.97);
        border-top: 1px solid #e2e9de;
        box-shadow: 0 -6px 24px rgba(30,62,42,.05);
        padding: 6px 8px 6px;
    }
    .mobile-nav a
    {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        gap: 3px;
        border-radius: 11px;
        font-size: 11px;
        font-weight: 850;
        color: #79897b;
    }
    .mobile-nav a span
    {
        font-size: 21px;
        line-height: 1.2;
    }
    .mobile-nav a.is-current
    {
        background: #e7f3df;
        color: #275d3a;
    }
    .welcome-illustration span:first-child
    {
        font-size: 120px;
    }
    .quick-grid
    {
        gap: 12px;
    }
}
@media(max-width:700px)
{
    body
    {
        font-size: 15px;
    }
    .topbar
    {
        min-height: 66px;
        padding: 8px 15px;
    }
    .topbar-left
    {
        gap: 12px;
    }
    .topbar-brand img
    {
        width: 99px;
    }
    .topbar-avatar
    {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }
    .content
    {
        padding: 20px 13px 45px;
    }
    .footer
    {
        font-size: 10px;
        padding-bottom: 91px;
    }
    .titlebar
    {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 21px;
    }
    .titlebar h1
    {
        font-size: 27px;
    }
    .titlebar p
    {
        font-size: 14px;
    }
    .title-actions
    {
        width: 100%;
    }
    .title-actions .btn
    {
        flex: 1;
        min-width: 0;
    }
    .welcome-card
    {
        min-height: 0;
        padding: 26px 23px;
        border-radius: 19px;
        margin-bottom: 24px;
    }
    .welcome-card h1
    {
        font-size: 33px;
    }
    .welcome-card p
    {
        font-size: 14px;
        max-width: 320px;
    }
    .welcome-copy
    {
        z-index: 2;
    }
    .welcome-illustration
    {
        width: 120px;
        right: -10px;
        opacity: .15;
    }
    .welcome-illustration span:first-child
    {
        font-size: 125px;
    }
    .welcome-illustration span:nth-child(2),.welcome-illustration span:nth-child(3)
    {
        display: none;
    }
    .quick-heading
    {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .quick-heading h2
    {
        font-size: 22px;
    }
    .quick-heading p
    {
        font-size: 12px;
    }
    .quick-grid
    {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 22px;
    }
    .quick-card
    {
        min-height: 85px;
        padding: 13px 15px;
        gap: 15px;
    }
    .quick-emoji
    {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 27px;
    }
    .quick-content strong
    {
        font-size: 16px;
    }
    .quick-arrow
    {
        font-size: 18px;
    }
    .stats
    {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
        margin-bottom: 20px;
    }
    .stat
    {
        min-height: 144px;
        padding: 16px 13px;
    }
    .stat>span:not(.stat-symbol)
    {
        font-size: 12px;
        max-width: 90%;
    }
    .stat-symbol
    {
        right: 10px;
        top: 9px;
        font-size: 17px;
        opacity: .6;
    }
    .stat>strong
    {
        font-size: 36px;
        margin: 13px 0 8px;
    }
    .stat>small
    {
        font-size: 11px;
    }
    .section
    {
        padding: 19px 14px;
        border-radius: 17px;
        margin-bottom: 17px;
    }
    .section-heading
    {
        gap: 8px;
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 14px;
    }
    .section-heading h2
    {
        font-size: 19px;
    }
    .section-heading .text-link
    {
        margin-top: 4px;
    }
    /* Los listados pasan a tarjetas con títulos, sin desplazamiento horizontal. */
    .table-wrap
    {
        overflow: visible;
    }
    table
    {
        display: block;
    }
    thead
    {
        display: none;
    }
    tbody
    {
        display: grid;
        gap: 10px;
    }
    tbody tr
    {
        display: block;
        min-width: 0;
        background: #fbfdf8;
        border: 1px solid #e2e9dc;
        border-radius: 13px;
        padding: 12px 14px;
    }
    tbody tr:hover
    {
        background: #f8fbf4;
    }
    tbody td
    {
        display: grid;
        grid-template-columns: minmax(94px,37%) minmax(0,1fr);
        align-items: start;
        gap: 10px;
        padding: 7px 0;
        border: 0!important;
        font-size: 13px;
        min-width: 0;
    }
    tbody td::before
    {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 900;
        text-transform: none;
        color: #718674;
        line-height: 1.5;
    }
    tbody td:has(>.table-action),tbody td:has(>.btn)
    {
        display: flex;
        justify-content: flex-end;
        border-top: 1px dashed #e1e9de!important;
        margin-top: 8px;
        padding-top: 10px;
    }
    tbody td:has(>.table-action)::before,tbody td:has(>.btn)::before
    {
        display: none;
    }
    tbody td:has(form)
    {
        display: block;
    }
    tbody td:has(form)::before
    {
        display: none;
    }
    tbody td[colspan]
    {
        display: block;
        text-align: center;
    }
    tbody td[colspan]::before
    {
        display: none;
    }
    .td-time
    {
        white-space: normal;
    }
    .strong-link
    {
        font-size: 14px;
    }
    tfoot
    {
        display: block;
        margin-top: 12px;
        border-top: 1px solid var(--line);
    }
    tfoot tr
    {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    tfoot th
    {
        padding: 11px 5px;
        letter-spacing: 0;
    }
    .form-grid,.split-panels,.signature-grid,.close-grid
    {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-actions .btn
    {
        flex: 1;
    }
    .checks
    {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 7px;
    }
    .filters .field
    {
        flex: 1 1 190px;
    }
    .filter-nav
    {
        width: 100%;
        margin: 3px 0 0;
    }
    .filter-nav .btn
    {
        flex: 1;
        min-width: 125px;
        padding: 10px;
        font-size: 12px;
    }
    .calendar-title
    {
        font-size: 20px;
    }
    .calendar-grid
    {
        border-radius: 11px;
    }
    .cal-dayname
    {
        font-size: 10px;
        padding: 8px 2px;
    }
    .cal-cell
    {
        min-height: 63px;
        padding: 4px 3px;
        align-items: center;
        gap: 2px;
    }
    .cal-number
    {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
    .cal-task
    {
        display: none;
    }
    .cal-more
    {
        font-size: 10px;
    }
    .cal-cell:has(.cal-task):after
    {
        content: "•";
        font-size: 26px;
        line-height: 12px;
        color: #65a365;
    }
    .cal-cell.selected
    {
        box-shadow: inset 0 0 0 2px #6ea973;
    }
    .tabs
    {
        gap: 6px;
    }
    .tab
    {
        font-size: 12px;
        padding: 8px 10px;
    }
    .split-panels
    {
        gap: 12px;
    }
    .part-head
    {
        grid-template-columns: 1fr;
        padding: 22px 19px;
        gap: 15px;
    }
    .part-head h2
    {
        font-size: 24px;
    }
    .part-meta
    {
        gap: 12px;
    }
    .timeline-status
    {
        gap: 7px;
    }
    .milestone
    {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 8px;
        gap: 4px;
    }
    .milestone span
    {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
    .milestone strong
    {
        font-size: 12px;
    }
    .milestone small
    {
        font-size: 10px;
    }
    .inline-form .field
    {
        flex: 1 1 100%;
        min-width: 0;
    }
    .inline-form .btn
    {
        width: 100%;
    }
    .doc-item
    {
        padding: 12px;
        gap: 9px;
    }
    .doc-item>span:last-child
    {
        font-size: 11px;
    }
    .signature-grid,.close-grid
    {
        gap: 12px;
    }
    .signature-card,.close-grid>form
    {
        padding: 14px;
    }
    .notification
    {
        padding: 14px 7px;
    }
    .login-wrap
    {
        grid-template-columns: 1fr;
    }
    .login-art
    {
        min-height: 170px;
        padding: 25px 22px 22px;
    }
    .login-brand img
    {
        display: none;
    }
    .login-art-message
    {
        margin: 0;
    }
    .login-welcome-pill
    {
        font-size: 11px;
        padding: 6px 9px;
    }
    .login-art h1
    {
        font-size: 31px;
        margin: 11px 0 5px;
        letter-spacing: -.045em;
    }
    .login-art p,.login-points,.login-art-foot
    {
        display: none;
    }
    .login-art::after
    {
        right: 4%;
        bottom: -28px;
        font-size: 127px;
        opacity: .55;
    }
    .login-panel
    {
        align-items: flex-start;
        padding: 27px 22px 35px;
    }
    .login-mark
    {
        display: block;
        margin: 0 0 20px;
    }
    .login-mark img
    {
        display: block;
        width: 142px;
        height: auto;
    }
    .login-form h2
    {
        font-size: 29px;
    }
    .login-form .muted
    {
        margin-bottom: 23px;
    }
}
@media(max-width:380px)
{
    .topbar-brand img
    {
        width: 86px;
    }
    .menu-toggle
    {
        padding: 7px 9px;
        gap: 5px;
    }
    .stat
    {
        min-height: 153px;
    }
    .welcome-card h1
    {
        font-size: 28px;
    }
    .timeline-status
    {
        grid-template-columns: 1fr;
    }
    .milestone
    {
        display: grid;
        grid-template-columns: 30px 1fr;
    }
    .milestone span
    {
        grid-row: span 2;
    }
}
@media(prefers-reduced-motion:reduce)
{
    *,*::before,*::after
    {
        scroll-behavior: auto!important;
        transition: none!important;
        animation: none!important;
    }
}
/* Pequeñas ayudas de interfaz */
.table-tools
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 16px;
}
.table-search
{
    min-height: 44px;
    min-width: 220px;
    max-width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1.5px solid #d7e4d2;
    background: #fcfefb;
    font-size: 14px;
    color: #2a4b35;
}
.table-search:focus
{
    outline: 0;
    border-color: #52986c;
    box-shadow: var(--ring);
}
.table-counter
{
    font-size: 12px;
    color: #7d8f80;
    font-weight: 800;
}
tr[hidden],.signature-error[hidden]
{
    display: none!important;
}
.signature-error
{
    padding: 9px 11px;
    background: #fff1e8;
    color: #a24c39;
    border: 1px solid #f2d4c7;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
}
.password-wrap
{
    position: relative;
    display: block;
}
.password-wrap input
{
    padding-right: 93px!important;
}
.password-toggle
{
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: #e9f5e1;
    color: #2f6c41;
    font-weight: 800;
    font-size: 12px;
}
.password-toggle:hover
{
    background: #dbeed0;
}
@media(max-width:700px)
{
    .table-tools
    {
        align-items: stretch;
    }
    .table-search
    {
        width: 100%;
        min-width: 0;
    }
    .table-counter
    {
        text-align: right;
    }
}
/* El adorno vegetal no tapa letras ni botones. */
.login-art::after
{
    right: -10%;
    bottom: -13%;
    opacity: .40;
}
@media(max-width:700px)
{
    .login-art::after
    {
        right: -12px;
        bottom: -25px;
        font-size: 95px;
        opacity: .22;
    }
}
/* Registro de jornada: botones grandes, estados claros y acceso móvil. */
.fichaje-panel
{
    border-color: #dce8d6;
    background: linear-gradient(155deg,#fff 0%,#f0f8ec 100%);
}
.fichaje-estado
{
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 0 18px;
}
.fichaje-estado h2
{
    margin: 4px 0 3px;
    color: #285e3d;
    font-size: clamp(22px,3vw,30px);
}
.fichaje-estado p
{
    color: #647869;
    margin: 0;
}
.fichaje-punto
{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: #5ea957;
    box-shadow: 0 0 0 7px #e1f2dd;
}
.fichaje-acciones
{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.fichaje-formulario
{
    flex: 1;
    min-width: min(250px,100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin: 0;
}
.fichaje-boton
{
    min-height: 64px;
    font-size: 16px;
    width: 100%;
}
.fichaje-mensaje
{
    font-weight: 650;
    font-size: 13px;
    margin: 0;
    color: #45634d;
    min-height: 0;
}
.fichaje-sin-gps
{
    border: 1px solid #ead7a8;
    background: #fffaf0;
    padding: 14px;
    border-radius: 14px;
}
.fichaje-sin-gps p
{
    font-size: 12px;
    color: #775c31;
    margin: 7px 0 0;
}
.fichaje-privacidad
{
    margin-top: 22px;
    line-height: 1.7;
}
.fichaje-filtros
{
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}
.fichaje-filtros .field
{
    min-width: 145px;
    flex: 1;
}
.fichaje-resumen
{
    margin: 20px 0;
    color: #42614a;
}
.fichaje-detalles summary
{
    cursor: pointer;
    font-weight: 750;
    color: #267b4c;
}
.fichaje-eventos
{
    padding-left: 19px;
    max-width: 420px;
    white-space: normal;
    list-style: disc;
}
.fichaje-eventos li
{
    padding: 6px 0;
    border-bottom: 1px solid #eef1e9;
}
.fichaje-sin-ubicacion
{
    color: #9a5c20;
}
@media(max-width:920px)
{
    .mobile-nav
    {
        grid-template-columns: repeat(5,minmax(0,1fr));
    }
}
@media(max-width:530px)
{
    .fichaje-filtros .field
    {
        min-width: 100%;
    }
    .fichaje-acciones
    {
        flex-direction: column;
    }
    .fichaje-formulario
    {
        width: 100%;
    }
}
.fichaje-legal
{
    margin-top: 22px;
    color: #597264;
    font-size: 13px;
}
.fichaje-legal summary
{
    cursor: pointer;
    font-weight: 700;
}
.fichaje-legal p
{
    margin: 12px 0;
    line-height: 1.75;
}

/* Ubicaciones GPS y declaradas. Elementos discretos y utilizables desde móvil. */
.seguimiento-panel,
.ubicaciones-lista
{
    margin-top: 1rem;
}

.ubicacion-fila
{
    padding: .85rem 0;
    border-bottom: 1px solid var(--line, #e1e7e0);
    overflow-wrap: anywhere;
}

.ubicacion-fila:last-child
{
    border-bottom: none;
}

.ubicacion-fila p,
.ubicacion-estado,
.seguimiento-mensaje
{
    margin: .4rem 0;
}

.ubicacion-manual-etiqueta
{
    font-weight: 600;
}

.ubicacion-manual[hidden],
.fichaje-sin-gps[hidden]
{
    display: none !important;
}
