.fichajes-page{
    max-width:1200px;
    margin:0 auto;
    width:100%
}

.fichajes-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:28px
}

.fichajes-heading p{
    margin-top:9px
}

.section-tabs{
    display:flex;
    gap:28px;
    border-bottom:1px solid #dce5e8;
    margin-bottom:24px;
    overflow-x:auto
}

.section-tabs button{
    background:none;
    border:0;
    border-bottom:3px solid transparent;
    min-height:50px;
    padding:0 2px;
    color:#718590;
    font-size:14px;
    white-space:nowrap
}

.section-tabs button.active{
    color:var(--sofy-primary);
    border-bottom-color:var(--sofy-primary);
    font-weight:650
}

.count-badge{
    font-size:10px;
    background:#fbebd3;
    color:#976720;
    border-radius:10px;
    padding:2px 6px;
    margin-left:4px
}

.date-toolbar{
    display:flex;
    align-items:flex-end;
    gap:10px;
    margin:0 0 20px;
    flex-wrap:wrap
}

.date-toolbar .field{
    max-width:180px;
    font-size:11px;
    gap:5px
}

.date-toolbar input{
    min-height:40px;
    font-size:13px
}

.date-toolbar .mud-button-root{
    font-size:12px
}

.jornada-grid{
    display:grid;
    grid-template-columns:1.25fr 1fr;
    gap:22px;
    margin-bottom:22px
}

.jornada-card{
    padding:28px;
    background:linear-gradient(130deg,#fff 55%,#f3faf8);
    border-color:#bfd7d5
}

.jornada-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:26px
}

.jornada-top .eyebrow{
    margin:0
}

.work-status{
    font-size:11px;
    background:#ecf1f3;
    color:#526a77;
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 10px;
    border-radius:20px;
    white-space:nowrap
}

.work-status>span{
    height:6px;
    width:6px;
    border-radius:50%;
    background:currentColor
}

.state-4{
    color:#267251;
    background:#e4f4ea
}

.state-5{
    color:#976720;
    background:#fff2dc
}

.worked-time{
    margin:25px 0 28px;
    display:flex;
    flex-direction:column;
    gap:7px
}

.worked-time strong{
    font-size:56px;
    font-weight:600;
    letter-spacing:-2px;
    line-height:1.15;
    font-variant-numeric:tabular-nums;
    color:#1c4e55
}

.worked-time span{
    font-size:12px;
    color:#6d858f
}

.clock-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px
}

.clock-actions .mud-button-root{
    flex:1;
    min-height:48px
}

.schedule-card h2{
    margin-bottom:7px
}

.schedule-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:18px 0;
    border-bottom:1px solid #edf1f2;
    font-size:13px
}

.schedule-row>span{
    color:#768994
}

.schedule-row strong{
    font-weight:600;
    font-variant-numeric:tabular-nums
}

.mini-totals{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:25px
}

.mini-totals>div{
    display:flex;
    flex-direction:column;
    gap:8px
}

.mini-totals span{
    font-size:11px;
    color:#768994
}

.mini-totals strong{
    font-size:20px;
    font-weight:550;
    letter-spacing:-.4px;
    font-variant-numeric:tabular-nums
}

.activity-panel,.events-panel{
    margin-bottom:22px
}

.table-scroll{
    overflow-x:auto;
    max-width:100%;
    border-radius:8px
}

.sofy-table{
    border-collapse:collapse;
    width:100%;
    font-size:13px;
    white-space:nowrap
}

.sofy-table th{
    text-align:left;
    font-size:11px;
    font-weight:600;
    color:#718590;
    padding:13px 16px;
    background:#f5f8f9
}

.sofy-table td{
    padding:19px 16px;
    border-bottom:1px solid #eef2f3;
    font-variant-numeric:tabular-nums
}

.sofy-table tbody tr:last-child td{
    border-bottom:0
}

.time-entry{
    color:#28725f;
    font-weight:600
}

