/* wwworks tracker — Urban Grotesk, černobílý design v duchu wwworks.cz */

/* === Urban Grotesk webfonts (hostované lokálně z pluginu) === */
@font-face {
    font-family: 'UrbanGroteskMeBl';
    src: url('../fonts/32E024_0_0.woff2') format('woff2'),
         url('../fonts/32E024_0_0.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'UrbanGroteskMeBl';
    src: url('../fonts/32E024_1_0.woff2') format('woff2'),
         url('../fonts/32E024_1_0.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'UrbanGroteskLiSe';
    src: url('../fonts/32E024_2_0.woff2') format('woff2'),
         url('../fonts/32E024_2_0.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'UrbanGroteskReBo';
    src: url('../fonts/32E024_3_0.woff2') format('woff2'),
         url('../fonts/32E024_3_0.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.wwt-app, .wwt-app * {
    box-sizing: border-box;
}

.wwt-app {
    font-family: 'UrbanGroteskLiSe', 'Helvetica Neue', Arial, sans-serif;
    color: #000;
    background: #fff;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typografie ve stylu wwworks.cz: výrazné display nadpisy === */
.wwt-app h1, .wwt-app h2, .wwt-app h3 {
    font-family: 'UrbanGroteskMeBl', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
    color: #000;
}
.wwt-app h1 { font-size: 56px; }
.wwt-app h2 { font-size: 32px; }
.wwt-app h3 { font-size: 22px; line-height: 1.2; }

.wwt-h2 {
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}
.wwt-section-title {
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color: #000;
}
.wwt-muted { color: #6b6b6b; font-size: 14px; }
.wwt-error { color: #6b6b6b; font-size: 14px; margin: 8px 0 0; font-style: italic; }

strong, b { font-family: 'UrbanGroteskReBo', sans-serif; font-weight: 700; }

/* === Form controls — sjednoceno 44 px, zaoblení 6 px === */

.wwt-app .wwt-btn-primary,
.wwt-app .wwt-btn-ghost,
.wwt-app .wwt-btn-danger,
.wwt-app .wwt-billable,
.wwt-app .wwt-pill,
.wwt-app .wwt-billable-btn {
    height: 44px;
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 0 18px;
    border-radius: 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
    text-transform: none;
}

.wwt-app .wwt-input {
    height: 44px;
    font-family: 'UrbanGroteskLiSe', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    padding: 0 14px;
    border-radius: 6px;
    box-sizing: border-box;
    border: 1px solid #d6d6d6;
    background: #fff;
    color: #000;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    margin: 0;
    display: block;
}
.wwt-input:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.wwt-input::placeholder { color: #999; }

select.wwt-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23000' d='M6 8L0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
select.wwt-input[multiple] { appearance: auto; -webkit-appearance: auto; height: auto; min-height: 80px; padding: 6px 8px; background-image: none; }
textarea.wwt-input { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }
input[type="date"].wwt-input, input[type="time"].wwt-input { padding: 0 12px; }

.wwt-input-big { font-size: 17px; }

/* Buttons */
.wwt-btn-primary { background: #000; color: #fff; border: 1px solid #000; }
.wwt-btn-primary:hover { background: #2a2a2a; }
.wwt-btn-primary:active { transform: scale(0.98); }
.wwt-btn-primary:disabled { background: #c0c0c0; border-color: #c0c0c0; cursor: not-allowed; }
.wwt-btn-ghost { background: #fff; color: #000; border: 1px solid #000; }
.wwt-btn-ghost:hover { background: #000; color: #fff; }
.wwt-btn-danger { background: #000; color: #fff; border: 1px solid #000; height: 56px; padding: 0 32px; font-size: 16px; }
.wwt-btn-danger:hover { background: #1a1a1a; border-color: #1a1a1a; }

.wwt-btn-delete { color: #000; }
.wwt-btn-delete:hover { background: #000 !important; color: #fff !important; border-color: #000 !important; }

.wwt-pill { background: transparent; border: 1px solid #d6d6d6; color: #000; height: 36px; padding: 0 16px; font-size: 13px; }
.wwt-pill-active { background: #000; color: #fff; border-color: #000; }

/* Icon pill (Den/Týden přepínač) */
.wwt-icon-pill {
    background: #fff;
    border: 1px solid #d6d6d6;
    color: #000;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wwt-icon-pill + .wwt-icon-pill { margin-left: 4px; }
.wwt-icon-pill:hover { border-color: #000; }
.wwt-icon-pill.wwt-pill-active { background: #000; color: #fff; border-color: #000; }
.wwt-icon-pill svg { display: block; }

.wwt-icon-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: #6b6b6b;
    font-size: 16px;
    height: 36px;
    width: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
}
.wwt-icon-btn:hover { color: #000; background: #f0f0f0; }
.wwt-icon-btn-danger:hover { color: #fff; background: #000; }

/* Billable label-checkbox */
.wwt-billable { background: #fff; color: #000; border: 1px solid #d6d6d6; cursor: pointer; user-select: none; gap: 8px; white-space: nowrap; padding: 0 16px; }
.wwt-billable input { accent-color: #000; margin: 0; }

/* 3-segment billable type selector */
.wwt-billable-group { display: inline-flex; height: 44px; align-items: stretch; border-radius: 6px; overflow: hidden; }
.wwt-billable-btn { background: #fff; color: #000; border: 1px solid #d6d6d6; padding: 0 16px; margin-right: -1px; font-size: 13px; border-radius: 0; }
.wwt-billable-btn:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.wwt-billable-btn:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; margin-right: 0; }
.wwt-billable-btn:hover { background: #f6f6f6; }
.wwt-billable-btn.is-active { background: #000; color: #fff; border-color: #000; z-index: 1; position: relative; }

/* Labels */
.wwt-label {
    display: block;
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin: 0 0 8px;
}

/* === Header — černé pozadí, bílý text === */

.wwt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    height: 72px;
    background: #000;
    color: #fff;
    margin-bottom: 0;
    flex-wrap: nowrap;
}
.wwt-brand {
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #fff;
}
.wwt-brand-light { font-family: 'UrbanGroteskLiSe', sans-serif; font-weight: 400; color: #999; }
.wwt-nav { display: flex; gap: 0; height: 72px; }
.wwt-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0 20px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    font-family: 'UrbanGroteskMeBl', sans-serif;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}
.wwt-nav-link:hover { color: #fff; background: #1a1a1a; }
.wwt-nav-active { color: #fff; border-bottom-color: #fff; }

.wwt-user { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 0 14px; height: 72px; color: #fff; font-size: 14px; transition: background 0.15s; font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 500; }
.wwt-user:hover { background: #1a1a1a; }
.wwt-user-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.wwt-user-name { font-weight: 500; }
.wwt-user-caret { color: #999; font-size: 11px; }
.wwt-user-menu { position: absolute; top: 100%; right: 0; margin-top: 0; background: #fff; color: #000; border: 1px solid #000; border-radius: 6px; min-width: 200px; z-index: 9999; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); overflow: hidden; }
.wwt-user-menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 14px; font-family: 'UrbanGroteskLiSe', sans-serif; font-weight: 400; font-size: 14px; cursor: pointer; height: auto; color: #000; border-radius: 4px; }
.wwt-user-menu button:hover { background: #000; color: #fff; }

/* Page content padding */
.wwt-app > section,
.wwt-app > .wwt-customers-list,
.wwt-app > .wwt-customers-toolbar,
.wwt-app > .wwt-projects-toolbar { margin-left: 32px; margin-right: 32px; }
.wwt-app > section:first-of-type { margin-top: 32px; }
.wwt-app > section:last-child { margin-bottom: 60px; }

/* === Gate (login + výběr osoby) === */
.wwt-gate { max-width: 460px; margin: 80px auto; padding: 56px 40px; border: 1px solid #000; border-radius: 8px; background: #fff; }
.wwt-gate .wwt-brand { text-align: center; font-size: 38px; color: #000; margin-bottom: 32px; display: block; }
.wwt-form { display: flex; flex-direction: column; gap: 14px; }
.wwt-member-grid { display: grid; gap: 10px; margin-top: 20px; }
.wwt-member-card { background: #fff; border: 1px solid #d6d6d6; border-radius: 6px; padding: 0 22px; height: 64px; cursor: pointer; display: flex; align-items: center; gap: 14px; font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 20px; font-weight: 500; text-align: left; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.wwt-member-card:hover { background: #000; color: #fff; border-color: #000; }
.wwt-member-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--member-color, #000); flex-shrink: 0; }

/* === Timer block === */

.wwt-timer-block { border: 1px solid #d6d6d6; border-radius: 8px; padding: 24px; margin-bottom: 32px; background: #fff; }
.wwt-timer-form { display: grid; grid-template-columns: 1fr 280px auto auto; gap: 12px; align-items: end; }
.wwt-timer-running { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
.wwt-running-info { min-width: 0; }
.wwt-running-desc { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 22px; font-weight: 500; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wwt-running-meta { color: #6b6b6b; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.wwt-running-time { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 48px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* === Project picker dropdown === */

.wwt-project-picker { position: relative; }
.wwt-project-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 6px;
    max-height: 360px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.wwt-project-dropdown[hidden] { display: none !important; }
.wwt-project-option { padding: 10px 14px; cursor: pointer; line-height: 1.3; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid #f0f0f0; }
.wwt-project-option:last-child { border-bottom: 0; }
.wwt-project-option:hover, .wwt-project-option.is-active { background: #000; color: #fff; }
.wwt-project-option:hover .wwt-project-option-customer, .wwt-project-option.is-active .wwt-project-option-customer { color: #ccc; }
.wwt-project-option-clear { color: #6b6b6b; font-style: italic; }
.wwt-project-option-archived { color: #999; }
.wwt-project-option-empty { color: #6b6b6b; font-style: italic; cursor: default; padding: 18px 14px; }
.wwt-project-option-empty:hover { background: transparent; color: #6b6b6b; }
.wwt-project-option-customer { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 10px; color: #6b6b6b; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.wwt-project-option-customer-none { font-style: italic; text-transform: none; letter-spacing: 0; }
.wwt-project-option-name { font-size: 15px; color: inherit; font-weight: 400; }

.wwt-project-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; background: #000; color: #fff; font-size: 12px; border-radius: 4px; font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 500; }
.wwt-billable-mark { color: #6b6b6b; font-weight: 500; font-size: 12px; }
.wwt-extra-mark { color: #6b6b6b; font-weight: 500; font-size: 12px; font-style: italic; }

/* === Period bar === */

.wwt-period-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding: 16px 0; flex-wrap: wrap; }
.wwt-view-tabs { display: inline-flex; }
.wwt-period-nav { display: inline-flex; align-items: center; gap: 8px; }
.wwt-period-label { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 18px; font-weight: 500; min-width: 220px; text-align: center; }
.wwt-nav-arrow { width: 44px; padding: 0; font-size: 22px; line-height: 1; font-weight: 400; }
.wwt-period-total { display: flex; align-items: center; gap: 16px; }
.wwt-period-total strong { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 18px; font-variant-numeric: tabular-nums; font-weight: 700; }

/* === Day list — kompaktní s hover-edit === */

.wwt-entry-list { list-style: none; margin: 0; padding: 0; border: 1px solid #d6d6d6; border-radius: 8px; overflow: hidden; }
.wwt-entry-row {
    display: grid;
    grid-template-columns: 1fr 240px 120px 110px 130px;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: background 0.1s;
}
.wwt-entry-row:last-child { border-bottom: 0; }
.wwt-entry-row:hover { background: #f6f6f6; }
.wwt-entry-desc { font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wwt-entry-time { color: #6b6b6b; font-size: 13px; font-variant-numeric: tabular-nums; }
.wwt-entry-duration { font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.wwt-entry-actions { display: flex; gap: 2px; justify-content: flex-end; }
.wwt-entry-row .wwt-icon-btn { opacity: 0.35; transition: opacity 0.1s; }
.wwt-entry-row:hover .wwt-icon-btn { opacity: 1; }

/* === Filters — černá toolbar s bílým textem === */

.wwt-filters { background: #000; color: #fff; padding: 24px 32px; margin: 0 -32px 32px; border-radius: 0; }
.wwt-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: stretch; }
.wwt-filter { display: flex; flex-direction: column; min-width: 0; }
.wwt-filter .wwt-label { display: block; margin-bottom: 8px; min-height: 14px; color: #999; }
/* POZN.: NEPOUŽÍVAT background shorthand — resetuje to background-repeat/position a šipka selectu se pak tilkuje */
.wwt-filter > .wwt-input { background-color: #1a1a1a; border-color: #333; color: #fff; }
.wwt-filter > .wwt-input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.wwt-filter > select.wwt-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23fff' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.wwt-filter > .wwt-btn-primary { background: #fff; color: #000; border-color: #fff; }
.wwt-filter > .wwt-btn-primary:hover { background: #d6d6d6; border-color: #d6d6d6; }
.wwt-filter > .wwt-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.wwt-filter > .wwt-btn-ghost:hover { background: #fff; color: #000; }

/* KPIs */
.wwt-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 40px; border: 1px solid #d6d6d6; border-radius: 8px; overflow: hidden; }
.wwt-kpi { padding: 24px 28px; border-right: 1px solid #eaeaea; background: #fff; }
.wwt-kpi:last-child { border-right: 0; }
.wwt-kpi-label { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6b6b; font-weight: 500; }
.wwt-kpi-value { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 40px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }

/* === Tables — černá hlavička, bílé tělo === */

.wwt-table-block { margin-bottom: 48px; }
.wwt-table-block > .wwt-h2 { margin-bottom: 16px; }
.wwt-table-wrapper { overflow-x: auto; border: 1px solid #d6d6d6; border-radius: 8px; }
.wwt-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.wwt-table thead { background: #000; color: #fff; }
.wwt-table th { text-align: left; font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 14px; border: 0; color: #fff; }
.wwt-table td { padding: 14px; border-bottom: 1px solid #eaeaea; vertical-align: top; }
.wwt-table tr:last-child td { border-bottom: 0; }
.wwt-table tbody tr:hover { background: #fafafa; }

/* === Vyfakturovat checklist === */
.wwt-invoice-block { margin-bottom: 48px; }
.wwt-invoice-head { margin-bottom: 20px; }
.wwt-invoice-head .wwt-h2 { margin-bottom: 4px; }
.wwt-invoice-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; padding: 14px 20px; background: #000; color: #fff; border-radius: 8px; }
.wwt-invoice-toolbar .wwt-billable { background: transparent; color: #fff; border-color: #444; }
.wwt-invoice-toolbar .wwt-billable:hover { border-color: #fff; }
.wwt-invoice-toolbar .wwt-btn-primary { background: #fff; color: #000; border-color: #fff; }
.wwt-invoice-toolbar .wwt-btn-primary:hover { background: #d6d6d6; border-color: #d6d6d6; }
.wwt-invoice-summary { font-size: 14px; color: #ccc; font-variant-numeric: tabular-nums; margin-left: auto; }
.wwt-inv-check { cursor: pointer; }

/* === Zákazníci === */
.wwt-customers-list { display: flex; flex-direction: column; gap: 8px; }
.wwt-customer-card { border: 1px solid #d6d6d6; border-radius: 8px; padding: 14px 18px; background: #fff; transition: border-color 0.15s; }
.wwt-customer-card:hover { border-color: #000; }
.wwt-customer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.wwt-customer-name { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 22px; font-weight: 700; margin: 0; display: inline-flex; align-items: baseline; gap: 12px; line-height: 1; letter-spacing: -0.01em; }
.wwt-customer-count { font-family: 'UrbanGroteskLiSe', sans-serif; font-size: 13px; color: #6b6b6b; font-weight: 400; letter-spacing: 0; }
.wwt-customer-actions { display: flex; gap: 2px; opacity: 0.4; transition: opacity 0.15s; }
.wwt-customer-card:hover .wwt-customer-actions { opacity: 1; }
.wwt-customer-empty { margin: 0; padding: 4px 0 0; font-size: 13px; color: #6b6b6b; }

.wwt-project-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wwt-project-chip { display: inline-flex; align-items: stretch; background: #f0f0f0; border-radius: 4px; font-size: 13px; overflow: hidden; transition: background 0.1s, color 0.1s; }
.wwt-project-chip:hover { background: #000; color: #fff; }
.wwt-project-chip.is-archived { opacity: 0.45; }
.wwt-chip-link { display: inline-flex; align-items: center; padding: 6px 4px 6px 11px; color: inherit; text-decoration: none; line-height: 1.2; }
.wwt-chip-link:hover { color: inherit; text-decoration: none; }
.wwt-chip-del { background: transparent; border: 0; padding: 0 9px 0 4px; color: inherit; opacity: 0.3; cursor: pointer; font-size: 14px; line-height: 1; transition: opacity 0.15s; }
.wwt-project-chip:hover .wwt-chip-del { opacity: 0.8; }
.wwt-chip-del:hover { opacity: 1 !important; }

.wwt-projects-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }

/* === Week calendar === */

.wwt-cal-wrap { border: 1px solid #d6d6d6; border-radius: 8px; overflow: hidden; }
.wwt-cal-header { display: grid; grid-template-columns: 60px repeat(7, 1fr); background: #000; color: #fff; position: sticky; top: 0; z-index: 2; }
.wwt-cal-h-corner { border-right: 1px solid #333; }
.wwt-cal-h-day { padding: 12px 8px; text-align: center; border-right: 1px solid #333; }
.wwt-cal-h-day:last-child { border-right: 0; }
.wwt-cal-h-day.is-today { background: #1a1a1a; }
.wwt-cal-h-dow { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #999; }
.wwt-cal-h-date { font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 20px; font-weight: 700; margin-top: 2px; }
.wwt-cal-h-day.is-today .wwt-cal-h-date { color: #fff; }
.wwt-cal-h-total { font-size: 11px; color: #999; font-variant-numeric: tabular-nums; margin-top: 2px; min-height: 14px; }

.wwt-cal-body { position: relative; display: grid; grid-template-columns: 60px repeat(7, 1fr); }
.wwt-cal-hours { position: relative; border-right: 1px solid #eaeaea; }
.wwt-cal-hour-label { position: absolute; left: 0; right: 0; padding-right: 8px; text-align: right; font-size: 10px; color: #999; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.wwt-cal-hour-label:first-child { transform: translateY(0); }

.wwt-cal-day { position: relative; border-right: 1px solid #eaeaea; }
.wwt-cal-day:last-child { border-right: 0; }
.wwt-cal-day.is-today { background: #fafafa; }
.wwt-cal-hour-cell { height: 48px; border-bottom: 1px solid #f3f3f3; cursor: cell; transition: background 0.1s; }
.wwt-cal-hour-cell:hover { background: #eaeaea; }

.wwt-cal-entry {
    position: absolute;
    left: 3px;
    right: 3px;
    padding: 5px 8px;
    border-left: 3px solid;
    background: #f0f0f0;
    color: #000;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.05s, box-shadow 0.12s;
    z-index: 1;
}
.wwt-cal-entry:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.18); z-index: 2; }
.wwt-cal-entry-time { font-weight: 400; opacity: 0.65; font-size: 11px; font-variant-numeric: tabular-nums; }
.wwt-cal-entry-desc { font-family: 'UrbanGroteskMeBl', sans-serif; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wwt-cal-entry-proj { font-weight: 400; opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Modal === */
.wwt-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.wwt-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.wwt-modal-card { position: relative; background: #fff; padding: 0; max-width: 580px; width: 92vw; max-height: 90vh; overflow-y: auto; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.wwt-modal-card h3 { padding: 20px 28px; margin: 0; font-family: 'UrbanGroteskMeBl', sans-serif; font-size: 22px; font-weight: 700; background: #000; color: #fff; }
.wwt-modal-card form { padding: 24px 28px 28px; }
.wwt-modal-card .wwt-label { margin-top: 14px; }
.wwt-modal-card .wwt-label:first-child { margin-top: 0; }
.wwt-modal-card .wwt-input, .wwt-modal-card .wwt-billable, .wwt-modal-card .wwt-billable-group { margin-bottom: 4px; }
.wwt-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eaeaea; }
.wwt-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.wwt-col { display: flex; flex-direction: column; }
.wwt-col .wwt-input { margin-bottom: 0; }

.wwt-overrides { border: 1px solid #eaeaea; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.wwt-overrides legend { padding: 0 6px; }
.wwt-override-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-bottom: 8px; align-items: center; }
.wwt-override-row:last-child { margin-bottom: 0; }
.wwt-override-row > span { font-size: 15px; }
.wwt-override-row .wwt-input { margin-bottom: 0; }

/* === Project detail modal === */
.wwt-modal-wide { max-width: 980px; }
.wwt-detail-head { display: flex; align-items: center; gap: 12px; padding: 20px 28px; background: #000; color: #fff; position: relative; }
.wwt-detail-head h3 { margin: 0; flex: 1; padding: 0; background: transparent; font-size: 26px; font-weight: 700; }
.wwt-detail-head .wwt-btn-ghost { background: transparent; color: #fff; border-color: #fff; height: 36px; padding: 0 14px; }
.wwt-detail-head .wwt-btn-ghost:hover { background: #fff; color: #000; }
.wwt-detail-head .wwt-btn-delete:hover { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.wwt-detail-head .wwt-icon-btn { color: #fff; }
.wwt-detail-head .wwt-icon-btn:hover { color: #000; background: #fff; }
.wwt-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 16px 28px; border-bottom: 1px solid #eaeaea; }
.wwt-detail-meta-pill { display: inline-block; padding: 5px 12px; background: #f0f0f0; font-size: 13px; color: #000; border-radius: 4px; }
.wwt-detail-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; border-bottom: 1px solid #eaeaea; }
.wwt-detail-kpis .wwt-kpi { padding: 16px 18px; border-right: 1px solid #eaeaea; border-bottom: 0; }
.wwt-detail-kpis .wwt-kpi:last-child { border-right: 0; }
.wwt-detail-kpis .wwt-kpi-value { font-size: 26px; }
.wwt-modal-wide .wwt-table-wrapper { margin: 0; border: 0; border-radius: 0; }
.wwt-modal-wide .wwt-table thead { background: #fafafa; color: #000; }
.wwt-modal-wide .wwt-table th { color: #6b6b6b; }

/* === Mobile === */
@media (max-width: 1024px) {
    .wwt-app h1 { font-size: 40px; }
    .wwt-section-title { font-size: 30px; }
    .wwt-cal-header, .wwt-cal-body { grid-template-columns: 50px repeat(7, minmax(0, 1fr)); }
    .wwt-cal-h-day { padding: 6px 4px; }
    .wwt-cal-h-date { font-size: 14px; }
    .wwt-cal-h-total { font-size: 11px; }
    .wwt-cal-entry-desc { font-size: 11px; }
    .wwt-cal-entry-proj, .wwt-cal-entry-time { display: none; }
}
@media (max-width: 768px) {
    .wwt-app h1 { font-size: 32px; }
    .wwt-section-title { font-size: 24px; }
    .wwt-header { padding: 0 16px; height: 60px; }
    .wwt-nav-link, .wwt-user { height: 60px; }
    .wwt-nav { height: 60px; }
    .wwt-app > section, .wwt-app > .wwt-customers-list, .wwt-app > .wwt-projects-toolbar { margin-left: 16px; margin-right: 16px; }
    .wwt-filters { padding: 16px; margin: 0 -16px 24px; }
    .wwt-nav { width: 100%; overflow-x: auto; }
    .wwt-timer-form { grid-template-columns: 1fr; }
    .wwt-timer-running { grid-template-columns: 1fr; text-align: center; }
    .wwt-running-time { font-size: 48px; }
    .wwt-kpis { grid-template-columns: repeat(2, 1fr); }
    .wwt-kpi { border-right: 0; border-bottom: 1px solid #eaeaea; }
    .wwt-kpi:nth-child(odd) { border-right: 1px solid #eaeaea; }
    .wwt-kpi:nth-last-child(-n+2) { border-bottom: 0; }
    .wwt-detail-kpis { grid-template-columns: repeat(2, 1fr); }
    .wwt-detail-kpis .wwt-kpi:nth-child(2) { border-right: 0; }
    .wwt-detail-kpis .wwt-kpi:nth-child(-n+2) { border-bottom: 1px solid #eaeaea; }
    .wwt-entry-row { grid-template-columns: 1fr auto; row-gap: 4px; }
    .wwt-entry-row > * { grid-column: 1; }
    .wwt-entry-actions { grid-column: 2; grid-row: 1 / span 5; align-self: start; }
    .wwt-row { grid-template-columns: 1fr; }
    .wwt-filter { min-width: 120px; }
}
