:root {
    --tom-bg: #f5f7fb;
    --tom-surface: #ffffff;
    --tom-sidebar: #101828;
    --tom-sidebar-hover: #1d2939;
    --tom-text: #101828;
    --tom-muted: #667085;
    --tom-border: #eaecf0;

    --tom-primary: #2563eb;
    --tom-primary-soft: #eff6ff;

    --tom-success: #12b76a;
    --tom-success-soft: #ecfdf3;

    --tom-warning: #f79009;
    --tom-warning-soft: #fffaeb;

    --tom-danger: #f04438;
    --tom-danger-soft: #fef3f2;

    --tom-radius: 18px;
    --tom-shadow:
        0 1px 3px rgba(16, 24, 40, .04),
        0 8px 24px rgba(16, 24, 40, .05);
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--tom-bg);
    color: var(--tom-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

a {
    text-decoration: none;
}

.timer-layout {
    min-height: 100vh;
}


/* =========================================================
   SIDEBAR
========================================================= */

.timer-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 255px;

    background: var(--tom-sidebar);

    padding: 24px 16px;

    display: flex;
    flex-direction: column;

    z-index: 1050;

    transition: transform .25s ease;
}


.timer-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: white;

    padding: 4px 10px 28px;
}


.timer-brand-mark {
    width: 42px;
    height: 42px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #6366f1
        );

    font-weight: 800;
    font-size: 15px;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .25);
}


.timer-brand-name {
    font-size: 17px;
    font-weight: 750;
}


.timer-brand-subtitle {
    display: block;
    color: #98a2b3;
    font-size: 11px;
    margin-top: 1px;
}


.sidebar-section {
    margin-top: 18px;
    margin-bottom: 7px;

    padding: 0 12px;

    color: #667085;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;
}


.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 45px;

    margin: 4px 0;
    padding: 0 12px;

    border-radius: 11px;

    color: #98a2b3;

    font-size: 14px;
    font-weight: 500;

    transition:
        background .15s ease,
        color .15s ease;
}


.sidebar-link svg {
    width: 19px;
    height: 19px;
}


.sidebar-link:hover {
    background: var(--tom-sidebar-hover);
    color: white;
}


.sidebar-link.active {
    background: rgba(255,255,255,.09);
    color: white;
}


.sidebar-spacer {
    flex: 1;
}


.sidebar-status {
    border-top: 1px solid rgba(255,255,255,.08);

    padding: 18px 10px 0;

    color: #98a2b3;

    font-size: 12px;
}


.status-online {
    display: inline-block;

    width: 8px;
    height: 8px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--tom-success);

    box-shadow:
        0 0 0 3px rgba(18,183,106,.15);
}


/* =========================================================
   MAIN
========================================================= */

.timer-main {
    margin-left: 255px;
    min-height: 100vh;
}


.timer-topbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    background: rgba(255,255,255,.88);

    border-bottom: 1px solid var(--tom-border);

    backdrop-filter: blur(12px);
}


.timer-content {
    padding: 30px 34px 50px;
    max-width: 1700px;
    margin: auto;
}


.page-title {
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.025em;
    margin: 0;
}


.page-subtitle {
    color: var(--tom-muted);
    font-size: 14px;
    margin-top: 5px;
}


/* =========================================================
   PERIOD SELECTOR
========================================================= */

.period-selector {
    display: inline-flex;

    padding: 4px;

    border: 1px solid var(--tom-border);
    border-radius: 12px;

    background: white;
}


.period-selector a {
    padding: 7px 13px;

    border-radius: 9px;

    color: var(--tom-muted);

    font-size: 13px;
    font-weight: 600;
}


.period-selector a:hover {
    color: var(--tom-text);
}


.period-selector a.active {
    background: var(--tom-sidebar);
    color: white;

    box-shadow:
        0 2px 5px rgba(16,24,40,.15);
}


/* =========================================================
   CARDS
========================================================= */

.timer-card {
    background: var(--tom-surface);

    border: 1px solid var(--tom-border);

    border-radius: var(--tom-radius);

    box-shadow: var(--tom-shadow);
}


.card-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}


.card-subheading {
    font-size: 12px;
    color: var(--tom-muted);
}


/* =========================================================
   KPI
========================================================= */

.kpi-card {
    padding: 21px 22px;
    height: 100%;
}


.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.kpi-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--tom-primary-soft);
    color: var(--tom-primary);
}


.kpi-icon svg {
    width: 20px;
    height: 20px;
}


.kpi-label {
    color: var(--tom-muted);
    font-size: 12px;
    font-weight: 600;
}


.kpi-number {
    margin-top: 10px;

    font-size: 29px;
    font-weight: 750;

    letter-spacing: -.035em;
}