.empty-copy{
    color:#718590;
    font-size:13px;
    padding:24px 0
}

.pending-periods{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
    border-top:1px solid #edf1f2;
    padding-top:20px;
    margin-top:12px
}

.pending-periods h3{
    font-size:12px;
    color:#718590
}

.pending-periods>span{
    background:#f2f6f7;
    border-radius:6px;
    padding:6px 10px;
    font-size:12px
}

.panel-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:25px
}

.panel-heading p{
    margin-top:7px
}

.absence-row,.incident-row,.event-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:18px 0;
    border-bottom:1px solid #edf1f2
}

.absence-row strong{
    font-size:13px;
    font-weight:600
}

.absence-row p,.incident-row p{
    font-size:13px;
    color:#657d88;
    margin-top:7px;
    white-space:pre-wrap;
    overflow-wrap:anywhere
}

.absence-row>div,.incident-row>div{
    min-width:0
}

.absence-row>.status-pill{
    flex-shrink:0
}

.absence-0{
    color:#92691e;
    background:#fff5df
}

.absence-1{
    color:#28725f;
    background:#e6f5ed
}

.absence-2{
    color:#a94b4b;
    background:#fbeeee
}

.empty-state.compact{
    padding:36px 15px
}

.list-title{
    margin:20px 0 4px;
    font-size:13px;
    color:#536c79
}

.incident-row time{
    font-size:12px;
    font-weight:600
}

.incident-row.pending{
    padding:18px;
    background:#fffbf2;
    border:1px solid #f3e7cb;
    border-radius:8px;
    margin-top:12px
}

.incident-row .mud-button-root{
    flex-shrink:0;
    font-size:12px
}

.closed-incidents{
    margin-top:24px
}

.closed-incidents summary{
    cursor:pointer;
    font-size:13px;
    font-weight:600;
    padding:12px 0
}

.dialog-message{
    font-size:14px;
    margin:0 0 20px;
    color:#526a77;
    line-height:1.6
}

.history-note{
    font-size:12px;
    line-height:1.6;
    color:#718590;
    margin-top:14px
}

.event-row{
    font-size:13px
}

.event-row time{
    color:#718590;
    font-size:12px
}

@media(max-width:1100px){
    .jornada-grid{
        grid-template-columns:1fr 1fr;
        gap:16px
    }
    .jornada-card{
        padding:22px
    }
    .jornada-top{
        flex-wrap:wrap
    }
    .clock-actions{
        gap:8px
    }
    .clock-actions .mud-button-root{
        font-size:12px
    }
}

@media(max-width:700px){
    .jornada-grid{
        grid-template-columns:1fr
    }
    .fichajes-heading{
        align-items:flex-start;
        gap:8px;
        margin-bottom:20px
    }
    .fichajes-heading h1{
        font-size:25px
    }
    .fichajes-heading>.mud-button-root{
        min-width:44px;
        font-size:11px
    }
    .jornada-card,.schedule-card,.activity-panel{
        padding:20px
    }
    .worked-time strong{
        font-size:52px
    }
    .jornada-top{
        margin-bottom:20px
    }
    .clock-actions .mud-button-root{
        font-size:13px
    }
    .section-tabs{
        gap:22px
    }
    .section-tabs button{
        font-size:13px
    }
    .panel-heading{
        align-items:flex-start;
        flex-direction:column
    }
    .panel-heading>.mud-button-root{
        width:100%
    }
    .absence-row,.incident-row{
        align-items:flex-start;
        flex-direction:column;
        gap:12px
    }
    .absence-row>.status-pill{
        align-self:flex-start
    }
    .incident-row .mud-button-root{
        width:100%
    }
    .sofy-table th,.sofy-table td{
        padding:12px 10px;
        font-size:12px
    }
    .sofy-table th{
        font-size:10px
    }
    .event-row{
        flex-wrap:wrap;
        gap:8px
    }
    .date-toolbar{
        gap:4px
    }
    .date-toolbar .field{
        max-width:150px
    }
    .fichajes-page>.surface{
        padding:20px
    }
    .mini-totals{
        gap:8px
    }
}


