:root {
    --green: #198754;
    --dark-green: #0f5132;
    --soft-bg: #f3f6f1;
    --card: #ffffff;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--soft-bg);
}

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #0f5132, #198754);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: 28px;
    padding: 32px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.app-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #e8f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 18px;
}

.login-card h1 {
    font-weight: 800;
    margin-bottom: 0;
}

.offline-note {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.app-body {
    min-height: 100vh;
}

.mobile-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--soft-bg);
}

.app-header {
    background: linear-gradient(160deg, #0f5132, #198754);
    color: white;
    padding: 28px 22px 34px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header h2 {
    margin: 0;
    font-weight: 800;
    font-size: 24px;
}

.status-card {
    margin: -22px 18px 20px;
    background: white;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-card p {
    margin: 4px 0 0;
    color: #6c757d;
}

.action-grid {
    padding: 0 18px 24px;
    display: grid;
    gap: 16px;
}

.action-card {
    width: 100%;
    border: 0;
    text-decoration: none;
    color: #212529;
    background: white;
    border-radius: 24px;
    padding: 22px;
    min-height: 118px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}

.action-card.primary {
    background: #198754;
    color: white;
}

.action-card .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.action-card strong {
    font-size: 18px;
}

.action-card small {
    margin-top: 4px;
    opacity: .75;
}

/*asistencia*/
.attendance-layout {
    min-height: 100vh;
    background: var(--soft-bg);
}



.attendance-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.attendance-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    gap: 18px;
}

.panel-card {
    background: white;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
}

.panel-card h2 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 6px;
}

.jornada-info {
    background: #eef8f2;
    border-radius: 18px;
    padding: 16px;
}

.jornada-info p {
    margin: 6px 0 14px;
    color: #495057;
}

.capture-status {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.capture-status p {
    margin: 0;
    color: #6c757d;
}

.qr-placeholder {
    margin-top: 22px;
    min-height: 220px;
    border: 2px dashed #cdd8cf;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #f8faf8;
}

.qr-icon {
    font-size: 56px;
    line-height: 1;
    color: #198754;
    margin-bottom: 10px;
}

.records-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.counter-box {
    min-width: 74px;
    background: #eef8f2;
    border-radius: 18px;
    padding: 10px;
    text-align: center;
}

.counter-box span {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #198754;
}

.counter-box small {
    color: #6c757d;
}

.records-list {
    display: grid;
    gap: 12px;
}

.record-item {
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.record-item strong {
    display: block;
}

.record-item small {
    color: #6c757d;
}

.record-entry {
    color: #198754;
    font-weight: 700;
}

.record-exit {
    color: #0d6efd;
    font-weight: 700;
}

.empty-state {
    border-radius: 18px;
    background: #f8f9fa;
    color: #6c757d;
    padding: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .attendance-grid {
        grid-template-columns: 360px 1fr;
    }

    .records-panel {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1100px) {
    .attendance-grid {
        grid-template-columns: 340px 1fr 360px;
        align-items: start;
    }

    .records-panel {
        grid-column: auto;
    }
}

.search-results {
    display: grid;
    gap: 10px;
}

.search-result-item {
    width: 100%;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
}

.search-result-item strong {
    display: block;
}

.search-result-item small {
    color: #6c757d;
}

.record-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-delete-record {
    border: 0;
    background: #fdecec;
    color: #dc3545;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 14px;
}

.qr-box {
    margin-top: 22px;
}

#qrReader {
    display: none;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

#qrReader video {
    border-radius: 24px;
}


.native-app {
    min-height: 100vh;
    background: #f3f6f1;
}

.native-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 62px;
    background: #0f5132;
    color: white;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
}

.topbar-actions {
    display: flex;
    gap: 8px;
}

.topbar-link,
.topbar-exit {
    border: 0;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 14px;
}

.topbar-link {
    background: rgba(255,255,255,.14);
    color: white;
}

.topbar-exit {
    background: white;
    color: #0f5132;
    font-weight: 700;
}

.native-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
}

.welcome-card {
    background: linear-gradient(160deg, #198754, #0f5132);
    color: white;
    border-radius: 28px;
    padding: 26px 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    margin-bottom: 20px;
}

.welcome-card span {
    opacity: .8;
}

.welcome-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 4px 0;
}

.welcome-card p {
    margin: 0;
    opacity: .85;
}

.module-grid {
    display: grid;
    gap: 14px;
}

.module-card {
    text-decoration: none;
    color: #212529;
    background: white;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.07);
}

.module-card strong {
    display: block;
    font-size: 19px;
}

.module-card small {
    color: #6c757d;
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #eef8f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .module-card {
        min-height: 130px;
        align-items: flex-start;
        flex-direction: column;
    }
}