.kpi-detail {
    margin-top: 5px;

    color: var(--tom-muted);
    font-size: 12px;
}


/* =========================================================
   TECHNICIANS
========================================================= */

.tech-card {
    padding: 20px;

    height: 100%;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.tech-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 28px rgba(16,24,40,.09);
}


.tech-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.tech-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}


.tech-avatar {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--tom-primary-soft);
    color: var(--tom-primary);

    font-size: 13px;
    font-weight: 800;
}


.tech-name {
    font-size: 14px;
    font-weight: 700;
}


.tech-job {
    color: var(--tom-muted);
    font-size: 11px;
    margin-top: 2px;
}


.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}


.timer-badge::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}


.badge-success {
    color: #027a48;
    background: var(--tom-success-soft);
}


.badge-warning {
    color: #b54708;
    background: var(--tom-warning-soft);
}


.badge-danger {
    color: #b42318;
    background: var(--tom-danger-soft);
}


.tech-main-value {
    margin-top: 22px;

    font-size: 24px;
    font-weight: 750;
}


.tech-main-value span {
    color: var(--tom-muted);

    font-size: 13px;
    font-weight: 500;
}


.timer-progress {
    height: 7px;

    margin-top: 12px;

    overflow: hidden;

    border-radius: 20px;

    background: #f2f4f7;
}


.timer-progress-bar {
    height: 100%;

    border-radius: inherit;

    transition: width .4s ease;
}


.progress-success {
    background: var(--tom-success);
}

.progress-warning {
    background: var(--tom-warning);
}

.progress-danger {
    background: var(--tom-danger);
}


.tech-footer {
    display: grid;
    grid-template-columns: repeat(3,1fr);

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid var(--tom-border);
}


.tech-metric:not(:first-child) {
    padding-left: 12px;
    border-left: 1px solid var(--tom-border);
}


.tech-metric-label {
    color: var(--tom-muted);
    font-size: 10px;
}


.tech-metric-value {
    margin-top: 2px;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   MOBILE
========================================================= */

.mobile-menu {
    display: none;

    border: 0;
    background: transparent;

    font-size: 24px;
}


.sidebar-overlay {
    display: none;
}


@media (max-width: 991px) {

    .timer-sidebar {
        transform: translateX(-100%);
    }

    .timer-sidebar.open {
        transform: translateX(0);
    }

    .timer-main {
        margin-left: 0;
    }

    .mobile-menu {
        display: block;
    }

    .timer-topbar {
        padding: 0 18px;
    }

    .timer-content {
        padding: 22px 16px 40px;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;

        background: rgba(16,24,40,.45);

        z-index: 1040;
    }

    .sidebar-overlay.show {
        display: block;
    }

}


@media (max-width: 600px) {

    .period-selector {
        overflow-x: auto;
        max-width: 100%;
    }

    .page-title {
        font-size: 23px;
    }

}

/* ==========================================================
   TIMER - SELECTEUR DE PERIODE
========================================================== */

.timer-period-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ... le reste du bloc que je t'ai donné ... */


/* ==========================================================
   TIMER - SELECTEUR DE PERIODE
========================================================== */

.timer-period-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.timer-period-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    background: #f2f4f7;
    border-radius: 12px;
}

.timer-period-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 9px;
    color: #667085;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: all .15s ease;
}

.timer-period-button:hover {
    color: #344054;
    background: #ffffff;
}

.timer-period-button.active {
    color: #101828;
    background: #ffffff;
    box-shadow:
        0 1px 3px rgba(16, 24, 40, .10),
        0 1px 2px rgba(16, 24, 40, .06);
}

.timer-period-dates {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 13px;
    font-weight: 550;
}

.timer-period-dates svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {

    .timer-period-selector {
        display: flex;
        width: 100%;
        overflow-x: auto;
    }

    .timer-period-button {
        flex: 0 0 auto;
    }

}