.mobile-jornada{display:none}
.jornada-action-bar{display:none}
.worked-time strong{font-size:clamp(30px,4vw,56px)}
.mini-totals strong{font-size:clamp(14px,1.7vw,20px)}

@media(max-width:700px){
    .mobile-jornada{display:block}
    .current-jornada:has(.mobile-jornada)>.section-tabs,
    .current-jornada:has(.mobile-jornada)>.fichajes-heading>.mud-button-root,
    .current-jornada .fichajes-heading .eyebrow,
    .current-jornada .fichajes-heading p{display:none}
    .current-jornada .fichajes-heading{margin-bottom:14px}
    .current-jornada .fichajes-heading h1{font-size:20px}
    .jornada-details:not(.is-open){display:none}
    .current-jornada .jornada-details .clock-actions{display:none}
    .mobile-clock-card{padding:18px 16px;text-align:center}
    .mobile-date{display:block;color:var(--sofy-primary);font-size:13px;font-weight:600}
    .mobile-clock{display:block;color:var(--sofy-primary);font-size:42px;line-height:1.35;font-variant-numeric:tabular-nums;letter-spacing:-1px}
    .mobile-schedule{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:12px 0 16px;padding-bottom:16px;border-bottom:1px solid #e8eeef;font-size:12px;color:#667e89}
    .mobile-schedule>span{flex-basis:100%}
    .mobile-schedule strong{background:#f1f6f7;border:1px solid #dce5e8;border-radius:20px;padding:6px 12px;font-weight:600;font-size:11px}
    .mobile-clock-card h2{font-size:14px;margin-bottom:12px}
    .work-ring{width:166px;height:166px;margin:0 auto 20px;padding:9px;border-radius:50%;background:conic-gradient(var(--sofy-primary) var(--work-progress),var(--sofy-primary-soft) 0)}
    .work-ring>div{width:100%;height:100%;border-radius:50%;background:white;display:flex;flex-direction:column;justify-content:center;gap:3px;font-variant-numeric:tabular-nums}
    .work-ring strong{font-size:48px;line-height:1.1;color:#173643}
    .work-ring small{font-size:14px;font-weight:500}
    .work-ring span{font-size:14px;color:#667e89}
    .work-ring b{font-weight:500;margin-left:7px}
    .current-pause{font-size:13px;color:#976720;margin:-7px 0 16px;display:flex;justify-content:center;gap:10px;font-variant-numeric:tabular-nums}
    .mobile-work-meta{display:grid;grid-template-columns:1.4fr .7fr 1fr;gap:6px;align-items:center}
    .mobile-work-meta>div{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px}
    .mobile-work-meta span{color:#718590}
    .mobile-work-meta .work-status{font-size:10px;padding:5px 7px;white-space:normal}
    .mobile-work-meta button{background:none;border:0;color:var(--sofy-primary);font-weight:650;font-size:12px;min-height:44px}
    .mobile-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 8px;margin-top:14px;gap:8px}
    .mobile-shortcuts button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:90px;background:none;border:0;border-radius:10px;color:#526e7b;font-size:11px;position:relative}
    .mobile-shortcuts button:hover,.mobile-shortcuts button:focus-visible{background:var(--sofy-primary-soft)}
    .mobile-shortcuts .mud-icon-root{font-size:30px;color:var(--sofy-primary)}
    .mobile-shortcuts small{position:absolute;top:7px;right:15px;background:var(--sofy-primary-soft);border-radius:20px;min-width:18px;padding:2px;color:var(--sofy-primary)}
}


/* Mobile consultations keep their own scroll area; desktop sections remain unchanged. */
.mobile-fichajes-dialog .mud-dialog-content{min-width:0;overscroll-behavior:contain}
.mobile-jornada-summary h3{display:flex;justify-content:space-between;gap:12px;margin:22px 0 10px;font-size:15px}
.mobile-jornada-summary h3 span{color:#58727d;font-size:13px;font-variant-numeric:tabular-nums}
.mobile-summary-total{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;background:var(--sofy-primary-soft);border-radius:14px;color:var(--sofy-primary)}
.mobile-summary-total>strong{font-size:36px;font-variant-numeric:tabular-nums}
.mobile-period-list{display:grid;gap:10px}
.mobile-period{padding:14px;border:1px solid #dce5e8;border-radius:12px;display:flex;flex-direction:column;gap:8px;font-size:13px;overflow-wrap:anywhere}
.mobile-period>div{display:flex;flex-wrap:wrap;gap:6px;color:#58727d;font-size:12px}
.mobile-period>b{color:var(--sofy-primary);font-variant-numeric:tabular-nums}
.mobile-pending-period{font-size:13px;padding:10px;border-radius:8px;background:#f3f7f8}
.mobile-history-filter{display:flex;align-items:flex-end;gap:8px;margin-bottom:16px}
.mobile-history-filter .field{flex:1;min-width:0}
.mobile-history-date{font-size:12px;color:#58727d;margin:14px 0}
.mobile-fichajes-dialog .surface{border:0;box-shadow:none;padding:0}
.mobile-fichajes-dialog .panel-heading{flex-direction:column;align-items:stretch;gap:12px}
.mobile-fichajes-dialog .panel-heading h2,.mobile-fichajes-dialog .panel-heading p{display:none}
.mobile-fichajes-dialog .incident-row{flex-direction:column;align-items:stretch;gap:10px;overflow-wrap:anywhere}
.mobile-fichajes-dialog .incident-row .status-pill{align-self:flex-start}
@media(max-width:700px){
    .mobile-shortcuts button:disabled{opacity:.45;cursor:default}
    .mobile-requests{display:grid;gap:4px;margin-top:14px;padding:10px}
    .mobile-requests>.mud-button-root{justify-content:flex-start;min-height:48px;font-size:13px}
    .mobile-requests .count-badge{margin-left:8px}
    .mobile-fichajes-dialog{margin:12px!important;width:calc(100% - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:16px!important}
    .mobile-fichajes-dialog .mud-dialog-title{padding:18px 48px 14px 18px}
    .mobile-fichajes-dialog .mud-dialog-title .mud-typography-h6{font-size:18px}
    .mobile-fichajes-dialog .mud-dialog-content{padding:0 18px 12px}
    .mobile-fichajes-dialog .mud-dialog-actions{padding:10px 18px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e8eeef}
}

.mobile-query-total{display:flex;justify-content:space-between;gap:10px;padding:12px;background:var(--sofy-primary-soft);border-radius:10px;margin-bottom:14px;color:var(--sofy-primary);font-size:13px}

.section-tabs .desktop-refresh{margin-left:auto;align-self:center;min-height:44px;min-width:44px;padding:10px;border:0}
@media(max-width:700px){
    .mobile-clock-card{padding:12px}
    .mobile-date{font-size:12px}
    .mobile-clock{font-size:38px;line-height:1.25}
    .mobile-schedule{margin:8px 0 12px;padding-bottom:12px;gap:5px}
    .mobile-schedule strong{padding:4px 10px}
    .mobile-clock-card h2{margin-bottom:10px;font-size:13px}
    .work-ring{width:144px;height:144px;margin-bottom:12px;padding:8px}
    .work-ring strong{font-size:42px}
    .work-ring span{font-size:12px}
    .mobile-shortcuts{padding:6px;margin-top:10px;gap:2px}
    .mobile-shortcuts button{min-height:72px;gap:5px}
    .mobile-shortcuts .mud-icon-root{font-size:26px}
    .mobile-shortcuts small{top:4px;right:12px}
    .mobile-requests{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;margin-top:10px;padding:5px}
    .mobile-requests>.mud-button-root{justify-content:center;min-width:0;min-height:76px;padding:7px 2px;font-size:11px;line-height:1.3;color:var(--sofy-primary);position:relative}
    .mobile-requests .mud-button-label{display:flex;flex-direction:column;gap:5px}
    .mobile-requests .count-badge{position:absolute;right:2px;top:1px;margin:0;padding:1px 5px}
}
@media(max-width:360px){
    .mobile-requests>.mud-button-root{font-size:10px}
}

/* Functional colors supplement the app's blue identity; labels and icons retain their meaning. */
.fichaje-tone-pause{--action-color:#996300;--action-soft:#fff4d7}
.fichaje-tone-alert{--action-color:#c23e4b;--action-soft:#fff0f1}
.fichaje-tone-calendar{--action-color:#1763b1;--action-soft:#edf4ff}
.fichaje-tone-approved{--action-color:#237747;--action-soft:#eaf7ef}
.fichaje-tone-pending{--action-color:#28788c;--action-soft:#ebf6fa}
.fichaje-tone-incident{--action-color:#7750a8;--action-soft:#f3edfc}
@media(max-width:700px){
    .mobile-shortcuts .mud-icon-root,.mobile-requests .mud-icon-root{color:var(--action-color);background:var(--action-soft);border-radius:10px;padding:5px;width:36px;height:36px}
    .mobile-shortcuts small{color:var(--action-color);background:var(--action-soft)}
    .mobile-shortcuts button:not(:disabled):hover,.mobile-shortcuts button:not(:disabled):focus-visible,
    .mobile-requests>button:not(:disabled):hover,.mobile-requests>button:not(:disabled):focus-visible{background:var(--action-soft)}
    .mobile-shortcuts button:disabled:hover{background:none}
    .mobile-shortcuts button:focus-visible,.mobile-requests>button:focus-visible{outline:2px solid var(--action-color);outline-offset:-2px}
    .mobile-requests>.mud-button-root{color:#526e7b}
    .mobile-requests>button:disabled{opacity:.45}
    .mobile-requests .mud-icon-root{width:32px;height:32px;padding:4px;border-radius:9px}
}

/* Shared tablet/touch sizing for SofyApps, SofyFichajes and the kiosk. */
@media (min-width:701px) and (max-width:1366px), (min-width:701px) and (pointer:coarse){
    .fichajes-page{
        font-size:16px
    }
    /* Keep size containment away from the fixed action bar. */
    .jornada-details{container-name:fichajes;container-type:inline-size}
    .fichajes-page h2{font-size:23px;line-height:1.35}
    .fichajes-page h3{font-size:18px}
    .fichajes-page .surface{padding:24px}
    .fichajes-page .muted,.fichajes-page .empty-copy,.fichajes-page .history-note{font-size:15px;line-height:1.55}
    .fichajes-page .eyebrow{font-size:12px;letter-spacing:1.5px}
    .fichajes-page .section-tabs{gap:12px;margin-bottom:24px;align-items:center}
    .fichajes-page .section-tabs button:not(.desktop-refresh){flex:1;min-height:58px;padding:0 16px;font-size:17px}
    .fichajes-page .section-tabs .desktop-refresh{flex:0 0 52px;width:52px;height:52px;padding:12px;border:1px solid var(--sofy-border);border-radius:12px}
    .fichajes-page .count-badge{font-size:12px;min-width:24px;padding:3px 7px}
    .fichajes-page .mud-button-root{min-height:52px;font-size:16px;padding:12px 18px}
    .fichajes-page .date-toolbar{gap:12px;margin-bottom:24px}
    .fichajes-page .date-toolbar .field{font-size:14px;max-width:220px;gap:8px}
    .fichajes-page .date-toolbar input{min-height:52px;font-size:16px;padding:10px 12px}
    .fichajes-page .jornada-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}
    .fichajes-page .jornada-top{margin-bottom:22px;flex-wrap:wrap}
    .fichajes-page .jornada-card h2{font-size:25px;overflow-wrap:anywhere}
    .fichajes-page .work-status{font-size:14px;padding:8px 12px}
    .fichajes-page .worked-time{margin:24px 0;gap:10px}
    .fichajes-page .worked-time strong{font-size:clamp(64px,6vw,76px);line-height:1.1}
    .fichajes-page .worked-time span{font-size:15px}
    .fichajes-page .clock-actions{gap:12px}
    .fichajes-page .clock-actions .mud-button-root{flex:1 1 180px;min-height:58px;font-size:17px;padding:14px 16px}
    .fichajes-page .clock-actions .mud-icon-root{font-size:24px}
    .fichajes-page .schedule-row{padding:20px 0;font-size:16px;flex-wrap:wrap}
    .fichajes-page .schedule-row>span{color:var(--sofy-muted)}
    .fichajes-page .mini-totals{margin-top:24px;gap:16px}
    .fichajes-page .mini-totals span{font-size:14px;color:var(--sofy-muted)}
    .fichajes-page .mini-totals strong{font-size:25px}
    .fichajes-page .activity-panel,.fichajes-page .events-panel{margin-bottom:24px}
    .fichajes-page .section-heading>span{font-size:14px}
    .fichajes-page .sofy-table th{font-size:14px;padding:16px 14px;white-space:normal}
    .fichajes-page .sofy-table td{font-size:16px;padding:20px 14px}
    .fichajes-page .event-row{font-size:16px;flex-wrap:wrap;gap:12px;padding:20px 0}
    .fichajes-page .event-row time{font-size:15px;color:var(--sofy-muted)}
    .fichajes-page .pending-periods h3,.fichajes-page .pending-periods>span{font-size:15px}
    .fichajes-page .panel-heading{flex-wrap:wrap;gap:20px}
    .fichajes-page .panel-heading>div{flex:1 1 260px}
    .fichajes-page .panel-heading>.mud-button-root{flex-shrink:0}
    .fichajes-page .absence-row,.fichajes-page .incident-row{flex-wrap:wrap;gap:16px}
    .fichajes-page .absence-row strong,.fichajes-page .absence-row p,.fichajes-page .incident-row p{font-size:16px}
    .fichajes-page .incident-row time,.fichajes-page .status-pill{font-size:14px}
    .fichajes-page .closed-incidents summary{min-height:52px;padding:16px 0;font-size:16px}
    .fichajes-dialog{width:calc(100% - 48px);max-width:680px!important;max-height:calc(100dvh - 48px)!important;border-radius:16px!important}
    .fichajes-dialog .mud-dialog-title{padding:24px 28px 16px}
    .fichajes-dialog .mud-dialog-title .mud-typography-h6{font-size:23px}
    .fichajes-dialog .mud-dialog-content{padding:8px 28px 24px}
    .fichajes-dialog .field,.fichajes-dialog .check-field,.fichajes-dialog .dialog-message{font-size:16px}
    .fichajes-dialog .field-help{font-size:14px}
    .fichajes-dialog .field input,.fichajes-dialog .field select{min-height:52px;font-size:16px;padding:12px}
    .fichajes-dialog .field textarea{min-height:120px;font-size:16px;padding:12px}
    .fichajes-dialog .check-field{min-height:48px;gap:12px}
    .fichajes-dialog .check-field input{width:24px;height:24px}
    .fichajes-dialog .mud-dialog-actions{padding:16px 28px 24px;gap:12px}
    .fichajes-dialog .mud-dialog-actions .mud-button-root{min-height:54px;min-width:120px;font-size:16px;padding:12px 20px}
    .fichajes-dialog .event-row,.fichajes-dialog .event-row time{font-size:16px}
    @container fichajes (max-width:760px){
        .fichajes-page .jornada-grid{grid-template-columns:1fr}
    }
    @media (orientation:portrait){
        .fichajes-page .jornada-grid{grid-template-columns:1fr}
    }
}

/* A short viewport needs reachable actions even when its width selects the tablet layout. */
@media (max-width:700px), (max-height:700px){
    .current-jornada:has(>.jornada-action-bar){padding-bottom:calc(88px + env(safe-area-inset-bottom))}
    .current-jornada:has(>.jornada-action-bar) .jornada-details .clock-actions,
    .current-jornada:has(>.jornada-action-bar) .desktop-refresh{display:none}
    .fichajes-page>.jornada-action-bar{
        position:fixed;z-index:100;inset:auto 0 0;display:flex;align-items:center;justify-content:center;gap:8px;
        padding:10px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
        border-top:1px solid var(--sofy-border);background:#fff;box-shadow:0 -4px 18px #183c4510
    }
    .jornada-action-bar .clock-actions{flex:1;max-width:680px;min-width:0;flex-wrap:nowrap;gap:8px}
    .fichajes-page .jornada-action-bar .clock-actions .mud-button-root{flex:1;min-width:0;min-height:52px;padding:10px 12px;font-size:16px;line-height:1.25}
    .jornada-action-bar .mud-button-label{white-space:normal}
    .fichajes-page .jornada-action-bar .jornada-refresh{flex:0 0 52px;width:52px;height:52px;padding:12px;border:1px solid var(--sofy-border);border-radius:12px}
}
@media (max-width:700px){
    .current-jornada:has(>.jornada-action-bar){padding-bottom:calc(76px + env(safe-area-inset-bottom))}
    .fichajes-page>.jornada-action-bar{gap:6px;padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
    .jornada-action-bar .clock-actions{gap:6px}
    .fichajes-page .jornada-action-bar .clock-actions .mud-button-root{min-height:44px;padding:6px;font-size:12px;line-height:1.2}
    .fichajes-page .jornada-action-bar .jornada-refresh{flex-basis:44px;width:44px;height:44px;padding:10px}
}
@media (max-width:360px){
    .fichajes-page .jornada-action-bar .clock-actions .mud-button-root{font-size:11px}
    .jornada-action-bar .mud-button-icon-start{margin-left:0;margin-right:4px}
    .jornada-action-bar .clock-actions .mud-icon-root{font-size:18px}
}
@media (min-width:701px) and (max-height:700px){
    .app-shell .jornada-action-bar{left:var(--sidebar-width)}
    .app-content:has(>.fichajes-page){padding-top:12px}
    .fichajes-page .section-tabs{margin-bottom:12px}
    .fichajes-page .section-tabs button:not(.desktop-refresh){min-height:48px}
    .fichajes-page .date-toolbar{margin-bottom:16px;gap:8px}
    .fichajes-page .date-toolbar .field{gap:4px}
    .fichajes-page .date-toolbar input,.fichajes-page .date-toolbar .mud-button-root{min-height:48px;padding:8px 12px}
    .fichajes-page .jornada-grid{gap:16px;margin-bottom:16px}
    .fichajes-page .jornada-card,.fichajes-page .schedule-card{padding:18px}
    .fichajes-page .jornada-top{margin-bottom:12px}
    .fichajes-page .jornada-card h2{font-size:22px}
    .fichajes-page .worked-time{margin:14px 0 0;gap:6px}
    .fichajes-page .worked-time strong{font-size:clamp(44px,6vw,60px)}
    .fichajes-page .schedule-row{padding:12px 0}
    .fichajes-page .mini-totals{margin-top:16px}
}

.fichaje-comment{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--sofy-muted);font-size:14px;line-height:1.5}
.fichajes-dialog .fichaje-comment-field{margin-top:16px}
.fichajes-dialog .fichaje-comment-count{margin:6px 0 0}
