.sea-attendance-box,
.sea-attendance-admin{
    font-family: Arial, sans-serif;
    background:#fff;
    border:1px solid #d9e5dd;
    border-radius:18px;
    padding:24px;
    max-width:1100px;
    box-shadow:0 12px 32px rgba(15,107,63,.08);
}

.sea-attendance-box h2,
.sea-attendance-admin h1,
.sea-attendance-admin h2,
.sea-attendance-box h3{
    color:#0f6b3f;
    margin-top:0;
}

.sea-muted{color:#667;}

.sea-topbar{margin-bottom:18px;}
.sea-topbar h2{font-size:26px;margin-bottom:16px;}
.sea-topbar-meta{display:flex;flex-wrap:wrap;gap:12px;}
.sea-meta-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid #dce9e0;
    background:#fbfdfb;
    border-radius:999px;
    padding:10px 14px;
    color:#30423a;
    font-size:16px;
}
.sea-meta-pill .dashicons{color:#0f6b3f;}

.sea-status-card{display:grid;gap:10px;background:#f3faf6;border:1px solid #cfe8d8;border-radius:14px;padding:16px;margin:15px 0;}
.sea-status-card-modern{padding:20px 20px 12px;}

.sea-card-head{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}
.sea-card-head h3{font-size:20px;margin:0 0 4px;}
.sea-card-head p{margin:0;color:#667;}
.sea-card-head-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e3f2e9;
    color:#0f6b3f;
}
.sea-card-head-icon .dashicons{font-size:24px;width:24px;height:24px;}

.sea-stat-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:0;
}
.sea-stat-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:18px 14px;
    position:relative;
}
.sea-stat-item:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:16px;
    bottom:16px;
    width:1px;
    background:#d9e8df;
}
.sea-stat-icon{
    width:44px;
    height:44px;
    border-radius:50%;
    display:flex !important;
    align-items:center;
    justify-content:center;
    background:#eaf5ef;
    color:#0f6b3f;
    margin-bottom:10px;
    font-size:22px;
}
.sea-stat-label{
    color:#68756e;
    margin-bottom:8px;
}
.sea-stat-item strong{
    font-size:17px;
    color:#12251d;
}