/* ==========================================================
   TECHONME TIMER — PREMIUM HYBRID DESIGN SYSTEM V2
   Presentation only; shared across all existing modules.
========================================================== */
:root {
  --tom-bg: #f3f6fc;
  --tom-surface: #fff;
  --tom-sidebar: #0b1730;
  --tom-sidebar-hover: #172d50;
  --tom-text: #12213b;
  --tom-muted: #61738e;
  --tom-border: #e2e9f4;
  --tom-primary: #2563eb;
  --tom-primary-soft: #eaf2ff;
  --tom-radius: 18px;
  --tom-shadow: 0 2px 5px rgba(17,39,76,.035), 0 14px 36px rgba(17,39,76,.055);
}
body {font-feature-settings:"tnum" 1; -webkit-font-smoothing:antialiased;}
.timer-sidebar {background:linear-gradient(180deg,#0a1730 0%,#10264a 100%);box-shadow:8px 0 34px rgba(12,30,60,.08);}
.timer-brand {border-bottom:1px solid rgba(255,255,255,.085);margin-bottom:16px;padding-bottom:24px;}
.timer-brand-mark {background:linear-gradient(140deg,#38bdf8,#2563eb 68%,#4f46e5);box-shadow:0 8px 25px rgba(37,99,235,.32);}
.sidebar-section {color:#91a9ca;letter-spacing:.12em;margin-top:20px;}
.sidebar-link {color:#b8c9e2;border:1px solid transparent;transition:background .18s,color .18s,border-color .18s,transform .18s;}
.sidebar-link:hover {background:rgba(255,255,255,.085);transform:translateX(2px);}
.sidebar-link.active {background:linear-gradient(90deg,rgba(59,130,246,.26),rgba(59,130,246,.09));border-color:rgba(125,179,255,.16);color:#fff;box-shadow:inset 3px 0 #60a5fa;}
.timer-topbar {background:rgba(255,255,255,.93);border-bottom:1px solid var(--tom-border);box-shadow:0 3px 16px rgba(16,36,71,.025);}
.timer-content {max-width:1740px;}
.page-title {font-weight:800;letter-spacing:-.04em;}
.page-subtitle {color:var(--tom-muted);}
.timer-card {border:1px solid var(--tom-border);border-radius:var(--tom-radius);box-shadow:var(--tom-shadow);background:#fff;transition:box-shadow .2s,border-color .2s;}
.timer-card:hover {border-color:#d2def0;box-shadow:0 5px 12px rgba(17,39,76,.045),0 20px 45px rgba(17,39,76,.075);}
.kpi-card {position:relative;overflow:hidden;}
.kpi-card:before {content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#38bdf8,#2563eb);}
.kpi-label {color:#62748d;letter-spacing:.015em;}
.kpi-number {letter-spacing:-.04em;font-weight:800;color:#112342;}
.kpi-icon {background:linear-gradient(135deg,#eff7ff,#e6edff);color:#2563eb;}
.card-heading {font-weight:800;letter-spacing:-.02em;color:#112342;}
.card-subheading {color:#6a7b93;}
.timer-progress {background:#eaf0f9;height:8px;}
.timer-progress-bar {background-image:linear-gradient(90deg,rgba(255,255,255,.1),rgba(255,255,255,0));}
.timer-badge {font-weight:750;}
.timer-period-bar {padding:14px 16px;border:1px solid var(--tom-border);border-radius:16px;background:#fff;box-shadow:0 3px 15px rgba(17,39,76,.035);}
.timer-period-selector {background:#f0f4fb;}
.timer-period-button.active {color:#1d4ed8;box-shadow:0 2px 8px rgba(16,36,71,.08);}
.timer-topbar-meta {display:flex;align-items:center;gap:10px;}
.timer-topbar-meta-icon {display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf2ff;color:#2563eb;}
.timer-topbar-meta-icon svg {width:18px;height:18px;}
.timer-topbar-meta-title {font-size:12px;font-weight:750;color:#12213b;}
.timer-topbar-meta-subtitle {font-size:11px;color:#71819a;}
.timer-dashboard-intro {display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px;padding:23px 27px;border-radius:20px;background:linear-gradient(115deg,#0c2347,#123c78 72%,#1e5fb5);color:#fff;box-shadow:0 15px 34px rgba(20,65,125,.14);}
.timer-dashboard-intro h2 {font-size:21px;font-weight:800;letter-spacing:-.03em;margin:4px 0 6px;}
.timer-dashboard-intro p {margin:0;color:#c6daf7;font-size:13px;}
.timer-dashboard-eyebrow {font-size:11px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:#8cc9ff;}
.timer-dashboard-intro-mark {display:grid;place-items:center;width:55px;height:55px;flex:0 0 auto;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);border-radius:17px;}
.timer-dashboard-intro-mark svg {width:25px;height:25px;}
.timer-dashboard-section-label {display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#6c7d96;margin:2px 0 13px;}
.timer-dashboard-section-label:before {content:"";width:18px;height:3px;border-radius:3px;background:#3b82f6;}
.timer-dashboard-chart .card-heading {font-size:17px;}
.timer-dashboard-chart canvas {max-width:100%;}
.timer-dashboard-sync {background:#f5f8ff!important;border-color:#e0e9fa!important;}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid rgba(59,130,246,.4);outline-offset:3px;}
@media(max-width:768px) {.timer-dashboard-intro {padding:19px 20px;}.timer-dashboard-intro h2 {font-size:18px;}.timer-dashboard-intro-mark {display:none;}.timer-topbar-meta {display:none;}}
@media(prefers-reduced-motion:reduce) {.timer-card,.sidebar-link {transition:none!important;}}
