/* Gisselle's services admin */
.adm .app { gap: 18px; }
.adm-tip { background: #fff; border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow); }
.adm-form { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 4px 14px; align-items: end; }
.adm-form .adm-wide { grid-column: 1 / -1; }
.adm-form .field { margin-bottom: 10px; }
@media (max-width: 760px) { .adm-form { grid-template-columns: 1fr 1fr; } .adm-form .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .adm-form { grid-template-columns: 1fr; } }
.adm-money { display: flex; align-items: center; border: 1.5px solid #d9d2c5; border-radius: 12px; background: #fff; padding-left: 12px; }
.adm-money:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44, 74, 154, .18); }
.adm-money span { font-weight: 700; color: var(--muted); }
.adm-money input { border: 0 !important; box-shadow: none !important; padding-left: 6px !important; background: transparent !important; }
.adm-loading { margin: 0; color: var(--muted); }
.adm-group { --tone: var(--teal); --tone-soft: var(--teal-soft); padding: 0; overflow: hidden; }
.adm-group.svc-cuts { --tone: #b9562f; --tone-soft: #fbe2d6; }
.adm-group.svc-color { --tone: #2c4a9a; --tone-soft: #e4e9f6; }
.adm-group.svc-smooth { --tone: #2f6b46; --tone-soft: #dcefdc; }
.adm-group.svc-extras { --tone: #96640f; --tone-soft: #fbeccb; }
.adm-ghead { display: flex; align-items: baseline; gap: 10px; padding: 16px 22px; background: var(--tone-soft); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.adm-ghead h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 26px; color: var(--tone); }
.adm-ghead span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.adm-row { border-bottom: 1px solid var(--line-2); padding: 14px 22px; }
.adm-row:last-child { border-bottom: 0; }
.adm-row.is-hidden .adm-name, .adm-row.is-hidden .adm-price { opacity: .5; }
.adm-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-move { display: flex; flex-direction: column; gap: 4px; }
.adm-move button { width: 34px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.adm-move button:hover:not([disabled]) { border-color: var(--tone); color: var(--tone); }
.adm-move button[disabled] { opacity: .3; cursor: default; }
.adm-name { flex: 1; min-width: 180px; }
.adm-name b { font-size: 16.5px; display: block; }
.adm-name small { color: var(--muted); font-size: 13.5px; }
.adm-price { font-family: var(--serif); font-size: 26px; color: var(--tone); min-width: 84px; text-align: right; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-acts .btn.del { color: var(--danger); }
.adm-edit { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.adm-edit .adm-btns { display: flex; gap: 8px; }
@media (max-width: 600px) { .adm-row, .adm-ghead { padding-left: 16px; padding-right: 16px; } .adm-price { text-align: left; min-width: 0; } .adm-acts { width: 100%; } }
.adm-foot { color: var(--muted); font-size: 14px; margin: 0; }
.adm-dialog { border: 0; border-radius: 18px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.adm-dialog::backdrop { background: rgba(21, 24, 31, .45); }
.adm-dialog h2 { font-size: 22px; margin-bottom: 8px; }
.adm-dialog p { color: var(--ink-2); }
.adm-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.adm .toast-wrap { z-index: 600; }

.adm-pay { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .adm-pay { grid-template-columns: 1fr; } }

.adm-inv { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .adm-inv { grid-template-columns: 1fr; } }
.adm-sub { font-family: var(--sans); font-weight: 800; font-size: 15px; margin: 22px 0 6px; padding-top: 16px; border-top: 1px dashed var(--line); }
.adm-link { background: var(--sun-soft); border: 1px solid #efd9a8; border-radius: 12px; padding: 12px 14px; margin-top: 14px; font-size: 14.5px; }
.adm-link code { display: block; overflow-wrap: anywhere; background: #fff; border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 13px; }
.adm-irow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.adm-irow:last-child { border-bottom: 0; }
.adm-irow .grow { flex: 1; min-width: 200px; }
.adm-irow b { display: block; }
.adm-irow small { color: var(--muted); font-size: 13.5px; }
.adm-irow .amt { font-family: var(--serif); font-size: 22px; min-width: 76px; text-align: right; }

.adm-pick { position: relative; margin-bottom: 14px; }
.adm-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin-top: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 320px; overflow: auto; padding: 6px; }
.adm-menu h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 10px 10px 4px; }
.adm-opt { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 9px 10px; font: inherit; cursor: pointer; }
.adm-opt:hover, .adm-opt.is-on { background: var(--teal-soft); }
.adm-opt b { font-size: 15px; }
.adm-opt small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.adm-opt .when { color: var(--teal); font-weight: 700; font-size: 13px; white-space: nowrap; }
.adm-menu .none { padding: 10px; color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- office tabs ---------- */
.adm-tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); overflow-x: auto; }
.adm-tabs button { flex: 1; min-width: max-content; border: 0; background: none; font: inherit; font-weight: 700; padding: 11px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.adm-tabs button[aria-selected=true] { background: var(--teal); color: #fff; }
.adm-panel { display: grid; gap: 18px; min-width: 0; }
.adm-panel[hidden] { display: none; }
.adm-two { grid-template-columns: 1fr 1fr; }
@media (max-width: 940px) { .adm-two { grid-template-columns: 1fr; } }
/* month calendar */
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.mcal-h { background: var(--stone); text-align: center; font-size: 12px; font-weight: 800; padding: 8px 2px; }
.mcal-d { background: #fff; border: 0; min-height: 92px; padding: 6px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mcal-d .n { font-weight: 800; font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.mcal-d.is-out { background: #faf7f1; color: #a39d92; }
.mcal-d.is-today .n { background: var(--teal); color: #fff; }
.mcal-d.is-on { box-shadow: inset 0 0 0 2.5px var(--teal); }
.ev2 { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 5px; background: var(--teal); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2.requested { background: #f7dfb4; color: #6b4a0e; outline: 1px dashed #c99a3c; outline-offset: -1px; }
.ev2.completed { background: #d8d2c6; color: var(--ink-2); }
.mcal-d .more { font-size: 11px; color: var(--muted); font-weight: 700; }
.mcal-d .dots { display: none; gap: 3px; }
.mcal-d .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.mcal-d .dots i.requested { background: var(--sun); } .mcal-d .dots i.completed { background: #b9b2a4; }
@media (max-width: 700px) { .mcal-d { min-height: 54px; align-items: center; padding: 5px 2px; } .mcal-d .ev2, .mcal-d .more { display: none; } .mcal-d .dots { display: flex; } }
.adm-wait { background: var(--sun-soft); border: 1px solid #efd9a8; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14.5px; }
.daybox { margin-top: 18px; }
.daybox h3 { font-size: 20px; margin-bottom: 8px; }
.day-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 15px; }
.day-row .t { min-width: 84px; font-weight: 800; }
.day-row .t small { display: block; font-weight: 500; color: var(--muted); }
.day-row .grow { flex: 1; min-width: 0; }
.day-row blockquote { margin: 8px 0 0; padding: 8px 12px; background: var(--stone); border-radius: 10px; font-size: 14.5px; }
.day-row .adm-acts { margin-top: 10px; }
.day-row.cancelled, .day-row.no_show { opacity: .55; }
.adm-sync { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.adm-more { border-top: 1px solid var(--line-2); padding: 12px 0 2px; font-size: 14.5px; color: var(--ink-2); }
.adm-more summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.adm-more p { margin: 10px 0 0; }
/* money */
.adm-period { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-period select { font: inherit; font-weight: 700; padding: 9px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.adm-tiles { grid-template-columns: repeat(3, 1fr); }
.adm-tiles .stat { box-shadow: none; border-color: var(--line); }
.adm-tiles .stat small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.adm-tiles .stat.hot small { color: #cfe7e8; }
.adm-tiles .stat.low { background: var(--danger-soft); border-color: #efc4bd; color: var(--danger); }
.adm-tiles .stat.low span, .adm-tiles .stat.low small { color: var(--danger); }
@media (max-width: 700px) { .adm-tiles { grid-template-columns: 1fr; } }
.cat-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 14.5px; }
.cat-row .bar { height: 10px; background: var(--stone); border-radius: 999px; overflow: hidden; }
.cat-row .bar i { display: block; height: 100%; background: var(--copper); border-radius: 999px; }
.adm-drop { padding: 16px; }
.adm-shot img { max-width: 100%; max-height: 70vh; display: block; margin: 0 auto; border-radius: 12px; }
.adm-shot { width: min(560px, calc(100vw - 24px)); }

@media (max-width:520px){.adm-tabs{overflow:visible}.adm-tabs [data-tab]{flex:1 1 0;min-width:0;padding-left:4px;padding-right:4px;font-size:.84rem}}

/* Photos tab */
.gal-add { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.gal-pick { position: relative; overflow: hidden; cursor: pointer; }
.gal-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.gal-pick:focus-within { outline: 3px solid rgba(14,107,118,.35); outline-offset: 2px; }
.gal-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.gal-selbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gal-selbar[hidden], .gal-bar[hidden] { display: none; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gal-grid > p { grid-column: 1 / -1; }
.gal-tile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: #efe8dc; cursor: pointer; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.gal-check { display: none; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(20,24,28,.35); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.is-selecting .gal-check { display: block; }
.gal-tile.is-picked { outline: 3px solid var(--teal); outline-offset: -3px; }
.gal-tile.is-picked img { opacity: .6; }
.gal-tile.is-picked .gal-check { background: var(--teal); }
.gal-tile.is-picked .gal-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.gal-edit img { display: block; max-width: 100%; max-height: 42vh; margin: 0 auto 14px; border-radius: 12px; }
.gal-move { margin: 4px 0 6px; }
@media (max-width:520px){ .adm-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-radius:24px} .adm-tabs [data-tab]{font-size:.86rem;padding:10px 2px} .gal-grid{grid-template-columns:repeat(3,1fr);gap:6px} .gal-pick{flex:1 1 100%;text-align:center;justify-content:center} }

/* Calendar: grey until the client confirms, green once they do */
.ev2.confirmed { background: #dfe2e6; color: #2b3138; }
.ev2.confirmed.cc { background: #2f8f5b; color: #fff; }
.mcal-d .dots i.confirmed { background: #a9afb7; } .mcal-d .dots i.confirmed.cc { background: #2f8f5b; }
.legend i.g { background: #c9ced4; } .legend i.c { background: #2f8f5b; }
.pill.wait { background: #e7e9ec; color: #2b3138; }
.day-row blockquote.mine { background: #eef4f4; }
/* The day pop-up, with booking */
.day-dlg { width: min(620px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.day-head h2 { margin: 0; font-size: 22px; }
.day-dlg .daybox { margin-bottom: 16px; }
.day-dlg .day-row:first-child { border-top: 0; }
.book-form { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 4px; }
.book-form[hidden] { display: none; }
.book-form h3 { margin: 0; font-size: 19px; }
.book-form .adm-pick { margin-bottom: 6px; }
.b-chosen { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--stone); border-radius: 12px; padding: 10px 14px; }
.b-chosen[hidden], .b-newbox[hidden] { display: none; }
.b-chosen small { display: block; color: var(--muted); }
.b-newbox { background: #fdf8ef; border-radius: 12px; padding: 12px; }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.b-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; font-weight: 700; }
.b-chip small { font-weight: 500; opacity: .85; }
.b-chip button { border: 0; background: rgba(255,255,255,.25); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.b-ends { margin: 0; color: var(--ink-2); font-weight: 700; }
.b-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.b-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.adm-mins { color: var(--muted); }
.adm-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
/* Clients */
.cli-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 14px; margin-top: 12px; }
.cli-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.cli-row:first-child { border-top: 0; }
.cli-row span { color: var(--ink-2); font-size: 14.5px; }
.cli-list > p { padding: 14px; margin: 0; }
.imp-map { margin: 14px 0 6px; }
.imp-table { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; margin: 10px 0 14px; }
.imp-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.imp-table th, .imp-table td { text-align: left; padding: 8px 12px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.imp-table tr:first-child th { border-top: 0; background: var(--stone); }

/* New requests */
.rqc { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; margin-top: 12px; background: #fffdf8; }
.req-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-top b { font-size: 18px; } .req-top small { color: var(--muted); margin-left: auto; }
.rqc p { margin: 10px 0 0; } .req-who small { color: var(--muted); }
.rqc blockquote { margin: 10px 0 0; padding: 8px 12px; background: var(--stone); border-radius: 10px; font-size: 14.5px; }
.rqc .adm-acts { margin-top: 14px; }
.req-photos .thumb { padding: 0; cursor: zoom-in; background: none; }
.req-form { margin-top: 14px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.req-form h4 { margin: 0; font-size: 17px; }
.tab-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun, #e9a04e); color: #1d2b24; font-size: 12px; line-height: 20px; vertical-align: 1px; }
.join-url { font-weight: 700; overflow-wrap: anywhere; background: var(--stone); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }

/* Texting from her own phone */
.nudge { margin-top: 10px; }
.nudge-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.nudge .btn { vertical-align: middle; }

.text-dlg blockquote { margin: 12px 0 0; padding: 12px 14px; background: var(--stone); border-radius: 12px; font-size: 15px; overflow-wrap: anywhere; }
.text-dlg .adm-dialog-foot .btn { flex: 1; justify-content: center; text-align: center; }
/* iPhone: time and date boxes must not push past their card */
.adm input[type=time], .adm input[type=date], .adm-dialog input[type=time], .adm-dialog input[type=date] { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.adm-form .field, .book-form .field { min-width: 0; }