.home-app {
    min-height: 100vh;
    background: #f3f6f1;
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 76px;
    background: linear-gradient(160deg, #0f5132, #198754);
    color: white;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.home-user {
    min-width: 0;
}

.home-user strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-user span {
    display: inline-flex;
    margin-top: 5px;
    font-size: 12px;
    opacity: .9;
}

.home-actions {
    display: flex;
    gap: 8px;
}

.home-action-btn {
    border: 0;
    background: rgba(255,255,255,.14);
    color: white;
    border-radius: 16px;
    min-width: 64px;
    height: 52px;
    padding: 6px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.home-action-btn span {
    font-size: 18px;
    line-height: 1;
}

.home-action-btn small {
    font-size: 11px;
}

.home-logout {
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: white;
    color: #0f5132;
    font-weight: 800;
    font-size: 18px;
}

.home-content {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 22px 18px;
}

.home-title {
    margin-bottom: 18px;
}

.home-title h1 {
    font-size: 24px;
    font-weight: 850;
    margin: 0;
    color: #1f2d24;
}

.home-title p {
    color: #6c757d;
    margin: 4px 0 0;
}

.home-modules {
    display: grid;
    gap: 16px;
}

.home-module-card {
    min-height: 150px;
    border-radius: 28px;
    padding: 24px;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    box-shadow: 0 16px 38px rgba(0,0,0,.12);
    position: relative;
    overflow: hidden;
}

.home-module-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    right: -55px;
    top: -55px;
}

.home-module-card.asistencia {
    background: linear-gradient(160deg, #198754, #0f5132);
}

.home-module-card.actividades {
    background: linear-gradient(160deg, #3d8bfd, #0d6efd);
}

.home-module-icon {
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
    z-index: 1;
}

.home-module-card div {
    z-index: 1;
}

.home-module-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.home-module-card span {
    display: block;
    opacity: .9;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .home-modules {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-module-card {
        min-height: 210px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .home-topbar {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        margin: 0 auto;
        max-width: 920px;
    }
}

/*JORNADAS HTML*/

.attendance-home {
    min-height: 100vh;
    background: #f3f6f1;
}

.subapp-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    background: linear-gradient(160deg, #0f5132, #198754);
    color: white;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}


.subapp-back {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.subapp-title {
    flex: 1;
    text-align: right;
}

.subapp-title strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.subapp-title span {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-top: 3px;
}

.subapp-primary-action {
    border-radius: 16px;
    background: white;
    color: #0f5132;
    text-decoration: none;
    font-weight: 800;
    padding: 10px 13px;
    font-size: 14px;
    white-space: nowrap;
}

.attendance-home-content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
}

.attendance-hero {
    background: linear-gradient(160deg, #198754, #0f5132);
    color: white;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 16px 38px rgba(0,0,0,.13);
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.attendance-hero span {
    opacity: .78;
    font-size: 14px;
}

.attendance-hero h1 {
    font-size: 34px;
    font-weight: 900;
    margin: 2px 0 6px;
}

.attendance-hero p {
    margin: 0;
    opacity: .9;
}

.hero-capture-btn {
    background: white;
    color: #0f5132;
    text-decoration: none;
    border-radius: 20px;
    padding: 16px 18px;
    text-align: center;
    font-weight: 850;
    font-size: 17px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    margin: 4px 2px 14px;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 850;
    margin: 0;
    color: #1f2d24;
}

.section-heading small {
    color: #6c757d;
    text-align: right;
}

.modern-history-list {
    display: grid;
    gap: 14px;
}

.jornada-card {
    background: white;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    border: 1px solid rgba(15,81,50,.06);
}

.jornada-card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.jornada-date-block h2 {
    font-size: 20px;
    font-weight: 850;
    margin: 0;
    color: #1f2d24;
}

.jornada-date-block small {
    display: block;
    margin-top: 4px;
    color: #6c757d;
}

.jornada-sync-badge {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.jornada-sync-badge.pending {
    background: #fff3cd;
    color: #8a6d00;
}

.jornada-sync-badge.synced {
    background: #e8f5ee;
    color: #198754;
}

.jornada-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.jornada-stat {
    background: #f8faf8;
    border-radius: 18px;
    padding: 12px 8px;
    text-align: center;
}

.jornada-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #198754;
    font-weight: 900;
}

.jornada-stat span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.jornada-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.jornada-action-main,
.jornada-action-secondary {
    text-decoration: none;
    border-radius: 18px;
    padding: 13px 14px;
    text-align: center;
    font-weight: 800;
}

.jornada-action-main {
    background: #198754;
    color: white;
}

.jornada-action-secondary {
    background: #eef4ff;
    color: #0d6efd;
}

@media (min-width: 700px) {
    .attendance-hero {
        grid-template-columns: 1fr 260px;
        align-items: center;
    }

    .modern-history-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* JORNADA DETALLE - LISTA TIPO TABLA */

.check-list {
    display: grid;
    gap: 0;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.check-row-v2 {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #edf0ed;
}

.check-row-v2:last-child {
    border-bottom: 0;
}

.check-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.check-row-main strong {
    font-size: 19px;
    font-weight: 900;
    color: #1f2d24;
}

.check-delete-v2 {
    border: 0;
    background: #f8d7da;
    color: #842029;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.check-row-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;

    font-size: 13px;
    color: #495057;
}

.check-row-info span {
    background: #f5f7f5;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 650;
    white-space: nowrap;
    line-height: 1.2;
}

.check-row-info span:first-child {
    background: #edf9f1;
    color: #198754;
    font-weight: 800;
}

.detail-filter-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    margin-bottom: 16px;
}

.check-edit-row {
    margin-top: 10px;
}

.btn-change-rancho {
    border: 0;
    background: #eef8f2;
    color: #198754;
    border-radius: 12px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

/* ACTIVIDADES */

.activities-app {
    min-height: 100vh;
    background: #fff7ed;
}

.activities-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 72px;
    background: linear-gradient(160deg, #c2410c, #f97316);
    color: white;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 28px rgba(194,65,12,.22);
}

.activities-back {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.activities-title {
    flex: 1;
    text-align: right;
}

.activities-title strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.activities-title span {
    display: block;
    font-size: 12px;
    opacity: .85;
    margin-top: 3px;
}

.activities-content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
}

.activities-hero {
    background: linear-gradient(160deg, #fff7ed, #ffedd5);
    color: #7c2d12;
    border: 1px solid #fed7aa;
}

.activities-hero span {
    color: #ea580c;
    opacity: 1;
}

.activities-hero p {
    color: #9a3412;
}

.activity-save-btn {
    background: linear-gradient(160deg, #c2410c, #f97316);
    color: white;
    font-weight: 850;
    border: 0;
}

.activity-form-card {
    box-shadow: 0 12px 30px rgba(124,45,18,.08);
}

.activity-save-btn {
    background: #f97316;
    color: white;
    font-weight: 850;
    border: 0;
}

.activity-save-btn:hover {
    background: #ea580c;
    color: white;
}

.activity-heading h2 {
    color: #7c2d12;
}

.workers-activity-list,
.activity-record-list {
    display: grid;
    gap: 10px;
}

.worker-activity-row {
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(194,65,12,.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.worker-activity-row input {
    width: 22px;
    height: 22px;
    accent-color: #f97316;
}

.worker-activity-row strong {
    display: block;
    font-size: 17px;
    font-weight: 850;
    color: #1f2d24;
}

.worker-activity-row small {
    color: #7c2d12;
}

.activity-record-row {
    background: white;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(194,65,12,.08);
    border-left: 5px solid #f97316;
}

.activity-record-row strong {
    display: block;
    font-size: 17px;
    font-weight: 850;
}

.activity-record-row small {
    display: block;
    color: #7c2d12;
    margin-top: 4px;
}

.activity-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.activity-delete-btn {
    border: 0;
    background: #fdecec;
    color: #dc3545;
    border-radius: 12px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.app-toast {
    position: sticky;
    top: 84px;
    z-index: 40;
    margin-bottom: 12px;
    border-radius: 18px;
    padding: 13px 16px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.app-toast.success {
    background: #ecfdf3;
    color: #198754;
    border: 1px solid #b7ebc6;
}

.app-toast.warning {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.app-toast.error {
    background: #fdecec;
    color: #dc3545;
    border: 1px solid #f5b5b5;
}

/*MODAL*/

.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.login-modal-overlay.show {
    display: flex;
}

.login-modal-card {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 28px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.login-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.login-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #1f2d24;
}

.login-modal-card p {
    color: #6c757d;
    margin-bottom: 20px;
}

.login-modal-card button {
    border: 0;
    background: #198754;
    color: white;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 800;
    width: 100%;
}

/* MODAL SINCRONIZAR */
.sync-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.sync-modal-overlay.show {
    display: flex;
}

.sync-modal-card {
    width: 100%;
    max-width: 360px;
    background: white;
    border-radius: 28px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0,0,0,.22);
}

.sync-modal-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.sync-modal-icon.spinner {
    border: 5px solid #e9ecef;
    border-top-color: #198754;
    animation: spinSync 1s linear infinite;
}

.sync-modal-icon.success {
    background: #ecfdf3;
    color: #198754;
}

.sync-modal-icon.error {
    background: #fdecec;
    color: #dc3545;
}

.sync-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #1f2d24;
}

.sync-modal-card p {
    color: #6c757d;
    margin-bottom: 20px;
}

.sync-modal-card button {
    border: 0;
    background: #198754;
    color: white;
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 800;
    width: 100%;
}

@keyframes spinSync {
    to {
        transform: rotate(360deg);
    }
}


.global-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.global-modal-overlay.show {
    display: flex;
}

.global-modal-card {
    width: 100%;
    max-width: 370px;
    background: white;
    border-radius: 28px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.global-modal-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 15px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.global-modal-icon.warning {
    background: #fff7ed;
    color: #c2410c;
}

.global-modal-icon.error {
    background: #fdecec;
    color: #dc3545;
}

.global-modal-icon.success {
    background: #ecfdf3;
    color: #198754;
}

.global-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #1f2d24;
}

.global-modal-card p {
    color: #6c757d;
    margin-bottom: 20px;
}

.global-modal-card button {
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 850;
}

#globalModalOk {
    width: 100%;
    background: #198754;
    color: white;
}

.global-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-cancel {
    background: #f1f3f5;
    color: #495057;
}

.modal-danger {
    background: #dc3545;
    color: white;
}

.modal-success {
    background: #198754;
    color: white;
}