/* Skyship admin enhancements — layered on top of the base template */
:root {
  --sk-ink: #1b2430; --sk-muted: #7a8494; --sk-line: #e8ebf1; --sk-bg: #f5f7fb;
  --sk-blue: #3d6df2; --sk-green: #1fa971; --sk-amber: #e39a0d; --sk-red: #d93c3c; --sk-violet: #7b5cf0;
}
.sk-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 22px; }
.sk-page-head h1 { font-size: 24px; font-weight: 700; margin: 0; color: var(--sk-ink); }
.sk-page-head p { margin: 2px 0 0; color: var(--sk-muted); font-size: 14px; }
.sk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--sk-line); background: #fff; color: var(--sk-ink); border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 500; text-decoration: none; transition: all .15s; }
.sk-btn:hover { border-color: var(--sk-blue); color: var(--sk-blue); transform: translateY(-1px); }
.sk-btn.primary { background: var(--sk-blue); border-color: var(--sk-blue); color: #fff; }
.sk-btn.primary:hover { background: #2f5ce0; color: #fff; }

.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.sk-kpi { position: relative; background: #fff; border: 1px solid var(--sk-line); border-radius: 14px; padding: 18px 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.sk-kpi:hover { box-shadow: 0 8px 24px rgba(27,36,48,.08); transform: translateY(-2px); }
.sk-kpi .ico-wrap { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sk-kpi .label { color: var(--sk-muted); font-size: 13px; }
.sk-kpi .value { font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--sk-ink); letter-spacing: -.02em; }
.sk-kpi .sub { font-size: 12.5px; color: var(--sk-muted); margin-top: 4px; }
.sk-kpi.blue .ico-wrap { background: #e9efff; color: var(--sk-blue); }
.sk-kpi.green .ico-wrap { background: #e3f6ed; color: var(--sk-green); }
.sk-kpi.amber .ico-wrap { background: #fff3d6; color: var(--sk-amber); }
.sk-kpi.violet .ico-wrap { background: #efeaff; color: var(--sk-violet); }
.sk-delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.sk-delta.up { background: #e3f6ed; color: #12805a; } .sk-delta.down { background: #fde3e3; color: #b32d2d; } .sk-delta.flat { background: #eef0f4; color: #5d6676; }

.sk-card { background: #fff; border: 1px solid var(--sk-line); border-radius: 14px; padding: 20px; height: 100%; }
.sk-card h3 { font-size: 15px; font-weight: 600; margin: 0 0 2px; color: var(--sk-ink); }
.sk-card .hint { color: var(--sk-muted); font-size: 12.5px; margin-bottom: 14px; }
.sk-chart { position: relative; height: 260px; }
.sk-chart.sm { height: 220px; }

.sk-list { list-style: none; margin: 0; padding: 0; }
.sk-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.sk-list li:last-child { border-bottom: 0; }
.sk-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e9efff; color: var(--sk-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.sk-list .main { min-width: 0; flex: 1; }
.sk-list .main b { display: block; font-weight: 600; color: var(--sk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-list .main span { color: var(--sk-muted); font-size: 12.5px; }
.sk-pill { background: #eef0f4; color: #3b4452; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 12.5px; }
.sk-bar { height: 6px; border-radius: 6px; background: #eef0f4; overflow: hidden; margin-top: 6px; }
.sk-bar i { display: block; height: 100%; border-radius: 6px; background: var(--sk-blue); }

.sk-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sk-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sk-muted); padding: 8px 10px; border-bottom: 1px solid var(--sk-line); font-weight: 600; }
.sk-table td { padding: 11px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.sk-table tr:last-child td { border-bottom: 0; }
.sk-table a { color: var(--sk-blue); text-decoration: none; font-weight: 500; }
.sk-scroll { overflow-x: auto; }

.sk-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sk-badge.green { background: #e3f6ed; color: #12805a; } .sk-badge.amber { background: #fff3d6; color: #96620a; }
.sk-badge.blue { background: #e9efff; color: #2b52c9; } .sk-badge.gray { background: #eef0f4; color: #5d6676; } .sk-badge.red { background: #fde3e3; color: #b32d2d; }

.sk-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f7dca0; color: #7a4f00; margin-bottom: 20px; }
.sk-alert a { margin-left: auto; font-weight: 600; color: #7a4f00; white-space: nowrap; }

/* sidebar polish */
.sa-nav__link .ico { margin-right: 12px; flex: none; opacity: .85; }
.sa-nav__menu-item.sa-active > .sa-nav__link { font-weight: 600; }
.sk-greeting { font-size: 12.5px; color: var(--sk-muted); }
@media (max-width: 575px) { .sk-kpi .value { font-size: 26px; } .sk-page-head h1 { font-size: 21px; } }

/* ---- shared modal + form + switch styles ---- */
.sk-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(27,36,48,.25); }
.sk-modal .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--sk-line); }
.sk-modal .modal-title { font-weight: 700; font-size: 18px; color: var(--sk-ink); }
.sk-modal .modal-title small { display: block; font-weight: 400; font-size: 13px; color: var(--sk-muted); margin-top: 2px; }
.sk-modal .modal-body { padding: 24px; }
.sk-modal .modal-footer { padding: 14px 24px; border-top: 1px solid var(--sk-line); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfd; }
.sk-modal label.sk-label { display: block; font-weight: 600; font-size: 13px; color: #3b4452; margin-bottom: 6px; }
.sk-modal .form-control { border-radius: 10px; }
.sk-modal .form-control:focus { border-color: var(--sk-blue); box-shadow: 0 0 0 3px rgba(61,109,242,.15); }
.sk-modal .help { color: var(--sk-muted); font-size: 12.5px; margin-top: 4px; }
.sk-field-error { color: var(--sk-red); font-size: 12.5px; margin-top: 4px; }
.form-control.is-invalid { border-color: var(--sk-red); }
.sk-btn.danger { background: var(--sk-red); border-color: var(--sk-red); color: #fff; }
.sk-btn.danger:hover { background: #bf2f2f; color: #fff; }
.sk-btn.is-busy, .sk-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.sk-btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.sk-confirm .modal-body { text-align: center; padding: 32px 24px 8px; }
.sk-confirm h4 { font-weight: 700; margin: 10px 0 4px; }
.sk-confirm p { color: var(--sk-muted); }
.sk-confirm .modal-footer { justify-content: center; background: #fff; border-top: 0; padding-bottom: 24px; }
.sk-confirm-ico { width: 54px; height: 54px; border-radius: 50%; background: #fde3e3; color: var(--sk-red); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }

/* on/off switch */
.sk-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; }
.sk-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sk-switch .track { width: 38px; height: 22px; border-radius: 999px; background: #cfd5df; position: relative; transition: background .2s; flex: none; }
.sk-switch .track:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.sk-switch input:checked + .track { background: var(--sk-green); }
.sk-switch input:checked + .track:after { transform: translateX(16px); }
.sk-switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(61,109,242,.3); }
.sk-switch input:disabled + .track { opacity: .6; }
.sk-switch-label { font-size: 13px; color: #5d6676; min-width: 54px; }

/* segmented choice (radio) */
.sk-seg { display: inline-flex; background: #eef0f4; border-radius: 10px; padding: 3px; }
.sk-seg label { margin: 0; cursor: pointer; }
.sk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sk-seg span { display: block; padding: 6px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #5d6676; transition: all .15s; }
.sk-seg input:checked + span { background: #fff; color: var(--sk-ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* rate grid */
.sk-rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; }
.sk-rate-grid .input-group-text { background: #f5f7fb; border-radius: 10px 0 0 10px; color: var(--sk-muted); }
.sk-rate-grid .form-control { border-radius: 0 10px 10px 0; }
.sk-table td.num, .sk-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sk-table .sticky-col { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--sk-line); }
.sk-table th.sticky-col { background: #fff; z-index: 2; }
.sk-empty { padding: 48px 20px; text-align: center; color: var(--sk-muted); }
.sk-searchbar { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid var(--sk-line); }
.sk-searchbar .form-control { max-width: 380px; border-radius: 10px; }
.sk-searchbar .count { margin-left: auto; color: var(--sk-muted); font-size: 13px; }
.sk-card .sa-datatables__footer { padding: 12px 20px; }

.sk-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 20px; background: #eef3ff; border-bottom: 1px solid #d5e0ff; }
.sk-bulk[hidden] { display: none; }
#servicetable input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }

/* ================= admin sidebar redesign ================= */
.sa-app__sidebar .sk-side { background: linear-gradient(180deg, #0b2a4a 0%, #0a2340 100%); color: #cfe0f3; height: 100%; display: flex; flex-direction: column; width: 100%; }
.sk-side__header { background: transparent !important; padding: 20px 18px 14px; border: 0; height: auto; display: block; }
.sk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.sk-brand:hover { color: #fff; }
.sk-brand__mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2aa9ff, #0b6cd6); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(7,149,255,.35); flex: none; }
.sk-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.sk-brand__text b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.sk-brand__text small { font-size: 11.5px; color: #8fb2d6; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.sk-side__body { flex: 1; min-height: 0; padding: 4px 12px 12px; }
.sk-nav-section { padding: 10px 0 4px; }
.sk-nav-title { color: #6f93b8; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 8px 12px 6px; }
.sk-nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 12px; color: #cfe0f3; text-decoration: none; font-size: 14.5px; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.sk-nav-link .ico { flex: none; opacity: .75; transition: opacity .15s; }
.sk-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sk-nav-link:hover .ico { opacity: 1; }
.sk-nav-link.is-active { background: linear-gradient(90deg, rgba(7,149,255,.32), rgba(7,149,255,.14)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(120,190,255,.22); }
.sk-nav-link.is-active:before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #2aa9ff; }
.sk-nav-link.is-active .ico { opacity: 1; color: #7cc8ff; }
.sk-nav-link:focus-visible { outline: 2px solid #7cc8ff; outline-offset: 1px; }
.sk-nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-nav-badge { flex: none; min-width: 24px; text-align: center; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.14); color: #fff; }
.sk-nav-badge.amber { background: #f5a623; color: #3b2600; } .sk-nav-badge.red { background: #ef5b5b; color: #fff; }
.sk-side__footer { padding: 10px 12px 14px; border-top: 1px solid rgba(255,255,255,.1); }
.sk-nav-link--small { font-size: 13.5px; padding: 8px 12px; color: #9ebbd9; }
.sk-usercard { display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); }
.sk-usercard__avatar, .sk-initial { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2aa9ff, #7b5cf0); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: none; }
.sk-usercard__info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sk-usercard__info b { color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-usercard__info small { color: #8fb2d6; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-usercard__out { border: 0; background: transparent; color: #9ebbd9; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sk-usercard__out:hover { background: rgba(255,255,255,.12); color: #fff; }
.sa-app__sidebar .simplebar-scrollbar:before { background: rgba(255,255,255,.35); }
.sa-toolbar-user__avatar.sk-initial { width: 34px; height: 34px; font-size: 14px; }

/* customer delete dialog + profile */
.cd-note { background: #f5f7fb; border-radius: 10px; padding: 10px 14px; font-size: 14px; color: #3b4452; margin-bottom: 10px; }
.cd-note.warn { background: #fff7e6; color: #7a4f00; }
.cd-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--sk-line); border-radius: 12px; padding: 12px 14px; margin: 8px 0; cursor: pointer; }
.cd-opt:hover { border-color: #b9c4d3; }
.cd-opt input { margin-top: 4px; } .cd-opt b { display: block; font-size: 14px; color: var(--sk-ink); } .cd-opt small { display: block; color: var(--sk-muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.cd-opt.danger b { color: #b32d2d; } .cd-opt:has(input:checked) { border-color: var(--sk-blue); background: #f3f8ff; } .cd-opt.danger:has(input:checked) { border-color: #e48a8a; background: #fff6f6; }
.cd-alt { font-size: 13px; color: var(--sk-muted); margin: 10px 0 0; } .cd-alt a { font-weight: 600; }
.sk-modal code { background: #eef0f4; padding: 1px 7px; border-radius: 6px; color: #1b2430; font-size: 12.5px; }

.sk-profile-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 26px 0 22px; }
.sk-profile-avatar { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, #2aa9ff, #7b5cf0); color: #fff; font-size: 28px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 20px rgba(61,109,242,.25); }
.sk-profile-head h1 { font-size: 26px; font-weight: 800; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--sk-ink); }
.sk-profile-head .meta { color: var(--sk-muted); font-size: 14px; margin-top: 4px; }
.sk-crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--sk-muted); font-size: 13.5px; text-decoration: none; margin-top: 22px; }
.sk-crumb:hover { color: var(--sk-blue); }
.sk-dl { margin: 0; } .sk-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.sk-dl > div:last-child { border-bottom: 0; } .sk-dl dt { color: var(--sk-muted); font-weight: 500; } .sk-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--sk-ink); word-break: break-word; }
.sk-dl dd small { display: block; font-weight: 400; color: var(--sk-muted); }
.sk-mini-bar { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13.5px; } .sk-mini-bar .n { flex: 0 0 38%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sk-mini-bar .b { flex: 1; } .sk-mini-bar .c { flex: none; min-width: 28px; text-align: right; font-weight: 700; }
.sk-mini-bar .b i { display: block; height: 7px; border-radius: 7px; background: var(--sk-blue); }
