/* Moved out of resources/views/partials/lao-calendar.blade.php on 2026-10-11 so browsers cache it.
   Edit THIS file; the partial links it with ?v=<mtime>. */
.lcal-tile { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: stretch; width: 76px; height: 80px; margin: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 28px rgba(2, 8, 23, .35), 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .18s ease, box-shadow .18s ease; font-family: "Noto Sans Lao", "Phetsarath OT", sans-serif; -webkit-tap-highlight-color: transparent; }
.lcal-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(2, 8, 23, .45), 0 0 0 1px rgba(255, 255, 255, .4); }
.lcal-tile:focus-visible { outline: 3px solid rgba(110, 165, 255, .8); outline-offset: 3px; }
.lcal-tile-month { display: block; padding: 4px 2px 3px; background: linear-gradient(135deg, #ef4444, #f97316); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; letter-spacing: .2px; }
.lcal-tile-day { display: block; padding: 3px 0 0; color: #0f172a; font-size: 30px; font-weight: 800; line-height: 1.05; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lcal-tile-week { display: block; padding: 0 2px 6px; color: #64748b; font-size: 11px; line-height: 1.4; text-align: center; }
.lcal-wrap { display: flex; justify-content: center; align-items: stretch; gap: 12px; margin: 24px 0 0; }
.lcal-tile-day { flex: 1; display: flex !important; align-items: center; justify-content: center; }
/* Clock tile in the Apple Watch digital style: the calendar tile's size and
   corners, black face, large rounded digits, an orange complication label and
   the seconds as a filling bar. Lao time (UTC+7, no daylight saving).
   Earlier designs: ~/browser-links-backup-20260927/digital-clock-20260927 and
   ~/browser-links-backup-20260927/analog-clock-20260927. */
.lcal-clock { box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: stretch; width: 76px; height: 80px; padding: 7px 8px 8px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 10px 28px rgba(2, 8, 23, .35), 0 0 0 1px rgba(255, 255, 255, .25); font-family: -apple-system, "SF Pro Rounded", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif; }
.lcal-clock-top { display: flex; align-items: center; justify-content: space-between; color: #ff9f0a; font-size: 10.5px; font-weight: 700; line-height: 1.2; font-family: "Noto Sans Lao", "Phetsarath OT", sans-serif; }
.lcal-clock-top span:last-child { color: rgba(255, 255, 255, .55); font-family: -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.lcal-clock-hm { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 25px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1; }
.lcal-clock-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.lcal-clock-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ff9f0a, #ffd60a); }

.lcal-overlay { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-family: "Noto Sans Lao", "Phetsarath OT", sans-serif; }
.lcal-overlay.lcal-open { display: flex; animation: lcal-fade .18s ease; }
.lcal-box { box-sizing: border-box; display: flex; flex-direction: column; width: min(100%, 440px); max-height: calc(100vh - 32px); overflow: auto; padding: 16px 16px 14px; border-radius: 22px; background: linear-gradient(160deg, rgba(20, 32, 68, .98), rgba(10, 18, 42, .98)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); color: #e8edf5; text-align: left; animation: lcal-pop .2s ease; }
.lcal-box button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lcal-box button:focus-visible { outline: 2px solid rgba(110, 165, 255, .9); outline-offset: 2px; }

.lcal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.lcal-title { flex: 1; min-width: 0; }
.lcal-title strong { display: block; font-size: 18px; font-weight: 700; color: #fff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcal-title span { display: block; font-size: 12px; color: rgba(207, 224, 255, .7); }
.lcal-box .lcal-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #dbe7ff; font-size: 17px; line-height: 1; transition: background .15s ease; }
.lcal-box .lcal-ic:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.lcal-box .lcal-ic svg { width: 16px; height: 16px; }
.lcal-tabs { display: inline-flex; flex: 0 0 auto; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.lcal-box .lcal-tab { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: rgba(207, 224, 255, .75); }
.lcal-box .lcal-tab.lcal-on { background: rgba(59, 130, 246, .9); color: #fff; }

.lcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.lcal-dow { padding: 3px 0 5px; font-size: 11.5px; font-weight: 700; color: rgba(207, 224, 255, .65); text-align: center; }
.lcal-dow.lcal-sun { color: #fca5a5; }
.lcal-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 50px; padding: 5px 2px 4px; border-radius: 10px; color: #e8edf5; overflow: hidden; }
.lcal-n { font-size: 15px; line-height: 1.2; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lcal-l { margin-top: 2px; font-size: 9.5px; line-height: 1.25; color: rgba(207, 224, 255, .55); white-space: nowrap; }
.lcal-cell.lcal-phra .lcal-l { color: #fcd34d; font-weight: 700; }
.lcal-ev { display: none; }
.lcal-cell.lcal-sun .lcal-n { color: #fca5a5; }
.lcal-cell.lcal-out { opacity: .3; }
.lcal-cell.lcal-imp { background: rgba(245, 158, 11, .13); }
.lcal-cell.lcal-hol { background: rgba(239, 68, 68, .18); }
.lcal-cell.lcal-hol .lcal-n { color: #fecaca; }
.lcal-cell.lcal-today { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 6px 16px rgba(37, 99, 235, .45); }
.lcal-cell.lcal-today .lcal-n { color: #fff; font-weight: 800; }
.lcal-cell.lcal-today .lcal-l { color: rgba(255, 255, 255, .85); }
.lcal-cell .lcal-dot { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; }
.lcal-cell.lcal-hol .lcal-dot { background: #f87171; }
.lcal-cell.lcal-imp .lcal-dot { background: #fbbf24; }

.lcal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 2px 0; font-size: 11.5px; color: rgba(207, 224, 255, .75); }
.lcal-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.lcal-list { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); list-style: none; }
.lcal-list:empty { display: none; }
.lcal-list li { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; color: rgba(232, 237, 245, .92); }
.lcal-list b { flex: 0 0 auto; min-width: 70px; font-weight: 700; }
.lcal-list .lcal-k-hol b { color: #fca5a5; }
.lcal-list .lcal-k-imp b { color: #fcd34d; }
.lcal-list .lcal-k-phra b { color: #fde68a; }
.lcal-note { margin: 8px 2px 0; font-size: 11px; line-height: 1.5; color: rgba(207, 224, 255, .5); }
.lcal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.lcal-box .lcal-todaybtn { padding: 7px 14px; border-radius: 10px; background: rgba(59, 130, 246, .22); color: #cfe0ff; font-size: 13px; font-weight: 700; }
.lcal-box .lcal-todaybtn:hover { background: rgba(59, 130, 246, .38); color: #fff; }
.lcal-now { font-size: 12px; color: rgba(207, 224, 255, .75); text-align: right; }

.lcal-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lcal-mini { padding: 8px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.lcal-box .lcal-mini-t { display: block; width: 100%; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: #fff; text-align: center; }
.lcal-box .lcal-mini-t:hover { color: #93c5fd; }
.lcal-mini-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; text-align: center; font-size: 9.5px; line-height: 1.7; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: rgba(232, 237, 245, .85); }
.lcal-mini-g .lcal-mh { color: rgba(207, 224, 255, .5); font-family: "Noto Sans Lao", sans-serif; font-size: 8.5px; }
.lcal-mini-g .lcal-sun { color: #fca5a5; }
.lcal-mini-g .lcal-hol { background: rgba(239, 68, 68, .35); border-radius: 4px; color: #fff; }
.lcal-mini-g .lcal-imp { background: rgba(245, 158, 11, .3); border-radius: 4px; }
.lcal-mini-g .lcal-phra { color: #fcd34d; font-weight: 700; }
.lcal-mini-g .lcal-today { background: #2563eb; border-radius: 4px; color: #fff; font-weight: 800; }

/* Full screen: the whole window, roomy cells with the day's names written in. */
.lcal-overlay.lcal-full { padding: 0; }
.lcal-full .lcal-box { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 18px 22px 16px; animation: none; }
.lcal-full .lcal-title strong { font-size: 22px; }
.lcal-full #lcal-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lcal-full .lcal-grid { flex: 1; grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); gap: 6px; }
.lcal-full .lcal-dow { font-size: 13.5px; }
.lcal-full .lcal-cell { align-items: flex-start; min-height: 74px; padding: 8px 10px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); }
.lcal-full .lcal-cell.lcal-out { background: transparent; }
.lcal-full .lcal-n { font-size: 20px; font-weight: 700; }
.lcal-full .lcal-l { font-size: 11.5px; }
.lcal-full .lcal-ev { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; white-space: normal; }
.lcal-full .lcal-hol .lcal-ev { color: #fecaca; }
.lcal-full .lcal-imp .lcal-ev { color: #fde68a; }
.lcal-full .lcal-today .lcal-ev { color: #fff; }
.lcal-full .lcal-year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcal-full .lcal-mini-g { font-size: 12px; }
.lcal-full .lcal-mini-g .lcal-mh { font-size: 10px; }

@keyframes lcal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lcal-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .lcal-overlay { align-items: flex-end; padding: 0; }
  .lcal-box { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 14px 10px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .lcal-l { font-size: 8.5px; }
  .lcal-cell { min-height: 46px; padding: 4px 1px 3px; }
  .lcal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lcal-full .lcal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lcal-full .lcal-box { padding: 12px 8px; }
  .lcal-full .lcal-cell { min-height: 60px; padding: 5px 4px; }
  .lcal-full .lcal-n { font-size: 16px; }
  .lcal-full .lcal-ev { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) { .lcal-tile, .lcal-overlay.lcal-open, .lcal-box { transition: none; animation: none; } }
@media print { .lcal-overlay { display: none !important; } }

/* ---- own calendar (signed-in staff): events from calendar_events, shared with the phone app ---- */
.lcal-wrap.lcal-wrap-mini { margin: 0; gap: 0; }
.lcal-tile.lcal-tile-mini { width: 42px; height: 44px; border-radius: 12px; box-shadow: 0 2px 8px rgba(2, 8, 23, .25), 0 0 0 1px rgba(15, 23, 42, .1); }
.lcal-tile.lcal-tile-mini:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(2, 8, 23, .3), 0 0 0 1px rgba(15, 23, 42, .15); }
.lcal-tile-mini .lcal-tile-month { padding: 2px 0 1px; font-size: 9px; line-height: 1.3; }
.lcal-tile-mini .lcal-tile-day { padding: 0; font-size: 18px; line-height: 1; }
.lcal-tile-mini .lcal-tile-week { display: none; }

.lcal-cell[data-lcal-date] { cursor: pointer; }
.lcal-cell[data-lcal-date]:hover { box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .55); }
.lcal-cell.lcal-has-my::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #34d399; }
.lcal-my { display: none; }
.lcal-full .lcal-cell.lcal-has-my::after { display: none; }
.lcal-full .lcal-my { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: 4px; }
.lcal-full .lcal-my i { display: block; padding: 1px 6px; border-radius: 6px; background: rgba(52, 211, 153, .18); border-left: 3px solid #34d399; color: #d1fae5; font-style: normal; font-size: 11.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcal-list .lcal-k-my { cursor: pointer; }
.lcal-list .lcal-k-my b { color: #6ee7b7; }
.lcal-list .lcal-k-my u { text-decoration: none; color: rgba(167, 243, 208, .85); font-size: 12px; }
.lcal-list .lcal-k-my:hover span { text-decoration: underline; }
.lcal-mini-g .lcal-my-d { box-shadow: inset 0 -2px 0 #34d399; }
.lcal-box .lcal-addbtn { background: rgba(52, 211, 153, .2); color: #a7f3d0; }
.lcal-box .lcal-addbtn:hover { background: rgba(52, 211, 153, .35); color: #fff; }

.lcal-editor { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, .6); }
.lcal-editor[hidden] { display: none; }
.lcal-ed-box { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow: auto; padding: 16px; border-radius: 18px; background: linear-gradient(160deg, #16244d, #0c1630); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color: #e8edf5; font-family: "Noto Sans Lao", "Phetsarath OT", sans-serif; font-size: 13.5px; text-align: left; }
.lcal-ed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lcal-ed-head strong { font-size: 16px; color: #fff; }
.lcal-ed-box button { all: revert; font-family: inherit; cursor: pointer; }
.lcal-ed-box .lcal-ic { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #dbe7ff; cursor: pointer; }
.lcal-ed-box .lcal-ic:hover { background: rgba(255, 255, 255, .18); }
.lcal-ed-facts { margin: 0; color: #fcd34d; font-size: 12px; }
.lcal-ed-empty { margin: 0; color: rgba(207, 224, 255, .6); font-size: 12.5px; }
.lcal-ed-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow: auto; }
.lcal-ed-list li { padding: 6px 10px; border-radius: 8px; background: rgba(52, 211, 153, .12); border-left: 3px solid #34d399; cursor: pointer; }
.lcal-ed-list li.lcal-on { background: rgba(52, 211, 153, .3); }
.lcal-ed-list u { text-decoration: none; color: #a7f3d0; font-size: 12px; }
.lcal-ed-box label { display: flex; flex-direction: column; gap: 4px; color: rgba(207, 224, 255, .8); font-size: 12px; }
.lcal-ed-box input[type=text], .lcal-ed-box input[type=date], .lcal-ed-box input[type=time], .lcal-ed-box textarea { box-sizing: border-box; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #fff; font: inherit; font-size: 14px; color-scheme: dark; }
.lcal-ed-box input:focus, .lcal-ed-box textarea:focus { outline: 2px solid rgba(110, 165, 255, .8); outline-offset: 1px; }
.lcal-ed-row { display: flex; align-items: flex-end; gap: 10px; }
.lcal-ed-row > label { flex: 1; }
.lcal-ed-row[hidden] { display: none; }
.lcal-ed-box .lcal-ed-chk { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; padding-bottom: 9px; color: #e8edf5; font-size: 13.5px; }
.lcal-ed-err { margin: 0; color: #fca5a5; font-size: 12.5px; }
.lcal-ed-actions { display: flex; align-items: center; gap: 8px; }
.lcal-ed-box .lcal-ed-save, .lcal-ed-box .lcal-ed-del, .lcal-ed-box .lcal-ed-new { all: unset; box-sizing: border-box; padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.lcal-ed-box .lcal-ed-save { background: #2563eb; color: #fff; }
.lcal-ed-box .lcal-ed-save:disabled { opacity: .6; cursor: default; }
.lcal-ed-box .lcal-ed-del { background: rgba(239, 68, 68, .2); color: #fca5a5; }
.lcal-ed-box .lcal-ed-new { background: rgba(255, 255, 255, .1); color: #dbe7ff; }
