.itime { color:#193734; display:grid; gap:18px; --time-line:#dce5e1; --time-muted:#536963; }
.itime [hidden], .itime-dialog [hidden] { display:none !important; }
.itime-panel { background:#fff; border:1px solid var(--time-line); border-radius:12px; padding:22px; }
.itime-note { margin:6px 0 0; color:#536963; font-size:13px; line-height:1.5; }
.itime h2, .itime-dialog h2 { margin:0; font-size:18px; letter-spacing:-.2px; }
.itime-button { appearance:none; border:1px solid #d0ddd7; border-radius:7px; background:#fff; color:#214b43; padding:9px 13px; font:inherit; font-size:13px; font-weight:650; cursor:pointer; white-space:nowrap; }
.itime-button:hover { background:#f0f6f2; border-color:#91afa1; }
.itime-button:disabled { opacity:.5; cursor:wait; }
.itime-primary { background:#174e43; color:#fff; border-color:#174e43; }
.itime-primary:hover { background:#103d33; color:#fff; }
.itime button:focus-visible, .itime summary:focus-visible, .itime-dialog button:focus-visible, .itime-dialog summary:focus-visible { outline:3px solid #b3903b; outline-offset:3px; }
.itime-field { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:650; color:#425c54; min-width:0; }
.itime-field small { font-weight:400; font-size:12px; line-height:1.45; }
.itime input, .itime select, .itime-dialog input:not([type=checkbox]), .itime-dialog select, .itime-dialog textarea { border:1px solid #cfdbd5; border-radius:7px; padding:9px 10px; color:#163d32; background:#fff; font:inherit; font-size:14px; min-width:0; box-sizing:border-box; }
.itime-dialog input[readonly] { background:#f1f5f2; color:#52675e; }
.itime-toolbar { display:flex; gap:24px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; padding:18px 22px; }
.itime-toolbar select { min-width:190px; }
.itime-month-nav { display:flex; gap:7px; align-items:flex-end; }
.itime-month-nav>button { height:38px; width:36px; font-size:23px; padding:1px; }
.itime-toolbar-actions { display:flex; gap:9px; align-items:center; }
.itime-person { display:flex; flex-direction:column; gap:5px; padding-bottom:8px; }
.itime-settings { position:relative; }
.itime-settings>summary { cursor:pointer; padding:9px; font-size:13px; font-weight:650; }
.itime-settings-menu { position:absolute; z-index:5; right:0; top:100%; width:235px; padding:8px; display:grid; gap:5px; background:#fff; border:1px solid #cddad3; border-radius:9px; box-shadow:0 8px 25px #18392f1c; }
.itime-settings-menu button { text-align:left; white-space:normal; border:0; }
.itime-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.itime-card { border:1px solid var(--time-line); border-radius:10px; padding:18px; background:#fff; }
.itime-card-label { color:#4d665c; font-size:12px; font-weight:650; }
.itime-card strong { display:block; font-size:29px; line-height:1.4; font-weight:750; letter-spacing:-.6px; }
.itime-card .itime-note { font-size:12px; }
.itime-eyebrow { font-size:10px; letter-spacing:1.1px; font-weight:750; color:#536c60; }
.itime-plan { display:flex; justify-content:space-between; gap:20px; padding:19px 23px; background:#edf3ee; border:1px dashed #becfc2; border-radius:10px; }
.itime-plan p { margin:7px 0 0; font-size:14px; }
.itime-forecast { padding-left:24px; border-left:1px solid #c4d4c8; min-width:255px; }
.itime-forecast>span { font-size:12px; color:#456053; }
.itime-forecast strong { font-size:25px; display:block; line-height:1.4; }
.itime-forecast .itime-note { font-size:11px; }
.itime-confirm-bar { display:flex; align-items:center; gap:20px; justify-content:space-between; padding:13px 18px; background:#faf6e9; border:1px solid #e5d8b0; border-radius:9px; }
.itime-confirm-bar .itime-note { margin:0; color:#68552c; }
.itime-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.itime-calendar-panel { padding:22px 0 0; overflow:hidden; }
.itime-calendar-panel .itime-panel-heading { padding:0 22px; }
.itime-calendar-panel h2 { text-transform:capitalize; }
.itime-calendar-scroll { overflow-x:auto; }
.itime-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); min-width:700px; }
.itime-weekday { padding:12px; border-bottom:1px solid #dce5e1; background:#f8faf8; color:#5a6e63; font-size:12px; font-weight:650; text-align:center; }
.itime-day { appearance:none; background:#fff; font:inherit; color:#264d3c; border:0; border-right:1px solid #e4ebe5; border-bottom:1px solid #e4ebe5; padding:11px 12px 12px; min-height:130px; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:4px; min-width:0; position:relative; }
.itime-day:hover:not(:disabled) { background:#f2f7f2; box-shadow:inset 0 0 0 1px #a9c3ad; }
.itime-day-top { display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:700; margin-bottom:5px; }
.itime-day-top>span+span { color:#387851; font-size:12px; }
.itime-day-top .itime-change-dot { color:#a6731d; }
.itime-day.itime-changed { box-shadow:inset 0 3px #ba9549; }
.itime-free, .itime-day-pad { background:#f7f8f5; }
.itime-free .itime-day-top { color:#955849; }
.itime-inactive { opacity:.5; cursor:default; background:#f6f7f5; }
.itime-confirmed { background:#f0f6ef; }
.itime-employer-free { background:#fbf2eb; }
.itime-employer-free .itime-day-top, .itime-employer-free .itime-kind { color:#925c49; }
.itime-day.itime-today .itime-day-top>span:first-child { background:#215a45; color:white; border-radius:50%; width:25px; height:25px; display:grid; place-items:center; margin:-3px 0; }
.itime-holiday { color:#8e5146; font-size:11px; line-height:1.35; margin-bottom:2px; }
.itime-kind { font-weight:750; font-size:17px; margin-top:1px; }
.itime-kind:not(.itime-kind-work) { font-size:12px; line-height:1.4; color:#557384; }
.itime-kind-flex { color:#976b2c !important; }
.itime-kind-off { color:#67786d !important; font-weight:400; }
.itime-clock, .itime-day-muted, .itime-day-state, .itime-day-note { font-size:11px; line-height:1.4; }
.itime-day-muted, .itime-day-state { color:#607266; }
.itime-day-state { margin-top:3px; font-size:10px; }
.itime-day-flex { color:#87621f; font-size:10px; line-height:1.4; font-weight:650; }
.itime-flex-preview { padding:10px 13px; background:#eef4ef; color:#244e3b; border-radius:7px; font-size:14px; font-weight:700; }
.itime-day-note { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#62755e; }
.itime-legend { display:flex; flex-wrap:wrap; gap:12px; font-size:11px; color:#617466; }
.itime-history ol { list-style:none; padding:0; margin:14px 0; }
.itime-history-badge { display:inline-block; padding:5px 9px; background:#f4f0e4; color:#765b28; border-radius:5px; font-size:11px; }
.itime-history-item { padding:14px 0; border-top:1px solid #e3eae5; }
.itime-history-title { display:flex; justify-content:space-between; gap:15px; font-size:12px; margin-bottom:7px; }
.itime-history-title>span { color:#64776a; font-size:11px; }
.itime-before-after { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:#425e4b; font-size:12px; line-height:1.5; }
.itime-before-after>span:first-child { color:#718072; }
.itime-history summary, .itime-explanation summary { font-size:12px; color:#395d46; cursor:pointer; font-weight:650; }
.itime-pattern-history { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:10px; }
.itime-explanation { padding:16px 22px; }
.itime-empty { padding:40px; text-align:center; max-width:800px; }
.itime-empty .itime-button { margin-top:20px; }
.itime-alert, .itime-form-error { padding:12px 16px; background:#fff1ed; border:1px solid #e6b9ab; border-radius:8px; color:#8c3c2d; font-size:13px; }
.itime-alert p, .itime-form-error p { margin:0 0 8px; }
.itime-save-status { margin:0; color:#3c6246; font-size:12px; }
.itime-dialog { width:min(700px,calc(100vw - 40px)); max-height:calc(100vh - 60px); box-sizing:border-box; padding:26px; border:1px solid #c4d7ca; border-radius:14px; color:#183f30; background:#fff; box-shadow:0 24px 100px #062c3040; font:inherit; overflow:auto; }
.itime-dialog::backdrop { background:#112c2d70; backdrop-filter:blur(3px); }
.itime-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.itime-close { background:transparent; border:0; cursor:pointer; color:#466553; font:inherit; font-size:24px; line-height:1; padding:0 5px; }
.itime-dialog>p { margin-bottom:20px; }
.itime-dialog form { display:grid; gap:17px; margin-top:16px; }
.itime-dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:7px; flex-wrap:wrap; }
.itime-clocks { display:grid; grid-template-columns:1fr 1fr 95px auto; align-items:end; gap:10px; }
.itime-net { color:#24573d; font-size:13px; font-weight:700; padding:10px 0; min-width:75px; text-align:right; }
.itime-checkbox { display:flex; align-items:center; gap:9px; font-size:13px; color:#345b43; line-height:1.5; }
.itime-checkbox input { accent-color:#246647; width:17px; height:17px; flex-shrink:0; }
.itime-pattern-row { display:grid; grid-template-columns:110px 1fr; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #e4ebe5; }
.itime-pattern-row .itime-clocks { grid-template-columns:1fr 1fr 75px 70px; }
.itime-pattern-row .itime-net { min-width:0; }
.itime-weekly-total { padding:12px 14px; background:#edf4ed; border-radius:7px; font-size:13px; line-height:1.5; }
.itime-pattern-row .itime-checkbox { font-size:12px; }
.itime-pattern-row input:not([type=checkbox]) { width:100%; }
.itime-confirm-list { list-style:none; margin:0; padding:0; max-height:250px; overflow:auto; }
.itime-confirm-list li { display:flex; justify-content:space-between; gap:15px; padding:10px 0; border-bottom:1px solid #e4ebe5; font-size:12px; }
@media(max-width:1150px) {
  .itime-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .itime-toolbar { gap:16px; }
  .itime-plan { flex-wrap:wrap; }
  .itime-forecast { min-width:0; }
}
@media(max-width:650px) {
  .itime-cards { gap:8px; }
  .itime-card { padding:13px; }
  .itime-card strong { font-size:25px; }
  .itime-panel-heading, .itime-confirm-bar { align-items:flex-start; flex-direction:column; }
  .itime-forecast { padding:12px 0 0; border-left:0; border-top:1px solid #c4d4c8; width:100%; }
  .itime-dialog { padding:20px; }
  .itime-pattern-row { grid-template-columns:1fr; }
  .itime-clocks, .itime-pattern-row .itime-clocks { grid-template-columns:1fr 1fr 75px; }
  .itime-net { grid-column:1 / -1; padding:0; }
  .itime-history-title { flex-direction:column; gap:4px; }
}
