:root {
  --ink: #17231f; --ink-2: #4c5a55; --ink-3: #75827d; --line: #e0e2db; --line-2: #eeefe9;
  --bg: #f7f5f0; --card: #ffffff; --side: #1d1a14; --side-2: #322d22; --side-ink: #e6dfcf;
  --accent: #8a6914; --accent-dark: #6b510f; --accent-soft: #f6eed9; --gold: #a7863f; /* emmagroup.in gold */
  --good: #1a7a4c; --good-bg: #e2f4ea; --warn: #92600a; --warn-bg: #fbf0d9;
  --bad: #b3322b; --bad-bg: #fbe7e5; --info: #2a5f9e; --info-bg: #e5eefa; --mute-bg: #eeeee9;
  --radius: 10px; --shadow: 0 1px 2px rgba(20, 40, 35, .06), 0 2px 10px rgba(20, 40, 35, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; } h2 { font-size: 16px; font-weight: 650; } h3 { font-size: 14px; font-weight: 650; }
a { color: var(--accent-dark); }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.num { font-variant-numeric: tabular-nums; } .bad-text { color: var(--bad); font-weight: 600; }
.center-note { padding: 60px; text-align: center; color: var(--ink-3); }

/* layout */
.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 10px; overflow-y: auto; }
.brand { padding: 0 4px 14px; text-align: center; }
/* The logo is a square file with wide top and bottom margins: 3:2 cover trims only that white space. */
.brand img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; border-radius: 8px; }
.auth-logo { display: block; width: 210px; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 auto 14px; mix-blend-mode: multiply; }
.nav a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 7px; color: inherit; text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.on { background: var(--accent); color: #fff; font-weight: 600; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--side-2); font-size: 12.5px; }
.side-foot b { color: #fff; display: block; }
.side-foot button { background: none; border: 0; color: inherit; padding: 4px 0; margin-right: 12px; cursor: pointer; text-decoration: underline; font: inherit; }
.main { padding: 14px 22px 24px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.page-head .sub { color: var(--ink-3); margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.menu-btn { display: none; }
.page-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.notice.unread { border-left: 4px solid var(--accent-dark); }
.notice-head { display: flex; align-items: center; gap: 8px; }
.notice-head h2 { margin: 0; }
.notice-body { white-space: pre-line; margin: 10px 0; line-height: 1.5; }
.notice-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice-tools { margin-left: auto; }
.card > h2 { margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.dash-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 16px; align-items: start; } /* Same columns as .tile-groups.three, so each card sits under its title. */
.dash-grid .bar-row { grid-template-columns: 96px 1fr 38px; }
.grid > .card { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow); }
a.tile:hover { border-color: var(--accent); }
.tile-groups { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 16px; margin-bottom: 12px; }
.tile-groups.one { grid-template-columns: minmax(0, 1fr); }
.tile-groups.three { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); }
.tile-groups.three .tiles { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.tile-groups.three .tile { padding: 10px; }
.tile-btn { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.tile-btn:hover { border-color: var(--accent); }
.sync-line { margin-bottom: 12px; }
.lead-note { min-width: 220px; max-width: 360px; white-space: pre-line; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click.on td { background: var(--line-2); }
.tile-groups section { --group: var(--good); }
.tile-groups section:nth-child(2) { --group: var(--info); }
.tile-groups section:nth-child(3) { --group: var(--accent); }
.tile-groups h3 { font-size: 18px; font-weight: 700; color: #fff; background: var(--group); border-radius: var(--radius); padding: 7px 14px; margin-bottom: 8px; }
.tile-groups .tile { border-top: 3px solid var(--group); }
.tile-groups a.tile:hover { border-color: var(--group); }
.tile-groups .tiles { margin-bottom: 0; }
.tile .v { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile .k { color: var(--ink-2); font-size: 12.5px; }
.empty { padding: 22px; text-align: center; color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 7px; font: inherit; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.danger { color: var(--bad); border-color: #e7bdb9; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 3px 9px; font-size: 12.5px; }
.btn.big { padding: 13px 30px; font-size: 16px; }
.btn.punch-out { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--accent-dark); font: inherit; cursor: pointer; text-decoration: underline; text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f > label, .f > .lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.req { color: var(--bad); }
.f .hint { font-size: 12px; color: var(--ink-3); }
input, select, textarea { font: inherit; color: inherit; padding: 7px 9px; border: 1px solid #cdd1c8; border-radius: 6px; background: #fff; width: 100%; min-width: 0; }
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; min-height: 70px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: end; }
.filters input, .filters select { width: auto; max-width: 240px; }
.form-section { font-weight: 650; grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.form-section.first { border: 0; padding-top: 0; margin-top: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; color: var(--ink-2); font-weight: 600; padding: 7px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafaf7; }
td { padding: 8px 9px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: #f8f8f4; }
th.right, td.right { text-align: right; }

/* chips */
.chip { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--mute-bg); color: var(--ink-2); }
.chip.good { background: var(--good-bg); color: var(--good); } .chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.info { background: var(--info-bg); color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 8px 13px; font: inherit; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--accent-dark); border-color: var(--accent); font-weight: 650; }

/* punch card */
.punch { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.clock { font-size: 40px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.5px; }
.punch-state { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.punch-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.alert { background: var(--warn-bg); color: #6d4806; border-radius: 7px; padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; }
.alert.info { background: var(--info-bg); color: #1e4678; }
.alert.bad { background: var(--bad-bg); color: #8a241e; }
.alert.good { background: var(--good-bg); color: #145c39; }
.progress { height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--good); }
tr.done-row td:nth-child(2) { color: var(--ink-3); }
/* Sales performance */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid2 > .card { margin-bottom: 0; }
.good-text { color: var(--good); font-weight: 600; } .bad-text { color: var(--bad); font-weight: 600; } .warn-text { color: var(--warn); font-weight: 600; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; text-align: center; }
.month-bar { height: 110px; display: flex; align-items: flex-end; justify-content: center; background: var(--line-2); border-radius: 4px; margin-bottom: 4px; }
.month-bar span { display: block; width: 60%; background: var(--gold); border-radius: 4px 4px 0 0; min-height: 2px; }
/* Letters on the company letterhead */
.letter { max-width: 780px; padding: 36px 44px; font-size: 14.5px; line-height: 1.6; }
.letter-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--gold); padding-bottom: 12px; margin-bottom: 18px; }
.letter-head img { width: 92px; aspect-ratio: 3 / 2; object-fit: cover; }
.letter-co { font-size: 19px; font-weight: 700; color: var(--accent-dark); }
.letter-meta { display: flex; justify-content: space-between; margin-bottom: 14px; }
.letter-to { margin-bottom: 14px; }
.letter-subject { font-weight: 650; text-decoration: underline; }
.letter-body { white-space: pre-wrap; text-align: justify; }
.letter-sign { margin-top: 34px; }
.letter-space { height: 54px; }
.letter-accept { margin-top: 30px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media (max-width: 600px) { .letter { padding: 18px 16px; font-size: 14px; } .letter-meta { flex-direction: column; } .months { gap: 3px; } }
@media print { .letter { box-shadow: none; border: 0; max-width: none; padding: 0; } #page:has(.letter) .page-head { display: none; } }
.session-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }

/* bars: one series, values labelled directly */
.bar-row { display: grid; grid-template-columns: 128px 1fr 40px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.bar-track { height: 10px; background: var(--line-2); border-radius: 0 4px 4px 0; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
a.bar-link { color: inherit; text-decoration: none; border-radius: 4px; }
a.bar-link:hover span:first-child, a.bar-link:focus-visible span:first-child { text-decoration: underline; }
a.bar-link:hover { background: var(--line-2); }

/* posting desk */
.portal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.portal-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.portal-card.live { border-color: #9fd5ba; }
.portal-card h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 15px; }
.portal-card pre, .copy-text { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.45 "Segoe UI", system-ui, sans-serif; background: #fafaf7; border: 1px solid var(--line-2); border-radius: 6px; padding: 9px; margin: 0; max-height: 240px; overflow: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; color: var(--ink-2); }
.copy-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line-2); align-items: center; font-size: 13px; }
.copy-row .value { overflow-wrap: anywhere; }
.copy-row:last-child { border: 0; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 5px 10px; font-size: 13.5px; }
.dl dt { color: var(--ink-3); } .dl dd { margin: 0; overflow-wrap: anywhere; }
.pre-line { white-space: pre-line; }

/* kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.column { background: #ecebe4; border-radius: 9px; padding: 8px; min-height: 160px; }
.column h3 { display: flex; justify-content: space-between; padding: 2px 4px 8px; font-size: 13px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; margin-bottom: 7px; font-size: 12.5px; }
.kcard b { display: block; font-size: 13.5px; }
.kcard select { padding: 2px 4px; font-size: 12px; margin-top: 5px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.timeline .when { color: var(--ink-3); font-size: 12px; }

/* attendance calendar + muster */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cal .day { min-height: 74px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 6px; background: #fff; font-size: 12px; overflow: hidden; }
.cal .day.blank { visibility: hidden; }
.cal .day .d { font-weight: 650; }
.st-P, .st-WW, .st-IN { background: var(--good-bg) !important; } .st-L, .st-HD, .st-SH, .st-MP, .st-HL { background: var(--warn-bg) !important; }
.st-A, .st-NM { background: var(--bad-bg) !important; } .st-LV, .st-LW { background: var(--info-bg) !important; } .st-WO, .st-H { background: var(--mute-bg) !important; }
.muster { font-size: 12px; }
.muster th, .muster td { padding: 4px 3px; text-align: center; border: 1px solid var(--line-2); }
.muster th.name, .muster td.name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fff; padding: 4px 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend i { font-style: normal; font-weight: 700; padding: 0 5px; border-radius: 3px; margin-right: 3px; }

/* modal, toast */
.overlay { position: fixed; inset: 0; background: rgba(15, 30, 25, .42); display: flex; justify-content: center; align-items: flex-start; padding: 40px 14px; overflow-y: auto; z-index: 50; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 12px 44px rgba(0, 0, 0, .24); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.modal-head button { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; max-width: 380px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--bad); }
.secret { font: 600 17px Consolas, monospace; background: var(--accent-soft); padding: 8px 12px; border-radius: 6px; margin: 4px 0 10px; }

/* auth pages */
.auth-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 20px; background: #eeeeec url("/building.png") center bottom / cover no-repeat fixed; }
.auth-card { background: #fff; padding: 28px; border-radius: 14px; width: 100%; max-width: 390px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { margin-bottom: 4px; }
.auth-card form { display: grid; gap: 12px; margin-top: 16px; }

@media (max-width: 1050px) { .g2, .g3, .g-side, .dash-grid, .tile-groups, .tile-groups.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 780px) {
  .shell { display: block; }
  .side { position: fixed; z-index: 40; width: 230px; left: -240px; transition: left .15s; }
  .side.open { left: 0; }
  .btn.menu-btn { display: inline-flex; }
  .main { padding: 14px 16px 50px; }
  .form-grid, .form-grid.three, .punch-form { grid-template-columns: minmax(0, 1fr); }
  .punch { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .copy-row { grid-template-columns: minmax(0, 1fr) auto; } .copy-row .label { grid-column: 1 / -1; color: var(--ink-3); }
  .cal .day { min-height: 56px; padding: 3px; font-size: 11px; }
  .portal-cards { grid-template-columns: minmax(0, 1fr); }
}
/* Home welcome banner (all screens) */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d1a14 0%, #352d1f 55%, #6b510f 100%); color: #f3ead6;
  border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(29, 26, 20, .16); }
.hero::after { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 95, .5), transparent 70%); pointer-events: none; }
.hero h1 { color: #fff; }
.hero .sub { color: #dccca4; margin-top: 4px; font-size: 13px; }

/* Phone app look: top bar, bottom tabs, softer cards, thumb-sized buttons */
.appbar, .tabbar, .scrim { display: none; }
@media (max-width: 780px) {
  body { background: #f2efe8; }
  .page-nav { display: none; }
  .appbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; min-height: 56px; padding: env(safe-area-inset-top) 12px 0;
    background: linear-gradient(90deg, #1d1a14, #2b251a); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
  .appbar img { height: 32px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #fff; }
  .appbar-title { flex: 1; min-width: 0; font-weight: 650; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .icon-btn { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -6px; background: none; border: 0; border-radius: 10px; color: var(--side-ink); cursor: pointer; }
  .icon-btn:active { background: rgba(255, 255, 255, .1); }
  .icon-btn svg, .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1d1a14; font-weight: 700; font-size: 13px; text-decoration: none; flex: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(0, 0, 0, .07); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; background: none; border: 0; font: inherit; font-size: 11px;
    color: var(--ink-3); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar .ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background .15s; }
  .tabbar a.on { color: var(--accent-dark); font-weight: 650; }
  .tabbar a.on .ico { background: var(--accent-soft); }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .42); }
  .side { width: 280px; left: -300px; box-shadow: 6px 0 24px rgba(0, 0, 0, .25); padding-top: calc(16px + env(safe-area-inset-top)); }
  .side .brand { display: none; }
  .nav a { padding: 12px 14px; font-size: 15px; border-radius: 10px; }
  .main { padding: 14px 14px calc(86px + env(safe-area-inset-bottom)); }
  h1 { font-size: 20px; }
  .card { border-radius: 16px; border-color: transparent; padding: 16px; box-shadow: 0 1px 3px rgba(20, 40, 35, .06), 0 6px 18px rgba(20, 40, 35, .06); }
  input, select, textarea { font-size: 16px; padding: 10px 12px; border-radius: 10px; } /* 16px stops phones zooming in on tap */
  .btn { padding: 9px 14px; border-radius: 10px; }
  .btn.sm { padding: 6px 11px; border-radius: 8px; }
  .btn.big { width: 100%; padding: 15px; font-size: 17px; border-radius: 14px; border: 0; letter-spacing: .3px; }
  .btn.big.primary { background: linear-gradient(135deg, #b8964a, #8a6914); box-shadow: 0 6px 16px rgba(138, 105, 20, .35); }
  .btn.big.punch-out { background: linear-gradient(135deg, #cf4a40, #a52a23); box-shadow: 0 6px 16px rgba(179, 50, 43, .3); }
  .punch-state { font-size: 15px; }
  .punch > div:first-child { background: var(--accent-soft); border-radius: 12px; padding: 6px 14px 12px; }
  .tabs { margin-left: -14px; margin-right: -14px; padding: 0 10px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .modal { border-radius: 18px; }
  #toasts { left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); align-items: center; }
  .toast { border-radius: 12px; }
}
@media print { .side, .actions, .filters, .tabs, .menu-btn, .page-nav, .appbar, .tabbar, .scrim { display: none !important; } .shell { display: block; } .card { box-shadow: none; } .hero { background: none; color: inherit; box-shadow: none; padding: 0; } .hero h1 { color: inherit; } }

/* Home: birthdays, work anniversaries and festivals */
.celebrate { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.muster sup { font-size: 9px; margin-left: 1px; opacity: .8; }

/* Badges */
.badge-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.badge-legend b { margin-left: 6px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 8px; }
.badge-win { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.badge-icon { font-size: 28px; line-height: 1; }
.badge-icon.sm { font-size: 18px; }

/* My Attendance: a tile picks out its days in the calendar */
.tile.on { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.cal .day.dim { opacity: .35; }
.cal .day.pick { outline: 2px solid var(--accent); outline-offset: -2px; }
.pick-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }

/* Payslip */
.payslip { max-width: 820px; }
.slip-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 12px; }
.slip-dl { grid-template-columns: repeat(2, minmax(120px, auto) 1fr); }
.slip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
table.slip { width: 100%; border-collapse: collapse; }
table.slip th, table.slip td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.slip .right { text-align: right; }
.slip-net { margin-top: 14px; padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius); font-size: 16px; }
@media (max-width: 640px) { .slip-cols { grid-template-columns: 1fr; } .slip-dl { grid-template-columns: auto 1fr; } }
@media print { .payslip { box-shadow: none; border: 0; max-width: none; } .alert.info { display: none; } }
/* Print and Save as PDF: no browser date/title/URL/page-number lines. A zero page margin removes them,
   so the page's own padding gives the white border instead (repeated on every printed page). */
@page { margin: 0; }
@media print {
  html, body { margin: 0; background: #fff; }
  .main { padding: 14mm 14mm !important; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}

/* Performance */
.appraisal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.appraisal h3 { margin: 16px 0 6px; font-size: 14px; }
.progress { display: inline-block; width: 70px; height: 6px; background: var(--line-2); border-radius: 4px; margin-right: 6px; vertical-align: middle; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--good); }
tr.sel td { background: var(--accent-soft); }

/* Sales targets */
.progress.good i { background: var(--good); }
.progress.warn i { background: var(--warn); }
.progress.bad i { background: var(--bad); }
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 8px; }

/* Home: Alerts (HR) or Badges (staff) on the left, Celebrations as a compact box on the right */
.home-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 16px; align-items: start; }
.home-row > div:empty { display: none; }
.home-row > div > .card { margin-bottom: 16px; }
.home-row > #celebrate { grid-column: 2; }
.home-row:has(> #celebrate:empty) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .home-row { grid-template-columns: minmax(0, 1fr); } .home-row > #celebrate { grid-column: 1; } }

/* Notice board: attached images and files */
.leads-home h3 a { color: inherit; text-decoration: none; display: block; }
.leads-home { margin-bottom: 16px; }
/* HR / Admin alerts: "Noted" hides one until tomorrow */
.alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.alerts-head h2 { margin: 0; }
.alerts-head > span { display: flex; align-items: center; gap: 10px; }
.alert-noted { margin-left: 6px; white-space: nowrap; color: var(--ink-2); }
.alerts-quiet { padding: 4px 4px 12px; }
/* This month's attendance on Home: a slim row of small tiles above the sales tiles */
.tiles.mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tiles.mini .tile { padding: 7px 10px; box-shadow: none; }
.tiles.mini .tile .v { font-size: 18px; line-height: 1.2; }
.tiles.mini .tile .v .chip { font-size: 12px; padding: 1px 7px; }
.tiles.mini .tile .k { font-size: 11.5px; line-height: 1.25; }
@media (max-width: 780px) { .tiles.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .tiles.mini .tile { padding: 6px 8px; } .tiles.mini .tile .k { font-size: 11px; } }
@media (max-width: 780px) { .leads-home .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .leads-home .tile { padding: 10px 12px; } }
/* Home: unread notices as short lines */
.home-notices { padding: 12px 14px; }
.hn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.hn-head a { margin-left: auto; }
.hn-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 2px; border-top: 1px solid var(--line-2); }
.hn { flex: 1; min-width: 0; }
.hn summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.hn summary::-webkit-details-marker { display: none; }
.hn-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.hn-icon { display: grid; place-items: center; background: var(--accent-soft); font-size: 20px; }
.hn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hn-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-open { color: var(--accent-dark); font-weight: 600; flex: none; }
.hn[open] .hn-line, .hn[open] .hn-open { display: none; }
.hn-full { margin: 8px 0 6px; }
.hn-full .notice-body { margin: 6px 0 8px; }
.hn + .btn { margin-top: 8px; flex: none; }
.notice-images { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.notice-images figure { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.notice-images img { display: block; max-width: min(100%, 360px); max-height: 260px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fafaf7; }
.notice-files { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }

/* Employee photos (6 Nov 2026) */
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 13px; border: 1px solid var(--line); }
.avatar.big { width: 120px; height: 120px; font-size: 36px; }
.who { display: flex; align-items: center; gap: 10px; }
.profile-photo { display: flex; justify-content: center; margin-bottom: 14px; }
.photo-adjust { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 8px; }
.photo-adjust canvas { width: 260px; height: 260px; border-radius: 8px; border: 1px solid var(--line); cursor: grab; touch-action: none; background: #fff; }
.photo-adjust canvas:active { cursor: grabbing; }
.photo-tools { display: flex; flex-direction: column; gap: 10px; min-width: 200px; flex: 1; }
.photo-tools input[type=range] { width: 100%; }
.photo-adjust[hidden] { display: none; }

/* Employee education, experience and documents (6 Nov 2026) */
.records { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 6px; }
.rec-head h3 { margin: 0; font-size: 15px; }
.rec-table { width: 100%; border-collapse: collapse; }
.rec-table td { padding: 7px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }

/* group chat (10 Nov 2026) */
/* round chat button, bottom-right of every page, and the panel it opens */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .15s, background .15s; }
.chat-fab:hover { background: var(--accent-dark); transform: scale(1.05); }
.chat-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab.open { background: var(--accent-dark); }
.chat-fab-badge { position: absolute; top: -3px; right: -3px; background: #d1453b; color: #fff; border: 2px solid #fff; border-radius: 12px; min-width: 22px; padding: 0 5px;
  font-size: 11.5px; font-weight: 700; line-height: 18px; text-align: center; }
.chat-fab-badge[hidden] { display: none; }
.chat-panel { position: fixed; right: 22px; bottom: 92px; z-index: 44; width: 390px; max-width: calc(100vw - 32px); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(0, 0, 0, .22); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--side); color: #fff; }
.chat-head b { font-size: 15px; }
.chat-head .muted { color: var(--side-ink); opacity: .8; }
.icon-close { background: none; border: 0; color: inherit; font-size: 18px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.icon-close:hover { background: var(--side-2); }
.chat-panel .chat-compose { padding-bottom: 10px; }
.chat-attach { flex: none; width: 40px; height: 42px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.chat-attach:hover { background: var(--line-2); color: var(--accent-dark); }
.chat-attach svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chat-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chat-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; border-top: 1px solid var(--line); background: var(--card); }
.chat-pending[hidden] { display: none; }
.chat-pending + .chat-compose { border-top: 0; }
.chat-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; background: var(--line-2); border-radius: 14px; padding: 3px 6px 3px 10px; font-size: 12.5px; }
.chat-chip .link { text-decoration: none; color: var(--ink-3); padding: 0 4px; }
.chat-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 3px 0 5px; width: 250px; max-width: 100%; }
.chat-photos.one { grid-template-columns: 1fr; }
.chat-photos a { display: block; border-radius: 8px; overflow: hidden; background: var(--line-2); }
.chat-photos a { aspect-ratio: 1; }
.chat-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-photos.one a { aspect-ratio: auto; }
.chat-photos.one img { aspect-ratio: auto; max-height: 300px; object-fit: contain; background: var(--line-2); }
.chat-file { display: flex; align-items: center; gap: 9px; margin: 3px 0 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .6);
  color: inherit; text-decoration: none; max-width: 260px; }
.chat-file:hover { border-color: var(--accent); }
.chat-file-ico { flex: none; width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.chat-file-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
.chat-viewonly { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--warn-bg); color: var(--warn); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.chat-older { text-align: center; }
.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--mute-bg); color: var(--ink-2); }
.chat-avatar.admin { background: var(--accent); color: #fff; }
.chat-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 7px 11px 5px; min-width: 120px; box-shadow: var(--shadow); }
.chat-msg.mine .chat-bubble { background: var(--accent-soft); border-color: #e8d9ad; border-radius: 12px 12px 4px 12px; }
.chat-msg.fresh .chat-bubble { border-left: 3px solid var(--accent); }
.chat-bubble.deleted { background: transparent; box-shadow: none; font-style: italic; }
.chat-author { font-weight: 650; font-size: 12.5px; color: var(--accent-dark); margin-bottom: 2px; }
.chat-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.chat-quote { border-left: 3px solid var(--gold); background: rgba(0, 0, 0, .04); border-radius: 4px; padding: 4px 8px; margin: 2px 0 5px; font-size: 12.5px; display: flex; flex-direction: column; }
.chat-quote span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chat-meta { display: flex; gap: 10px; justify-content: flex-end; align-items: center; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.chat-meta .link { color: var(--ink-3); text-decoration: none; }
.chat-meta .link:hover { color: var(--accent-dark); text-decoration: underline; }
.chat-seen { margin-top: 4px; color: var(--ink-2); }
.chat-seen summary { cursor: pointer; color: var(--ink-3); }
.chat-seen div { margin-top: 3px; }
.chat-reply { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 14px; border-top: 1px solid var(--line); background: var(--accent-soft); font-size: 12.5px; }
.chat-reply[hidden] { display: none; }
.chat-reply div { display: flex; flex-direction: column; min-width: 0; }
.chat-reply span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-compose { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.chat-compose textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; min-height: 42px; max-height: 140px; }
.chat-msg { max-width: 86%; }
@media (max-width: 780px) {
  /* above the phone's bottom tab bar; the open chat fills the screen */
  .chat-fab { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .chat-panel { inset: 0; width: auto; max-width: none; height: auto; border-radius: 0; border: 0; z-index: 50; }
  .chat-panel:not([hidden]) ~ .chat-fab { display: none; }
  .chat-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .chat-panel .chat-compose { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-msg { max-width: 92%; }
}
@media (min-width: 781px) { .main { padding-bottom: 90px; } } /* the last row of a page can scroll clear of the chat button */
@media print { .chat-dock { display: none; } }

/* ---------- Home stat cards, Keka-style trial (10 Nov 2026) ---------- */
.kgroups { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
.kgroups.one { grid-template-columns: minmax(0, 1fr); }
.kgroup { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(20, 40, 35, .05), 0 4px 16px rgba(20, 40, 35, .05); padding: 14px 16px; }
.khead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.khead h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.khead a { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.kstats { display: grid; gap: 10px; }
.kstats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kstat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; color: inherit; background: #fcfcfa; }
.kstat:hover { border-color: var(--accent); background: #fff; }
.kicon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.kicon.good { background: var(--good-bg); color: var(--good); } .kicon.info { background: var(--info-bg); color: var(--info); }
.kicon.warn { background: #fdeedd; color: #b4600c; } .kicon.bad { background: var(--bad-bg); color: var(--bad); }
.kicon.purple { background: #efe9fb; color: #6941c6; } .kicon.mute { background: var(--mute-bg); color: var(--ink-3); }
.kbody { display: flex; flex-direction: column; min-width: 0; }
.kk { font-size: 12.5px; color: var(--ink-3); line-height: 1.25; }
.kv { font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kchip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kchip.good { background: var(--good-bg); color: var(--good); } .kchip.warn { background: var(--warn-bg); color: var(--warn); }
.kchip.bad { background: var(--bad-bg); color: var(--bad); } .kchip.mute { background: var(--mute-bg); color: var(--ink-2); }
.ktrack { margin-bottom: 16px; }
.ksteps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ksteps li { position: relative; }
.ksteps li + li::before { content: ""; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line); }
.ksteps li.ok + li.ok::before { background: var(--good); }
.ksteps a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; text-decoration: none; color: inherit; padding: 0 4px; }
.kdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 4px; }
.ok .kdot { background: var(--good); } .todo .kdot { background: #d98a1c; }
.kt { font-size: 13px; font-weight: 600; color: var(--ink); }
.ks { font-size: 12px; } .ok .ks { color: var(--good); } .todo .ks { color: #b4600c; font-weight: 600; }
@media (max-width: 1050px) { .kgroups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 780px) {
  .ksteps { grid-auto-flow: row; gap: 8px; }
  .ksteps li + li::before { display: none; }
  .ksteps a { flex-direction: row; text-align: left; gap: 10px; }
  .kdot { margin: 0; flex: none; } .ks { margin-left: auto; }
  .kstats, .kstats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kstat { gap: 8px; padding: 8px; }
  .kicon { width: 32px; height: 32px; border-radius: 8px; } .kicon svg { width: 17px; height: 17px; }
  .kk { font-size: 11.5px; } .kv { font-size: 19px; gap: 5px; } .kchip { font-size: 10.5px; padding: 1px 6px; }
}

/* ---------- Compact top of Home (10 Nov 2026): greeting on one line, slimmer alerts and celebrations ---------- */
.hero { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 12px 20px; margin-bottom: 12px; }
.hero h1 { font-size: 22px; }
.hero .sub { margin-top: 0; }
.home-row { gap: 12px; }
.home-row > div > .card, .alerts-card { padding: 10px 14px; margin-bottom: 12px; }
.alerts-head { margin-bottom: 4px; }
.alerts-head h2, #celebrate .card > h2 { font-size: 15px; margin-bottom: 4px; }
.alerts-head .btn.sm { padding: 2px 10px; font-size: 12.5px; }
.alerts-card ul { gap: 2px !important; font-size: 13.5px; }
.alerts-card details, .alerts-card summary { display: inline; }
.alerts-card summary { cursor: pointer; }
.alerts-card details[open] > ul { display: block; }
.alert-noted { font-size: 12.5px; }
.celebrate { gap: 2px; font-size: 13.5px; }
.alerts-quiet { padding: 0 4px 8px; }
.alerts-card summary::before { content: "\25B8  "; } .alerts-card details[open] > summary::before { content: "\25BE  "; }

/* ---------- Slim Today's Checklist (10 Nov 2026): title and steps on one row, each tick beside its words ---------- */
@media (min-width: 781px) {
  .ktrack { display: flex; align-items: center; gap: 18px; padding: 9px 16px; margin-bottom: 12px; }
  .ktrack .khead { margin: 0; flex: none; }
  .ktrack .khead h3 { font-size: 15px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .ktrack .ksteps { flex: 1; }
  .ksteps li + li::before { display: none; }
  .ksteps li + li { border-left: 1px solid var(--line-2); }
  .ksteps a { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; justify-content: center; text-align: left; gap: 0 8px; padding: 2px 6px; }
  .ksteps .kdot { grid-row: 1 / 3; width: 22px; height: 22px; font-size: 12px; margin: 0; }
  .ksteps .kt { font-size: 12.5px; line-height: 1.25; }
  .ksteps .ks { font-size: 11.5px; line-height: 1.25; }
}

/* ---------- WhatsApp-style compact chat bubbles (10 Nov 2026) ---------- */
.chat-msg { gap: 6px; }
.chat-avatar { width: 26px; height: 26px; font-size: 10.5px; }
.chat-bubble { position: relative; min-width: 0; padding: 5px 9px 4px; border-radius: 10px 10px 10px 3px; font-size: 14px; }
.chat-msg.mine .chat-bubble { border-radius: 10px 10px 3px 10px; }
.chat-bubble:focus { outline: none; }
.chat-author { font-size: 12px; margin-bottom: 1px; }
.chat-admin { font-size: 10.5px; font-weight: 600; color: var(--info); background: var(--info-bg); border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.chat-text { line-height: 1.35; }
/* the time sits at the end of the last line, like WhatsApp; it moves to its own line only when the text fills the width */
.chat-meta { float: right; display: inline-flex; gap: 5px; align-items: center; margin: 5px 0 -3px 10px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; line-height: 1; }
.chat-text.only-meta { overflow: hidden; }
.chat-ticks { font: inherit; font-size: 10.5px; border: 0; background: none; padding: 0; color: var(--ink-3); cursor: pointer; letter-spacing: -1px; }
.chat-ticks.all { color: #2a8bd6; }
.chat-ticks:hover { text-decoration: underline; }
.chat-seen { clear: both; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 12px; }
.chat-seen[hidden] { display: none; }
/* Reply and Delete: a small pill on the bubble's top edge, shown on hover or tap */
.chat-acts { display: none; position: absolute; top: -11px; right: 6px; gap: 8px; padding: 1px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); z-index: 1; }
.chat-msg:not(.mine) .chat-acts { right: auto; left: 6px; }
.chat-bubble:hover .chat-acts, .chat-bubble:focus-within .chat-acts { display: inline-flex; }
.chat-acts .link { font-size: 11.5px; color: var(--ink-2); text-decoration: none; padding: 0; }
.chat-acts .link:hover { color: var(--accent-dark); text-decoration: underline; }
.chat-quote { margin: 1px 0 4px; padding: 3px 7px; font-size: 12px; }
.chat-photos, .chat-file { margin: 2px 0 3px; }

/* ---------- Daily Tasks (13 Nov 2026) ---------- */
.tlog-head { padding: 14px 16px; }
.tlog-sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.tlog-sum .right { text-align: right; }
.tlog-big { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.tlog-big .muted { font-size: 15px; font-weight: 500; }
.warn-text { color: var(--warn); font-weight: 600; margin-top: 4px; }
.tlog-bar { position: relative; height: 10px; background: var(--line-2); border-radius: 0 4px 4px 0; margin-top: 4px; }
.tlog-fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; background: var(--bad); }
.tlog-bar.warn .tlog-fill { background: #c98a1b; } .tlog-bar.good .tlog-fill { background: var(--good); }
.tlog-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); border-radius: 1px; }
.tlog-add { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 12px 16px; }
.tlog-add .f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.tlog-add .f.grow { flex: 1 1 320px; }
.tlog-add .btn { height: 38px; }
.tlog-counts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; font-weight: 600; }
.tlog-cell { min-width: 150px; }
.tlog-cell .tlog-bar { height: 6px; }
@media (max-width: 600px) { .tlog-add .f { flex: 1 1 40%; } .tlog-add .btn { flex: 1 1 100%; } .tlog-big { font-size: 22px; } }

/* Sales Performance: numbers that open the records behind them (14 Nov 2026) */
a.count-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
a.count-link:hover { color: var(--accent, #9a7b2f); text-decoration-style: solid; }

/* Week timeline in Attendance and week strip on Home, after Zoho People (Basant, 17 Nov 2026). */
.wk-nav > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 150px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.wk-row.wk-head { border-top: 0; padding: 0 0 4px; }
.wk-row.today { background: var(--accent-soft); border-radius: 8px; }
.wk-row.today .wk-day { padding-left: 6px; }
.wk-row.future { opacity: .55; }
.wk-day { font-size: 13.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wk-axis { position: relative; height: 16px; font-size: 11px; color: var(--ink-2); }
.wk-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.wk-track { position: relative; height: 26px; background: var(--line-2, #f3f1ec); border-radius: 6px; }
.wk-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .06); }
.wk-shift { position: absolute; top: 3px; bottom: 3px; background: rgba(138, 105, 20, .12); border: 1px dashed rgba(138, 105, 20, .35); border-radius: 5px; }
.wk-seg { position: absolute; top: 6px; bottom: 6px; background: var(--good); border-radius: 5px; min-width: 4px; }
.wk-seg.open { background: repeating-linear-gradient(45deg, var(--good), var(--good) 6px, #4fae7e 6px, #4fae7e 12px); }
.wk-seg.missed { background: var(--bad); }
.wk-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; padding: 1px 10px; border-radius: 10px; white-space: nowrap; }
.wk-hrs { text-align: right; font-size: 14px; }
.wk-hrs .small { color: var(--ink-2); margin-top: 2px; }
.wk-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--line); }
.wk-sum > div { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; border-left: 3px solid var(--accent); }
.wk-sum b { font-size: 16px; }
@media (max-width: 780px) {
  .wk-row { grid-template-columns: 54px minmax(0, 1fr) 70px; gap: 6px; }
  .wk-hrs .small, .wk-axis span:nth-child(even) { display: none; }
  .wk-note { font-size: 10.5px; padding: 0 6px; }
}
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.week-strip .wd { border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 8px; background: var(--card); min-height: 66px; }
.week-strip .wd.st-none { background: var(--card) !important; }
.week-strip .wd.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.week-strip .wd.future { opacity: .6; }
.week-strip:hover .wd { border-color: var(--accent); }
.wd-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.wd-top b { color: var(--ink); font-size: 14px; }
.wd-st { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.wd-hr { font-size: 12px; color: var(--ink-2); }
@media (max-width: 780px) { .week-strip { gap: 3px; } .week-strip .wd { padding: 5px 4px; min-height: 58px; } .wd-st { font-size: 10.5px; } .wd-hr { font-size: 10.5px; } .wd-top { font-size: 10.5px; } }
.punch-clock { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.punch-clock span { font: 700 30px/1.1 Consolas, "Courier New", monospace; letter-spacing: 1px; color: var(--ink); background: var(--accent-soft); padding: 4px 12px; border-radius: 8px; }
.punch-clock.running span { color: #145c39; background: var(--good-bg); }
.punch-clock small { color: var(--ink-2); font-size: 12.5px; }
/* My Space and Organization, like Zoho People (Basant, 18 Nov 2026) */
.ms-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); }
.ms-photo.big { width: 84px; height: 84px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.ms-photo.sm { width: 32px; height: 32px; }
.ms-initials { display: grid; place-items: center; color: var(--accent-dark); font-weight: 700; font-size: 15px; }
.ms-photo.big.ms-initials { font-size: 28px; }
.ms-photo.sm.ms-initials { font-size: 12px; }
.ms-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, var(--side) 0%, var(--side-2) 60%, var(--accent) 140%);
  color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ms-who { flex: 1; min-width: 200px; }
.ms-who h1 { color: #fff; }
.ms-sub { opacity: .9; margin-top: 2px; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; opacity: .85; }
.ms-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-quick .btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.ms-quick .btn:hover { background: rgba(255, 255, 255, .25); }
.ms-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ms-row > .card { margin-bottom: 16px; }
.ms-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ms-stats.wide { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 0; }
.ms-stats > div, .ms-bal > div { background: var(--line-2); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.ms-stats b, .ms-bal b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ms-stats span, .ms-bal span { font-size: 12px; color: var(--ink-2); }
.ms-bal { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.ms-big { font-size: 22px; font-weight: 650; }
.ms-progress { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.ms-progress i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ms-list { list-style: none; margin: 0; padding: 0; }
.ms-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ms-list li:last-child { border-bottom: 0; }
.ms-list li.past { opacity: .6; }
.ms-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin: 6px 0 10px; }
.ms-field { display: flex; flex-direction: column; gap: 1px; }
.ms-field span { font-size: 12px; color: var(--ink-3); }
.ms-field b { font-weight: 550; overflow-wrap: anywhere; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.org-card { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.org-card .ms-photo { width: 52px; height: 52px; }
.org-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.org-co > summary, .org-dep > summary { cursor: pointer; list-style: none; }
.org-co > summary { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.org-dep { margin: 10px 0 0 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.org-dep > summary { font-weight: 600; color: var(--ink-2); }
.org-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.org-person { display: flex; gap: 9px; align-items: center; }
.org-person > div { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 900px) { .ms-row { grid-template-columns: minmax(0, 1fr); } .ms-stats.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ms-fields { grid-template-columns: minmax(0, 1fr); } .ms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-banner { padding: 14px; } }
/* Sales Leads like Zoho CRM (Basant, 18 Nov 2026): filter panel, column picker, Kanban, lead page */
.crm-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.crm-filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 0; position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; }
.crm-fhead { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 8px; border-bottom: 1px solid var(--line-2); }
.crm-fgroup { padding: 8px 0 4px; border-bottom: 1px solid var(--line-2); }
.crm-fgroup:last-child { border-bottom: 0; }
.crm-ftitle { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); padding: 0 12px 4px; }
.crm-fitem { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-left: 3px solid transparent;
  padding: 5px 12px 5px 9px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left; }
.crm-fitem:hover { background: var(--line-2); }
.crm-fitem.on { background: var(--accent-soft); border-left-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
.crm-fn { font-size: 11.5px; color: var(--ink-3); background: var(--line-2); border-radius: 10px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.crm-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.crm-bar input { max-width: 340px; }
.crm-cols { position: relative; }
.crm-cols > summary { list-style: none; }
.crm-cols > summary::-webkit-details-marker { display: none; }
.crm-cols-menu { position: absolute; z-index: 25; top: 34px; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.crm-table tbody tr.click:hover td { background: var(--accent-soft); }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.crm-col { background: var(--line-2); border-radius: var(--radius); padding: 8px; border-top: 3px solid var(--ink-3); max-height: 75vh; overflow-y: auto; }
.crm-col.st-warn { border-top-color: var(--warn); } .crm-col.st-info { border-top-color: var(--info); }
.crm-col.st-good { border-top-color: var(--good); } .crm-col.st-bad { border-top-color: var(--bad); }
.crm-col > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; position: sticky; top: -8px; background: var(--line-2); }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.crm-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.crm-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; color: var(--ink-3); }
.crm-more { padding: 4px; }
.crm-lead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.crm-lead-top h1 { margin: 4px 0 2px; }
.crm-path { display: flex; margin-top: 14px; overflow-x: auto; }
.crm-step { flex: 1; min-width: 100px; text-align: center; padding: 8px 18px; background: var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); margin-right: -6px; }
.crm-step:last-child { margin-right: 0; }
.crm-step:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.crm-step.done { background: var(--good-bg); color: var(--good); }
.crm-step.now { background: var(--accent); color: #fff; }
.crm-step.out { background: var(--bad-bg); color: var(--bad); }
.crm-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.crm-timeline li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; }
.crm-timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.crm-timeline li:last-child::before { display: none; }
.crm-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: 4px; box-shadow: 0 0 0 3px var(--accent-soft); }
.crm-note { background: var(--accent-soft); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
@media (max-width: 900px) {
  .crm-layout { grid-template-columns: minmax(0, 1fr); }
  .crm-filter { position: static; max-height: none; display: flex; overflow-x: auto; padding: 0; }
  .crm-fhead { display: none; }
  .crm-fgroup { min-width: 170px; border-bottom: 0; border-right: 1px solid var(--line-2); }
}
/* All Apps launcher (Basant, 18 Nov 2026): white page, faint triangle pattern, big colour line icons */
.apps-page { margin: -4px -22px -24px; padding: 0 22px 40px; min-height: calc(100vh - 70px); background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='320'%3E%3Cg fill='%23000'%3E%3Cpath d='M0 0L180 0L60 150Z' opacity='.025'/%3E%3Cpath d='M180 0L420 0L300 120Z' opacity='.018'/%3E%3Cpath d='M60 150L300 120L200 320Z' opacity='.022'/%3E%3Cpath d='M300 120L480 60L480 300Z' opacity='.03'/%3E%3Cpath d='M0 180L60 150L0 320Z' opacity='.02'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 480px 320px; }
.apps-search { display: flex; align-items: center; gap: 14px; margin: 0 -22px 30px; padding: 14px 22px 14px 40px; background: #fff; border-bottom: 1px solid #e6e6e6; cursor: text; }
.apps-search svg { width: 22px; height: 22px; fill: none; stroke: #2f9ae0; stroke-width: 2; stroke-linecap: round; flex: none; }
.apps-search input { border: 0; padding: 4px 0; font-size: 17px; color: #333; background: transparent; box-shadow: none !important; }
.apps-search input::placeholder { color: #555; }
.apps-search input:focus { outline: none; }
.apps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; max-width: 980px; margin: 0 auto; }
.app { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 8px 16px; border-radius: 10px; color: #333; text-decoration: none;
  font-size: 17px; transition: background .15s, transform .15s; }
.app:hover { background: rgba(47, 111, 191, .06); transform: translateY(-2px); }
.app[hidden] { display: none; }
.app-art { width: 104px; height: 104px; }
.apps-none { text-align: center; color: #777; padding: 30px; }
.apps-popular { max-width: 1060px; margin: 46px auto 0; padding-top: 26px; border-top: 1px solid #e8e8e8; }
.apps-page .apps-popular h2 { font-size: 24px; font-weight: 400; color: #333; padding-bottom: 12px; border-bottom: 1px solid #ececec; margin-bottom: 28px; }
.apps-pop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 60px; padding: 0 12px; }
.app-pop { display: flex; gap: 22px; align-items: flex-start; color: #333; text-decoration: none; }
.app-pop .app-art { width: 60px; height: 60px; flex: none; }
.app-pop-title { display: flex; align-items: center; gap: 10px; color: #1a8ce0; font-size: 19px; }
.app-pop:hover .app-pop-title { text-decoration: underline; }
.app-pop p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: #333; }
.app-tick { width: 24px; height: 24px; }
.app-tick circle { fill: #1fb58f; }
.app-tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="zoho"] .apps-page { margin-top: -14px; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .apps-pop-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 780px) {
  .apps-page { margin: -14px -16px -50px; padding: 0 16px 60px; }
  .apps-search { margin: 0 -16px 20px; padding: 12px 16px; }
  .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .app { font-size: 13.5px; padding: 12px 4px; gap: 8px; }
  .app-art { width: 60px; height: 60px; }
}
/* Organization > Overview, like Zoho People (Basant, 18 Nov 2026) */
.org-tabs .tabs { background: var(--card); margin: 0 0 0; padding: 0 8px; border-radius: var(--radius) var(--radius) 0 0; }
.org-cover { height: 170px; margin-top: 0; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(10, 25, 20, .25), rgba(10, 25, 20, .55)), url("/building.png") center 70% / cover no-repeat; }
.org-over { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; margin: -100px 24px 0; position: relative; align-items: start; }
.org-left > .card, .org-right > .card { margin-bottom: 12px; }
.org-company { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-top: 0 !important; margin-top: 40px; }
.org-company b { font-size: 17px; }
.org-logo { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: #fff; margin-top: -40px; border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1); margin-bottom: 8px; }
.org-svc-head { padding: 0 16px !important; margin-top: 40px; }
.org-svc-head .tabs { border: 0; margin: 0; }
.org-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.org-svc { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; box-shadow: var(--shadow); }
.org-svc:hover { border-color: var(--accent); }
.org-svc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; flex: none; }
.org-svc-ico .app-art { width: 28px; height: 28px; }
@media (max-width: 900px) { .org-over { grid-template-columns: minmax(0, 1fr); margin: -80px 10px 0; } .org-svcs { grid-template-columns: minmax(0, 1fr); } .org-svc-head { margin-top: 0; } }
.org-left .ms-list a { text-decoration: none; color: var(--accent-dark); font-weight: 500; }
.org-left .ms-list a:hover { text-decoration: underline; }

/* Birthday banner on Home (18 Nov 2026): a wish on the day, a reminder the day before. Works in both looks. */
.bday-banner { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding: 14px 20px; border-radius: 12px;
  background: linear-gradient(120deg, #fff4e5 0%, #ffe3ef 50%, #e8eeff 100%); border: 1px solid #f6d3e0; box-shadow: 0 2px 10px rgba(219, 39, 119, .08); }
.bday-cake { font-size: 40px; line-height: 1; flex: none; }
.bday-text { flex: 1; min-width: 0; }
.bday-title { font-size: 20px; font-weight: 700; color: #b0245d; }
.bday-wish { font-size: 14.5px; color: #3b3f52; margin-top: 2px; font-style: italic; }
.bday-from { font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.bday-balloons { font-size: 30px; flex: none; letter-spacing: -6px; }
.bday-soon { margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fde2c3; color: #7c4a12; font-size: 13.5px; }
@media (max-width: 780px) { .bday-banner { padding: 12px 14px; gap: 10px; } .bday-cake { font-size: 30px; } .bday-title { font-size: 17px; } .bday-balloons { display: none; } }

/* Birthday pop-outs, confetti and the Send wishes box (18 Nov 2026) */
.bday-banner { position: relative; overflow: hidden; animation: bday-in .6s cubic-bezier(.2,1.4,.4,1) both; }
.bday-banner > *:not(.bday-confetti) { position: relative; z-index: 1; }
.bday-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bday-bit { position: absolute; top: -12px; left: var(--l); width: 7px; height: 11px; border-radius: 2px; background: var(--c);
  opacity: .85; transform: rotate(var(--r)) scale(var(--s)); animation: bday-fall 4.5s linear var(--d) infinite; }
.bday-bit:nth-child(3n) { border-radius: 50%; width: 8px; height: 8px; }
.bday-pop { position: absolute !important; font-size: 22px; animation: bday-pop 2.4s ease-in-out infinite; }
.bday-pop.p1 { left: 62px; top: 4px; }
.bday-pop.p2 { right: 150px; top: 6px; animation-delay: .8s; }
.bday-pop.p3 { right: 220px; bottom: 4px; animation-delay: 1.6s; }
.bday-cake { animation: bday-bounce 1.6s ease-in-out infinite; }
.bday-balloons { letter-spacing: 0; display: flex; gap: 0; }
.bday-balloons span { display: inline-block; margin-left: -8px; animation: bday-float 3s ease-in-out infinite; }
.bday-balloons span:nth-child(2) { animation-delay: .5s; font-size: 34px; }
.bday-balloons span:nth-child(3) { animation-delay: 1s; }
.bday-btn { flex: none; background: linear-gradient(135deg,#ff5c8a,#b0245d); color: #fff !important; border: 0 !important;
  font-weight: 600; padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(176,36,93,.3); animation: bday-glow 2s ease-in-out infinite; }
.bday-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bday-soon { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg,#fff7ed,#ffeef5) !important; animation: bday-in .5s ease-out both; }
.bday-gift { font-size: 20px; display: inline-block; animation: bday-wiggle 2.2s ease-in-out infinite; }
.cel-card h2 { display: flex; align-items: center; gap: 6px; }
.celebrate li.cel-today { background: linear-gradient(90deg,#ffeef5,#fff7ed); border-radius: 8px; padding: 4px 8px; margin: 0 -8px; }
.celebrate .cel-ico { display: inline-block; }
.celebrate li.cel-today .cel-ico { animation: bday-bounce 1.6s ease-in-out infinite; }
.wish-chip { margin-left: 6px; background: #b0245d !important; color: #fff !important; border-color: #b0245d !important; border-radius: 999px !important; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 8px; margin-bottom: 12px; }
.wish-tpl { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #e3e6ee);
  border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; line-height: 1.4; color: inherit; transition: transform .15s, box-shadow .15s; }
.wish-tpl:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.wish-tpl.on { border-color: #b0245d; background: #fff4f8; box-shadow: 0 0 0 2px rgba(176,36,93,.18); }
.wish-ico { font-size: 20px; line-height: 1; flex: none; }
.wish-label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.wish-label textarea { font-weight: 400; width: 100%; box-sizing: border-box; }
.confetti-burst { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.burst-bit { position: absolute; top: -14px; left: var(--l); width: 9px; height: 14px; border-radius: 2px; background: var(--c);
  transform: rotate(var(--r)) scale(var(--s)); animation: bday-fall-page 2.8s cubic-bezier(.3,.6,.6,1) calc(var(--d) / 4) forwards; }
.burst-bit:nth-child(3n) { border-radius: 50%; width: 10px; height: 10px; }
@keyframes bday-in { from { transform: translateY(-6px) scale(.97); } to { transform: none; } }
@keyframes bday-fall { 0% { transform: translateY(0) rotate(var(--r)) scale(var(--s)); opacity: 0; } 10% { opacity: .85; }
  100% { transform: translateY(140px) rotate(calc(var(--r) + 360deg)) scale(var(--s)); opacity: 0; } }
@keyframes bday-fall-page { 0% { transform: translateY(0) rotate(var(--r)); opacity: 1; } 100% { transform: translateY(105vh) rotate(calc(var(--r) + 540deg)); opacity: .2; } }
@keyframes bday-pop { 0%,100% { transform: scale(.6); opacity: .3; } 40% { transform: scale(1.25); opacity: 1; } 60% { transform: scale(1); opacity: .9; } }
@keyframes bday-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes bday-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
@keyframes bday-wiggle { 0%,60%,100% { transform: rotate(0); } 70% { transform: rotate(-14deg) scale(1.1); } 80% { transform: rotate(12deg) scale(1.1); } 90% { transform: rotate(-6deg); } }
@keyframes bday-glow { 0%,100% { box-shadow: 0 4px 12px rgba(176,36,93,.3); } 50% { box-shadow: 0 4px 20px rgba(255,92,138,.6); } }
@media (max-width: 780px) { .bday-pop.p2, .bday-pop.p3 { display: none; } .bday-banner { flex-wrap: wrap; } .bday-btn { margin-left: 46px; } }
@media (prefers-reduced-motion: reduce) { .bday-banner, .bday-banner *, .bday-soon, .bday-gift, .celebrate .cel-ico, .bday-btn { animation: none !important; } .bday-confetti { display: none; } }

/* Company Items: employee-wise table (19 Nov 2026) */
.assets-page .seg { display: inline-flex; gap: 0; }
.assets-page .seg .btn { border-radius: 0; }
.assets-page .seg .btn:first-child { border-radius: 6px 0 0 6px; }
.assets-page .seg .btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.emp-items { width: 100%; }
.emp-items .caret { width: 18px; color: #6b7280; font-size: 12px; padding-right: 0; }
.emp-items tr.grp.open > td { background: #f3f6fc; }
.emp-items tr.grp-items > td { padding-top: 0; background: #fafbfd; }
.emp-items table.inner { width: 100%; margin: 4px 0 8px; border: 1px solid #e6e9f0; border-radius: 6px; }
.emp-items table.inner th { background: #fff; font-size: 12px; }

/* Birthday wish wall under the banner (19 Nov 2026) */
.bday-wrap { margin: 0 0 12px; }
.bday-wrap > .bday-banner { margin-bottom: 0; }
.bday-wrap > .bday-banner:has(+ .bday-wall) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.bday-wall { border: 1px solid #f6d3e0; border-top: 0; border-radius: 0 0 12px 12px; background: #fffafc; padding: 10px 20px 12px; }
.bday-wall.empty-wall { color: #7c4a12; font-size: 13px; padding: 8px 20px; }
.wall-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #b0245d; margin-bottom: 8px; }
.wall-head .link { margin-left: auto; }
.wall-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.wall-card { background: #fff; border: 1px solid #f3dbe5; border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 1px 3px rgba(176,36,93,.06); animation: wall-in .5s ease-out both; animation-delay: calc(var(--i) * 120ms); }
.wall-card:nth-child(3n+1) { background: #fff7fa; } .wall-card:nth-child(3n+2) { background: #fffaf2; } .wall-card:nth-child(3n) { background: #f6f8ff; }
.wall-text { color: #2f3342; }
.wall-from { margin-top: 4px; font-size: 12px; font-weight: 600; color: #b0245d; }
@keyframes wall-in { from { transform: translateY(6px) scale(.98); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wall-card { animation: none; } }