.sea-badge{
    display:inline-block;
    border-radius:999px;
    padding:8px 12px;
    font-size:14px;
    line-height:1;
    font-weight:700;
}
.sea-badge-success{background:#dff5e5;color:#146c2e;}
.sea-badge-neutral{background:#f6e7bd;color:#8a5a00;}
.sea-badge-info{background:#e2f0fb;color:#0c5a91;}
.sea-badge-warning{background:#fff0c9;color:#9f6400;}
.sea-badge-danger{background:#fde5e7;color:#b42318;}

.sea-actions{margin-top:14px;}
.sea-actions-modern{display:flex;flex-wrap:wrap;gap:14px;margin:18px 0 10px;}
.sea-btn{
    border:1px solid transparent;
    border-radius:12px;
    padding:14px 22px;
    font-weight:700;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-size:16px;
    transition:all .2s ease;
}
.sea-btn .dashicons{font-size:18px;width:18px;height:18px;}
.sea-btn-primary{background:#0f6b3f;color:#fff;box-shadow:0 8px 18px rgba(15,107,63,.18);}
.sea-btn-primary:hover{background:#0c5a35;}
.sea-btn-secondary{background:#fff;color:#0f6b3f;border-color:#0f6b3f;}
.sea-btn-secondary:hover{background:#f6fbf8;}
.sea-btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;}
.sea-btn[disabled]:hover{background:inherit;}

.sea-ok{color:#0f6b3f;font-weight:700;}
.sea-day-closed{margin:8px 0 0;}

.sea-filter,.sea-edit-form{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
    align-items:end;
    margin:14px 0 24px;
}
.sea-edit-form label,.sea-filter label{display:flex;flex-direction:column;font-weight:600;gap:5px;}
.sea-edit-form input,.sea-edit-form select,.sea-edit-form textarea,.sea-filter input{
    border:1px solid #cfd8d2;
    border-radius:10px;
    padding:10px 12px;
    background:#fff;
}
.sea-table th{background:#0f6b3f;color:#fff;}
.sea-table td,.sea-table th{vertical-align:middle;}

.sea-notice{
    margin:12px 0;
    padding:12px 14px;
    border:1px solid #b7e4c7;
    background:#f0fff4;
    border-radius:10px;
    color:#006b3f;
    font-weight:600;
}
.sea-notice-inline{margin-bottom:18px;}

.sea-history-box{
    margin-top:22px;
    border-top:1px solid #e6ece8;
    padding-top:22px;
}
.sea-history-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
}
.sea-history-head h3{margin:0 0 4px;font-size:18px;display:flex;align-items:center;gap:8px;}
.sea-history-head p{margin:0;color:#667;}
.sea-history-table-wrap{
    overflow-x:auto;
    border:1px solid #e4ebe7;
    border-radius:12px;
}
.sea-history-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}
.sea-history-table th,
.sea-history-table td{
    padding:14px 16px;
    border-bottom:1px solid #edf2ef;
    text-align:left;
}
.sea-history-table th{
    background:#fbfdfb;
    color:#41524b;
    font-weight:700;
}
.sea-history-table tr:last-child td{border-bottom:0;}
.sea-empty-row{text-align:center;color:#667;}
.sea-delay{color:#d97706;font-weight:700;}
.sea-on-time{color:#0f8a43;font-weight:700;}

.sea-danger-box {
    border:1px solid #d63638;
    background:#fff8f8;
    padding:16px;
    margin:16px 0 24px;
    border-radius:10px;
}
.sea-danger-box h3 {margin-top:0;color:#b32d2e;}
.sea-danger-box form {display:flex;gap:12px;align-items:end;flex-wrap:wrap;}
.sea-danger-button {border-color:#b32d2e !important;color:#b32d2e !important;}

@media (max-width: 782px){
    .sea-attendance-box,
    .sea-attendance-admin{padding:18px;}
    .sea-topbar h2{font-size:22px;}
    .sea-meta-pill{font-size:14px;width:100%;}
    .sea-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .sea-stat-item:not(:last-child)::after{display:none;}
    .sea-actions-modern{flex-direction:column;}
    .sea-btn{justify-content:center;width:100%;}
    .sea-history-table th,
    .sea-history-table td{padding:10px 12px;font-size:14px;}
}

@media (max-width: 520px){
    .sea-stat-grid{grid-template-columns:1fr;}
    .sea-history-head{align-items:flex-start;}
}


/* Admin modern UI - wersja 1.1.1 */
.sea-admin-modern{
    max-width:1280px;
    border:0;
    box-shadow:none;
    background:transparent;
    padding:0;
}
.sea-admin-hero{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    background:linear-gradient(135deg,#0f6b3f,#0b5733);
    border-radius:18px;
    padding:26px;
    color:#fff;
    box-shadow:0 14px 35px rgba(15,107,63,.18);
    margin-bottom:18px;
}
.sea-admin-hero h1{
    color:#fff;
    margin:4px 0 8px;
    font-size:30px;
}
.sea-admin-hero p{margin:0;color:#e5f5eb;font-size:15px;}
.sea-admin-kicker{
    display:inline-flex;
    border:1px solid rgba(255,255,255,.35);
    border-radius:999px;
    padding:5px 10px;
    font-weight:700;
    color:#fff;
    background:rgba(255,255,255,.1);
}
.sea-admin-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.sea-admin-hero .button,
.sea-admin-export{
    display:inline-flex!important;
    align-items:center;
    gap:8px;
    border-radius:10px!important;
    min-height:38px;
}
.sea-admin-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
    gap:14px;
    margin:18px 0;
}
.sea-admin-stat{
    background:#fff;
    border:1px solid #e1ebe5;
    border-radius:16px;
    padding:18px;
    box-shadow:0 10px 24px rgba(15,107,63,.06);
    min-height:92px;
}
.sea-admin-stat-icon{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#eaf5ef;
    color:#0f6b3f;
    margin-bottom:10px;
}
.sea-admin-stat-label{
    display:block;
    color:#64746c;
    font-size:13px;
    margin-bottom:5px;
}
.sea-admin-stat strong{
    display:block;
    color:#12251d;
    font-size:20px;
}
.sea-admin-card{
    background:#fff;
    border:1px solid #e1ebe5;
    border-radius:18px;
    padding:22px;
    margin:18px 0;
    box-shadow:0 10px 24px rgba(15,107,63,.06);
}
.sea-admin-card-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:16px;
}
.sea-admin-card-head h2{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 6px;
    font-size:20px;
}
.sea-admin-card-head p{
    margin:0;
    color:#64746c;
}
.sea-filter-modern{
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    margin-bottom:0;
}
.sea-edit-form-modern{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    margin-bottom:0;
}
.sea-admin-notes{
    grid-column:span 2;
}
.sea-admin-save{
    min-height:42px!important;
    border-radius:10px!important;
}
.sea-secondary-link{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    border-radius:10px!important;
    min-height:38px;
}
.sea-admin-table-wrap{
    overflow-x:auto;
    border:1px solid #e5ede8;
    border-radius:14px;
}
.sea-table-modern{
    border:0!important;
    border-collapse:collapse!important;
}
.sea-table-modern th{
    background:#0f6b3f!important;
    color:#fff!important;
    padding:14px 12px!important;
    border:0!important;
}
.sea-table-modern td{
    padding:14px 12px!important;
    border-bottom:1px solid #eef3f0!important;
}
.sea-table-modern tr:last-child td{border-bottom:0!important;}
.sea-admin-danger-card{
    border-color:#f0d2d2;
}
.sea-admin-danger-card .sea-admin-card-head h2{color:#b32d2e;}
.sea-admin-modern .notice{
    border-radius:10px;
    margin:14px 0;
}

@media (max-width: 782px){
    .sea-admin-hero{flex-direction:column;padding:20px;}
    .sea-admin-hero h1{font-size:24px;}
    .sea-admin-card{padding:16px;}
    .sea-admin-notes{grid-column:auto;}
    .sea-admin-stat strong{font-size:18px;}
}


.sea-actions-col{white-space:nowrap;text-align:center;}
.sea-inline-form{display:inline-flex;align-items:center;margin:0;}
.sea-delete-empty-btn{
    display:inline-flex !important;
    align-items:center;
    gap:8px;
    border:1px solid #ef4444 !important;
    color:#ef4444 !important;
    background:#fff !important;
    border-radius:10px !important;
    padding:7px 12px !important;
    box-shadow:none !important;
}
.sea-delete-empty-btn:hover{background:#fff5f5 !important;color:#dc2626 !important;border-color:#dc2626 !important;}
.sea-delete-empty-btn .dashicons{font-size:17px;width:17px;height:17px;}
.sea-no-action{color:#8b97a2;font-size:18px;display:inline-block;min-width:24px;text-align:center;}


.sea-active-filter{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#e8f6ee;color:#0f6b3f;font-weight:700;padding:9px 14px;border:1px solid #cce8d8;}
.sea-filter-modern select{border:1px solid #cfd8d2;border-radius:10px;padding:10px 12px;background:#fff;min-height:42px;}


.sea-email-card .sea-admin-card-head{align-items:flex-start;}
.sea-email-status{font-size:14px;display:flex;gap:8px;align-items:center;justify-content:flex-end;min-width:180px;}
.sea-email-settings-form{display:flex;flex-direction:column;gap:16px;}
.sea-email-toggle{display:flex !important;align-items:center;gap:10px;font-weight:800;color:#102033;}
.sea-email-toggle input{width:20px;height:20px;}
.sea-email-grid{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:14px;align-items:end;}
.sea-email-grid label{font-weight:700;color:#102033;display:flex;flex-direction:column;gap:8px;}
.sea-email-grid input,.sea-email-grid select{min-height:48px;border-radius:12px;border:1px solid #d0ddd6;padding:0 14px;background:#fff;font-weight:700;}
.sea-email-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;}
.sea-email-actions .button{min-height:46px;border-radius:12px;padding:9px 22px;font-weight:700;}
@media (max-width:1200px){.sea-email-grid{grid-template-columns:repeat(2,minmax(160px,1fr));}}
@media (max-width:700px){.sea-email-grid{grid-template-columns:1fr;}.sea-email-status{justify-content:flex-start;}}

.sea-alert-card{border-left:4px solid #f59e0b;}
.sea-alert-card .sea-admin-card-head h2 .dashicons{color:#f59e0b;}
.sea-alert-grid{grid-template-columns:repeat(3,minmax(180px,1fr));}
.sea-alert-grid input[readonly]{background:#f6f7f7;color:#4b5563;}
@media (max-width:900px){.sea-alert-grid{grid-template-columns:1fr;}}

.sea-alert-grid textarea{
    min-height:70px;
    border-radius:12px;
    border:1px solid #d0ddd6;
    padding:12px 14px;
    background:#fff;
    font-weight:700;
    resize:vertical;
}
.sea-alert-grid .description{
    font-weight:500;
    color:#5f6b7a;
    line-height:1.35;
}

.sea-email-grid textarea{
    min-height:70px;
    border-radius:12px;
    border:1px solid #d0ddd6;
    padding:12px 14px;
    background:#fff;
    font-weight:700;
    resize:vertical;
}
.sea-email-grid .description{
    font-weight:500;
    color:#5f6b7a;
    line-height:1.35;
}

/* Mobile app look - wersja 1.5.1 */
@media (max-width: 600px){
    html, body{
        overflow-x:hidden;
    }
    .sea-attendance-box.sea-attendance-box-modern{
        width:100%;
        max-width:none;
        box-sizing:border-box;
        border:0;
        border-radius:0;
        box-shadow:none;
        padding:18px 14px 92px;
        margin:0;
        background:#fff;
    }
    .sea-topbar{
        margin-bottom:14px;
    }
    .sea-topbar h2{
        font-size:30px;
        line-height:1.1;
        margin:0 0 16px;
        font-weight:800;
    }
    .sea-topbar-meta{
        gap:10px;
    }
    .sea-meta-pill{
        width:100%;
        box-sizing:border-box;
        min-height:54px;
        padding:12px 14px;
        border-radius:28px;
        font-size:18px;
        background:#fff;
        border:2px solid #dcefe4;
    }
    .sea-meta-pill .dashicons{
        font-size:26px;
        width:26px;
        height:26px;
        margin-right:6px;
    }
    .sea-status-card-modern{
        margin:16px 0 14px;
        padding:16px;
        border-radius:20px;
        background:#f4fbf6;
        border:2px solid #dcefe4;
    }
    .sea-card-head{
        gap:12px;
        margin-bottom:10px;
    }
    .sea-card-head-icon{
        width:46px;
        height:46px;
    }
    .sea-card-head h3{
        font-size:25px;
        line-height:1.1;
    }
    .sea-card-head p{
        font-size:16px;
        line-height:1.25;
    }
    .sea-stat-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px;
    }
    .sea-stat-item{
        min-height:96px;
        padding:12px 8px;
        border:1px solid #dcefe4;
        border-radius:16px;
        background:rgba(255,255,255,.78);
    }
    .sea-stat-item:not(:last-child)::after{
        display:none;
    }
    .sea-stat-item:last-child{
        grid-column:1 / -1;
        min-height:72px;
    }
    .sea-stat-icon{
        width:34px;
        height:34px;
        margin-bottom:7px;
        font-size:18px;
    }
    .sea-stat-label{
        margin-bottom:5px;
        font-size:15px;
    }
    .sea-stat-item strong{
        font-size:21px;
        line-height:1.1;
    }
    .sea-badge{
        padding:9px 13px;
        font-size:16px;
    }
    .sea-actions-modern{
        margin:16px 0 8px;
        gap:10px;
    }
    .sea-btn{
        min-height:56px;
        border-radius:14px;
        font-size:17px;
        padding:14px 16px;
        width:100%;
        justify-content:center;
    }
    .sea-gps-status{
        box-sizing:border-box;
        border-radius:12px;
        padding:8px 2px;
        font-size:14px;
        line-height:1.35;
    }
    .sea-day-closed{
        text-align:center;
        background:#e7f7ed;
        border:1px solid #ccebd8;
        border-radius:14px;
        padding:10px 12px;
    }
    .sea-history-box{
        margin-top:18px;
        padding-top:16px;
    }
    .sea-history-head h3{
        font-size:18px;
    }
    .sea-history-head p{
        font-size:14px;
    }
    .sea-history-table-wrap{
        border-radius:14px;
    }
    .sea-history-table{
        min-width:560px;
    }
    .sea-history-table th,
    .sea-history-table td{
        padding:10px 9px;
        font-size:13px;
    }
}

@media (max-width: 380px){
    .sea-topbar h2{font-size:27px;}
    .sea-meta-pill{font-size:16px;}
    .sea-card-head h3{font-size:23px;}
    .sea-stat-grid{gap:8px;}
    .sea-stat-item{min-height:88px;padding:10px 6px;}
    .sea-stat-item strong{font-size:19px;}
    .sea-btn{font-size:16px;}
}

/* Mobile bottom actions - wersja 1.5.4 */
.sea-mobile-bottom-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:14px 0 12px;
}
.sea-btn-light{
    background:#fff;
    color:#5f6b7a;
    border-color:#e2ebe6;
    box-shadow:0 6px 16px rgba(15,107,63,.06);
    text-decoration:none;
}
.sea-btn-light:hover{background:#f8fbf9;color:#30423a;}
.sea-btn-logout{
    background:#fff;
    color:#0f6b3f;
    border-color:#0f6b3f;
    box-shadow:0 6px 16px rgba(15,107,63,.06);
    text-decoration:none;
}
.sea-btn-logout:hover{background:#f2fbf6;color:#0c5a35;}
.sea-stat-location{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    margin-top:8px;
    color:#0f6b3f;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
    line-height:1.2;
}
.sea-stat-location:hover{text-decoration:underline;}
.sea-stat-location .dashicons{font-size:16px;width:16px;height:16px;}

@media (max-width: 600px){
    .sea-mobile-bottom-actions{
        margin:12px 0 6px;
    }
    .sea-mobile-bottom-actions .sea-btn{
        min-height:54px;
        border-radius:14px;
        text-transform:uppercase;
        letter-spacing:.03em;
    }
    .sea-stat-location{
        font-size:12px;
        max-width:100%;
        white-space:normal;
    }
}


/* SEA 1.5.8 - NA PEWNO czerwony przycisk wyjścia + większa przerwa */
.sea-actions-modern .sea-btn-checkin-green {
    margin-bottom: 18px !important;
}

.sea-actions-modern .sea-btn-checkout-red,
.sea-actions-modern button.sea-btn-checkout-red,
.sea-attendance-box .sea-btn-checkout-red,
.sea-attendance-box button.sea-btn-checkout-red {
    background: #d71920 !important;
    background-image: linear-gradient(135deg, #ef2525, #c90000) !important;
    border: 2px solid #c90000 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(201, 0, 0, .24) !important;
    margin-top: 18px !important;
    margin-bottom: 20px !important;
}

.sea-actions-modern .sea-btn-checkout-red:hover,
.sea-actions-modern button.sea-btn-checkout-red:hover,
.sea-attendance-box .sea-btn-checkout-red:hover,
.sea-attendance-box button.sea-btn-checkout-red:hover {
    background: #bd0000 !important;
    background-image: linear-gradient(135deg, #d71920, #a90000) !important;
    border-color: #a90000 !important;
    color: #ffffff !important;
}

.sea-actions-modern .sea-btn-checkout-red *,
.sea-actions-modern button.sea-btn-checkout-red *,
.sea-attendance-box .sea-btn-checkout-red *,
.sea-attendance-box button.sea-btn-checkout-red * {
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .sea-actions-modern {
        gap: 0 !important;
    }
    .sea-actions-modern .sea-btn-checkin-green {
        margin-bottom: 24px !important;
    }
    .sea-actions-modern .sea-btn-checkout-red,
    .sea-actions-modern button.sea-btn-checkout-red,
    .sea-attendance-box .sea-btn-checkout-red,
    .sea-attendance-box button.sea-btn-checkout-red {
        min-height: 58px !important;
        margin-top: 0 !important;
        margin-bottom: 22px !important;
        border-radius: 14px !important;
        background: #d71920 !important;
        background-image: linear-gradient(135deg, #ef2525, #c90000) !important;
        border-color: #c90000 !important;
        color: #ffffff !important;
    }
}


/* SEA 1.5.9 - panel po wylogowaniu / szybkie ponowne logowanie */
.sea-mobile-login-again,.sea-mobile-login-again *{box-sizing:border-box;}
.sea-mobile-login-again{background:#fff;color:#16202a;border-radius:22px;overflow:hidden;}
.sea-topbar-logged-out{padding:18px 22px !important;justify-content:center !important;}
.sea-topbar-logged-out h2{margin:0 auto !important;text-align:center !important;}
.sea-mobile-login-body{padding:24px 18px 36px;}
.sea-mobile-sea-logo{display:block;width:min(320px,80%);max-height:120px;object-fit:contain;margin:4px auto 24px;}
.sea-mobile-logout-card{background:#fff;border:1px solid #edf1ee;border-radius:24px;padding:28px 18px;text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.08);margin-bottom:24px;}
.sea-mobile-check{width:84px;height:84px;border-radius:999px;background:#d8f5e4;color:#006b38;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:42px;font-weight:900;box-shadow:inset 0 0 0 18px #c3edd5;}
.sea-mobile-logout-card h2{margin:0;color:#006b38;font-size:22px;font-weight:900;}
.sea-mobile-login-info{display:flex;align-items:center;gap:16px;margin:0 4px 18px;}
.sea-mobile-info-icon{width:56px;height:56px;min-width:56px;border-radius:999px;background:#e6f7ee;color:#007a3d;display:flex;align-items:center;justify-content:center;}
.sea-mobile-info-icon .dashicons{font-size:24px;width:24px;height:24px;}
.sea-mobile-login-info h3{margin:0 0 4px;font-size:16px;font-weight:800;color:#1b2530;}
.sea-mobile-login-info p{margin:0;color:#677080;font-size:14px;line-height:1.5;}
.sea-mobile-login-primary,.sea-mobile-login-secondary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;border-radius:14px;font-size:16px;font-weight:800;text-decoration:none !important;margin:0 0 14px;padding:0 18px;}
.sea-mobile-login-primary{background:linear-gradient(135deg,#007a3d,#005f31);color:#fff !important;box-shadow:0 8px 20px rgba(0,111,61,.24);}
.sea-mobile-login-secondary{background:#fff;color:#006b38 !important;border:2px solid #006b38;}
.sea-mobile-login-primary .dashicons,.sea-mobile-login-secondary .dashicons{font-size:20px;width:20px;height:20px;}
.sea-mobile-secure{margin-top:18px;}


/* SEA 1.6.1 - wymuszony panel logowania po wylogowaniu */
.sea-mobile-login-again .sea-mobile-login-primary,
.sea-mobile-login-again .sea-mobile-login-secondary {
    cursor: pointer;
}
.sea-mobile-login-again .sea-mobile-login-primary {
    text-align: center;
}


/* SEA 1.6.4 - mniej pustego miejsca u góry */
@media (max-width: 600px){
    .sea-attendance-box.sea-attendance-box-modern{
        padding:8px 14px 92px;
    }
    .sea-topbar{
        margin-bottom:8px;
    }
    .sea-topbar h2{
        display:none;
    }
    .sea-topbar-meta{
        margin-top:0;
    }
    .sea-status-card-modern{
        margin-top:10px;
    }
}


/* SEA 1.6.6 - poprawka znikających przycisków po zapisaniu */
.sea-btn[disabled],
.sea-btn[disabled]:hover,
.sea-btn[disabled]:focus,
.sea-btn[disabled]:active,
.sea-clock-btn[disabled],
.sea-clock-btn[disabled]:hover,
.sea-clock-btn[disabled]:focus,
.sea-clock-btn[disabled]:active,
.sea-btn-checkin-green[disabled],
.sea-btn-checkin-green[disabled]:hover,
.sea-btn-checkin-green[disabled]:focus,
.sea-btn-checkin-green[disabled]:active,
.sea-btn-checkout-red[disabled],
.sea-btn-checkout-red[disabled]:hover,
.sea-btn-checkout-red[disabled]:focus,
.sea-btn-checkout-red[disabled]:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: #eef4f1 !important;
    background-image: none !important;
    border: 2px solid #d6e5dd !important;
    color: #6b7c72 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.sea-btn[disabled] *,
.sea-clock-btn[disabled] *,
.sea-btn-checkin-green[disabled] *,
.sea-btn-checkout-red[disabled] * {
    color: #6b7c72 !important;
}

@media (max-width: 600px) {
    .sea-btn[disabled],
    .sea-clock-btn[disabled],
    .sea-btn-checkin-green[disabled],
    .sea-btn-checkout-red[disabled] {
        min-height: 56px !important;
        border-radius: 14px !important;
    }
}


/* SEA 1.6.8 - wyjście po zapisaniu też szare i nieaktywne */
.sea-btn-checkout-red[disabled],
.sea-btn-checkout-red[disabled]:hover,
.sea-btn-checkout-red[disabled]:focus,
.sea-btn-checkout-red[disabled]:active,
.sea-btn-checkout-red.sea-btn-finished,
.sea-btn-checkout-red.sea-btn-finished:hover,
.sea-btn-checkout-red.sea-btn-finished:focus,
.sea-btn-checkout-red.sea-btn-finished:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: #eef4f1 !important;
    background-image: none !important;
    border: 2px solid #d6e5dd !important;
    color: #6b7c72 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.sea-btn-checkout-red[disabled] *,
.sea-btn-checkout-red.sea-btn-finished * {
    color: #6b7c72 !important;
}

@media (max-width: 600px) {
    .sea-btn-checkout-red[disabled],
    .sea-btn-checkout-red.sea-btn-finished {
        min-height: 56px !important;
        border-radius: 14px !important;
    }
}


/* SEA 1.6.9 - ostateczna poprawka: czerwony tylko gdy aktywny, szary gdy wyjście zapisane */
.sea-btn-checkout-disabled,
.sea-btn-checkout-disabled:hover,
.sea-btn-checkout-disabled:focus,
.sea-btn-checkout-disabled:active,
button.sea-btn-checkout-disabled,
button.sea-btn-checkout-disabled:hover,
button.sea-btn-checkout-disabled:focus,
button.sea-btn-checkout-disabled:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: #eef4f1 !important;
    background-image: none !important;
    border: 2px solid #d6e5dd !important;
    color: #6b7c72 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.sea-btn-checkout-disabled *,
button.sea-btn-checkout-disabled * {
    color: #6b7c72 !important;
}

/* Czerwony styl tylko dla aktywnego przycisku wyjścia */
.sea-btn-checkout-red:not([disabled]),
.sea-btn-checkout-red:not([disabled]):hover,
.sea-btn-checkout-red:not([disabled]):focus,
.sea-btn-checkout-red:not([disabled]):active {
    background: #d71920 !important;
    background-image: linear-gradient(135deg, #ef2525, #c90000) !important;
    border: 2px solid #c90000 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(201, 0, 0, .24) !important;
}

.sea-btn-checkout-red:not([disabled]) *,
button.sea-btn-checkout-red:not([disabled]) * {
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .sea-btn-checkout-disabled,
    button.sea-btn-checkout-disabled {
        min-height: 56px !important;
        border-radius: 14px !important;
    }
}


/* SEA 1.7.0 - wyjście czerwone przed zapisem, szare dopiero po zapisaniu wyjścia */
.sea-actions-modern .sea-btn-checkout-red,
.sea-actions-modern .sea-btn-checkout-red:hover,
.sea-actions-modern .sea-btn-checkout-red:focus,
.sea-actions-modern .sea-btn-checkout-red:active,
.sea-actions-modern button.sea-btn-checkout-red,
.sea-actions-modern button.sea-btn-checkout-red:hover,
.sea-actions-modern button.sea-btn-checkout-red:focus,
.sea-actions-modern button.sea-btn-checkout-red:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: #d71920 !important;
    background-image: linear-gradient(135deg, #ef2525, #c90000) !important;
    border: 2px solid #c90000 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(201, 0, 0, .24) !important;
}

.sea-actions-modern .sea-btn-checkout-red *,
.sea-actions-modern button.sea-btn-checkout-red * {
    color: #ffffff !important;
}

/* Jeśli czerwony przycisk jest jeszcze nieaktywny, zostaje czerwony wizualnie, ale nie klika się */
.sea-actions-modern .sea-btn-checkout-red[disabled],
.sea-actions-modern button.sea-btn-checkout-red[disabled] {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Szary tylko po faktycznie zapisanym wyjściu */
.sea-actions-modern .sea-btn-checkout-disabled,
.sea-actions-modern .sea-btn-checkout-disabled:hover,
.sea-actions-modern .sea-btn-checkout-disabled:focus,
.sea-actions-modern .sea-btn-checkout-disabled:active,
.sea-actions-modern button.sea-btn-checkout-disabled,
.sea-actions-modern button.sea-btn-checkout-disabled:hover,
.sea-actions-modern button.sea-btn-checkout-disabled:focus,
.sea-actions-modern button.sea-btn-checkout-disabled:active {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    background: #eef4f1 !important;
    background-image: none !important;
    border: 2px solid #d6e5dd !important;
    color: #6b7c72 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.sea-actions-modern .sea-btn-checkout-disabled *,
.sea-actions-modern button.sea-btn-checkout-disabled * {
    color: #6b7c72 !important;
}


/* Licencja SEA Lista Obecnosci */
.sea-license-status{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    margin-top:8px!important;
    padding:7px 12px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.13)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:700!important;
}
.sea-license-panel{
    border-left:5px solid #0b6b3a!important;
}
.sea-license-panel input[type=password]{
    min-height:42px;
    border-radius:10px;
    border:1px solid #cbd5dc;
    padding:0 12px;
}
