/* DDS TOTAL V 1.2.2 */
/* Carlito has the same character widths as Calibri, so sheets lay out the same on phones that have no Calibri */
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/carlito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/carlito-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/carlito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/carlito-latin-700-italic.woff2') format('woff2'); }

.dds-wrap, .dds-pub { --dds-dark: #1f2933; --dds-grey: #7b8794; font-family: Calibri, Carlito, Arial, sans-serif; }
.dds-wrap, .dds-pub { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.dds-app { margin-top: 14px; }
.dds-90 { width: 90%; }
.dds-b { font-weight: bold; }
.dds-note { font-size: 13px; color: #444; }
.dds-ok { color: #15803d; font-weight: bold; }
.dds-err { color: #b91c1c; font-weight: bold; }
.dds-msg { min-height: 20px; margin: 6px 0; }
.dds-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.dds-red-b { color: #d00000; font-weight: bold; }
.dds-blk { color: #000; }

/* buttons */
.dds-btn { background: #1d4ed8; color: #fff; border: 0; border-radius: 4px; padding: 7px 14px; font-weight: bold; cursor: pointer; margin: 2px 4px 2px 0; font-size: 13px; }
.dds-btn:hover { background: #1e40af; }
.dds-btn:disabled { opacity: .5; cursor: default; }
.dds-btn.secondary { background: #6b7280; }
.dds-btn.danger { background: #b91c1c; }
.dds-btn.on { background: #00b050; }
.dds-btn.off { background: #ff0000; }

/* toolbar */
.dds-wk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.dds-wk-bar input, .dds-wk-bar select { height: 32px; }
.dds-wk-title { font-weight: bold; font-size: 15px; margin-left: 10px; }
.dds-goto-l { margin-left: 8px; font-weight: bold; font-size: 12px; }
.dds-feed { width: 420px; max-width: 100%; }

/* week calendar */
.dds-wk { border: 1px solid #cbd2d9; background: #fff; }
.dds-wk-head { display: grid; grid-template-columns: 56px repeat(7, 1fr); padding-right: 15px; background: var(--dds-dark); color: #fff; }
.dds-wk-hd { text-align: center; padding: 6px 2px; font-weight: bold; font-size: 13px; border-left: 1px solid #3e4c59; }
.dds-wk-hd.today { background: #1d4ed8; }
.dds-wk-hd.unav { color: var(--dds-grey); background: #3e4c59; }
.dds-wk-scroll { height: 640px; overflow-y: scroll; position: relative; }
.dds-wk-inner { position: relative; display: grid; grid-template-columns: 56px repeat(7, 1fr); }
.dds-wk-gut { position: relative; background: #f3f4f6; }
.dds-wk-h { position: absolute; right: 4px; font-size: 11px; color: #555; transform: translateY(-7px); }
.dds-wk-col { position: relative; border-left: 1px solid #cbd2d9; cursor: cell;
  background-image: repeating-linear-gradient(to bottom, #d6dbe0 0, #d6dbe0 1px, transparent 1px, transparent 60px); }
.dds-wk-col.unav { background-color: #d9dde2; }
.dds-wk-col.today, .dds-wk-col.today.unav { background-color: #fde4e4; }
.dds-ev { position: absolute; left: 2px; right: 2px; border-radius: 4px; color: #fff; font-size: 11px; line-height: 1.25; padding: 2px 4px; overflow: hidden; cursor: pointer; box-sizing: border-box; user-select: none; }
.dds-ev.free { background: #f59e0b; color: #1f2937; }
.dds-ev.booked { background: #15803d; }
.dds-ev.booked.aut { background: #15803d; }
.dds-ev.booked.man { background: #2563eb; }
.dds-ev.drag { opacity: .8; z-index: 10; cursor: grabbing; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.dds-ev .t { font-weight: bold; }
.dds-ev .a { font-weight: bold; color: #fde68a; }
.dds-ev .bk { color: #dcfce7; }
.dds-ev .rz { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; background: rgba(255,255,255,.35); }

/* month calendars (student, make booking, availability) */
.dds-pub.dds-bookcal { width: 90%; margin: 0 auto; }
.dds-bc { width: 100%; }
.dds-bc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dds-bc-title { font-weight: bold; font-size: 18px; text-align: center; }
.dds-bc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dds-bc-dow { text-align: center; font-weight: bold; font-size: 12px; padding: 3px 0; }
.dds-bc-day { text-align: center; padding: 10px 0; border-radius: 4px; background: var(--dds-dark, #1f2933); color: #fff; min-height: 22px; }
.dds-bc-day.empty { background: transparent; }
.dds-bc-day.unav { background: #3e4c59; color: var(--dds-grey, #7b8794); }
.dds-bc-day.has { cursor: pointer; outline: 2px solid #1d4ed8; }
.dds-bc-day.has:hover { background: #1d4ed8; }
.dds-bc-day.sel { background: #1d4ed8; }
.dds-bc-day.click { cursor: pointer; }
.dds-bc-times, .dds-bc-form { margin-top: 12px; }
.dds-bc-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.dds-slot { background: var(--dds-dark, #1f2933); color: #fff; border: 2px solid transparent; border-radius: 6px; padding: 8px 14px; cursor: pointer; text-align: center; }
.dds-slot:hover, .dds-slot.sel { border-color: #1d4ed8; background: #1d4ed8; }
.dds-av { max-height: 560px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 8px; border: 1px solid #cbd2d9; background: #fff; }
.dds-av-m .dds-bc-day { padding: 6px 0; font-size: 13px; }
.dds-av-m .dds-bc-title { font-size: 15px; margin-bottom: 4px; }

/* forms */
.dds-f { display: block; margin: 0 0 12px; }
.dds-f label, .dds-f > span { display: block; font-weight: bold; margin-bottom: 3px; }
.dds-pub input[type=text], .dds-pub input[type=email], .dds-pub input[type=number], .dds-pub input[type=date], .dds-pub select, .dds-pub textarea { width: 100%; max-width: 480px; box-sizing: border-box; padding: 7px; }
.dds-profile-wrap, .dds-refl-wrap { max-width: 560px; }
.dds-intro { font-weight: bold; }
.dds-sub { font-weight: bold; margin: 16px 0 6px; }
.dds-form-grid label { display: block; margin: 8px 0; font-weight: bold; }
.dds-form-grid input { margin-left: 6px; }
.dds-gears label { display: inline-block; margin-right: 12px; font-weight: normal; }

/* modal */
.dds-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.dds-modal { background: #fff; border-radius: 8px; padding: 18px 22px; width: 440px; max-width: 94vw; max-height: 90vh; overflow: auto; }
.dds-modal h3 { margin-top: 0; }
.dds-modal-bar { margin-top: 12px; text-align: right; }

/* tables and cards */
.dds-tbl { margin-top: 8px; }
.dds-card { border: 1px solid #cbd2d9; background: #fff; padding: 10px 14px; margin: 12px 0; max-width: 640px; }
.dds-sc code { font-size: 14px; }

/* student sheets */
.dds-sheet-tabs { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 2px; }
.dds-tab { border: 1px solid #9aa5b1; border-bottom: 0; background: #e4e7eb; padding: 7px 14px; cursor: pointer; font-weight: bold; border-radius: 4px 4px 0 0; }
.dds-tab.on { background: #fff; border-color: #1d4ed8; color: #1d4ed8; }
.dds-sheet-body { border: 1px solid #9aa5b1; padding: 8px; background: #fff; overflow-x: auto; }
.dds-sheet-wrap { overflow-x: auto; }
.dds-sheet, .dds-sheet * { -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
.dds-sheet td, .dds-sheet th { font-size: inherit; line-height: normal; }
.dds-sheet input, .dds-sheet select, .dds-sheet textarea { font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: normal !important; height: 100% !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.dds-sheet textarea { padding: 4px !important; line-height: 1.2 !important; }
.dds-sheet { border-collapse: collapse; table-layout: fixed; background: #fff; font-family: Calibri, Carlito, Arial, sans-serif; }
.dds-sheet td, .dds-sheet th { padding: 0; overflow: hidden; border: 1px solid #e5e7eb; }
.dds-sheet input, .dds-sheet select, .dds-sheet textarea { width: 100%; height: 100%; box-sizing: border-box; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; padding: 0 2px; margin: 0; min-height: 0; box-shadow: none; resize: none; outline: 0; }
.dds-sheet textarea { padding: 4px; }
.dds-sheet input:focus, .dds-sheet select:focus, .dds-sheet textarea:focus { background: #fff !important; color: #000 !important; }
.dds-sheet-credit td, .dds-sheet-profile td { white-space: nowrap; }
.dds-sheet-credit td, .dds-sheet-profile td, .dds-sheet-pauto td, .dds-sheet-pman td { border: 0; }
.dds-strip { margin: 0 0 8px; }
.dds-strip label { margin-right: 14px; font-weight: bold; }
.dds-sm { width: 80px !important; }
.dds-slider-td { width: 180px; border: 0 !important; background: #fff; padding-left: 8px !important; white-space: nowrap; }
.dds-slider { width: 120px !important; vertical-align: middle; }
.dds-lvl { display: inline-block; width: 18px; text-align: center; font-weight: bold; margin-left: 6px; }
.dds-refl { margin: 0 0 28px; }
.dds-refl p { margin: 4px 0; }
.dds-box { border: 1px solid #000; padding: 6px; min-height: 40px; white-space: pre-wrap; margin-bottom: 8px; }

/* summary */
.dds-summary { font-size: 11px; width: 100%; min-width: 740px; }
.dds-summary th { font-size: 12px !important; font-weight: 700 !important; white-space: pre-line; text-align: center; vertical-align: middle; padding: 2px; background: #fff; color: #000; border: 2px solid #000; height: 80px; line-height: 1.5; }
.dds-summary th.vert { writing-mode: horizontal-tb; transform: none; }
.dds-summary td { height: 22px; text-align: center; white-space: nowrap; }
.dds-sum-link { color: inherit; font-weight: bold; text-decoration: underline; cursor: pointer; }
.dds-summary input { text-align: center; }

/* placeholders in grey */
.dds-pub ::placeholder { color: #9aa0a6; opacity: 1; }

/* PROFILE on mobile: everything centred */
@media (max-width: 800px) {
  .dds-sheet-profile { margin-left: auto; margin-right: auto; }
  .dds-sheet-profile td { text-align: center !important; }
  .dds-sheet-profile input, .dds-sheet-profile textarea { text-align: center !important; }
  .dds-sheet-profile select { -webkit-appearance: none; appearance: none; text-align: center !important; text-align-last: center !important; text-indent: 0; padding-left: 0 !important; padding-right: 0 !important; }
}

.dds-wd-bar{display:flex;flex-wrap:wrap;gap:14px;margin:8px 0}.dds-wd{font-weight:700;cursor:pointer}

/* FINANCE */
.dds-fin-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.dds-fin-top input { width: 130px; }
.dds-fin-top input.dds-sm { width: 80px; }
.dds-fin-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 8px 0; }
.dds-fin-tab { border: 1px solid #9ca3af; background: #e5e7eb; color: #111; padding: 4px 9px; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: bold; }
.dds-fin-tab.on { background: #00b050; border-color: #00b050; color: #fff; }
.dds-fin-wrap { width: 100%; }
.dds-fin-host { overflow: auto; max-height: 75vh; background: #fff; border: 1px solid #c7c7c7; }
.dds-fin-host.scaled { overflow: hidden; max-height: none; }
.dds-fin-fit { display: inline-block; }
.dds-fin-tbl td { padding: 0; margin: 0; position: relative; overflow: visible; line-height: 1.1; box-sizing: border-box; background: #fff; font-family: Arial, Helvetica, "Liberation Sans", sans-serif; white-space: nowrap; }
.dds-fin-tbl td.frz { position: sticky; z-index: 3; }
.dds-fin-host.scaled .dds-fin-tbl td.frz { position: relative; top: auto !important; }
.dds-fc { position: absolute; top: 0; bottom: 0; display: flex; overflow: hidden; white-space: nowrap; padding: 0 2px; box-sizing: border-box; }
.dds-mtd p { font-size: 14px; }
.dds-fin-tbl td.ed { cursor: cell; }
.dds-fin-tbl td.ed:hover { outline: 2px solid #00b050; outline-offset: -2px; }
.dds-fin-in { position: absolute; left: 0; top: 0; height: 100%; z-index: 20; box-sizing: border-box; font: inherit; font-size: 13px; padding: 0 3px; border: 2px solid #00b050; background: #fff; color: #000; }

/* members */
.dds-mem-tbl { border-collapse: collapse; width: 100%; max-width: 900px; margin-bottom: 18px; }
.dds-mem-tbl th, .dds-mem-tbl td { border: 1px solid #999; padding: 4px 8px; text-align: left; font-size: 13px; }
.dds-mem-tbl th { background: #eee; }
.dds-mem-chips { margin-bottom: 4px; }
.dds-mem-chip { display: inline-block; background: #e6efe6; border: 1px solid #7a9a7a; border-radius: 10px; padding: 1px 8px; margin: 0 4px 4px 0; font-size: 12px; }
.dds-mem-chip a { color: #b00020; text-decoration: none; font-weight: bold; }

/* student name, centred tabs, calendar, instructor notes, login details */
.dds-student-name { text-align: center; font-size: 22px; font-weight: bold; margin: 6px 0 4px; }
.dds-student .dds-sheet-tabs { justify-content: center; }
.dds-cal { max-width: 560px; margin: 0 auto; }
.dds-cal-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.dds-cal-title { font-weight: bold; font-size: 16px; min-width: 150px; text-align: center; }
.dds-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dds-cal-dow { text-align: center; font-weight: bold; font-size: 12px; padding: 3px 0; }
.dds-cal-day { min-height: 54px; padding: 3px; border-radius: 4px; background: #f3f4f6; font-size: 11px; box-sizing: border-box; overflow: hidden; }
.dds-cal-day.empty { background: transparent; }
.dds-cal-day.today { outline: 2px solid #1d4ed8; }
.dds-cal-day.has { background: #2563eb; color: #fff; }
.dds-cal-day .dn { font-weight: bold; font-size: 12px; }
.dds-cal-day .ls { font-size: 10px; line-height: 1.2; }
.dds-cal-list { margin: 12px 0; }
.dds-cal-up { padding: 3px 0; }
.dds-cal-feed { margin: 14px 0 4px; padding-top: 10px; border-top: 1px solid #cbd2d9; }
.dds-cal-feed .dds-feed { margin-right: 6px; }
.dds-cal-feed a.dds-btn { display: inline-block; text-decoration: none; margin-top: 6px; }
.dds-notes { max-width: 640px; }
.dds-n-b { margin: 0 0 12px; }
.dds-n-h { padding: 4px 8px; font-weight: bold; background: #e4e7eb; border-radius: 4px 4px 0 0; }
.dds-n-h.amber { background: #FFC000; color: #000; }
.dds-n-h.red { background: #FF0000; color: #fff; }
.dds-n-t { display: block; width: 100%; box-sizing: border-box; border: 1px solid #9aa5b1; border-top: 0; padding: 6px; font: inherit; resize: vertical; }
.dds-n-t::placeholder { font-weight: bold; opacity: 1; color: #6b7280; }
.dds-n-t.miss::placeholder { color: #b91c1c; }
.dds-n-t.nl::placeholder { color: #b45309; }
.dds-ev.booked.one { background: #2563eb; }
.dds-ev.booked.unp { background: #dc2626; }
.dds-login-txt { white-space: pre-wrap; border: 1px solid #cbd2d9; background: #f9fafb; padding: 10px; margin: 0 0 10px; font-family: inherit; }
.dds-pickup { text-align: center; font-weight: bold; font-size: 18px; color: #fff; background: #b91c1c; padding: 6px 10px; margin: 6px 0; border-radius: 4px; }
.dds-consent { margin: 14px 0; max-width: 640px; }
a.dds-btn { display: inline-block; text-decoration: none; }
.dds-mv { cursor: pointer; color: #1d4ed8; font-weight: bold; }
.dds-how { display: inline-block; vertical-align: top; margin-right: 6px; }
.dds-how summary { cursor: pointer; display: inline-block; }
.dds-how p { max-width: 640px; background: #fff; padding: 8px 10px; border: 1px solid #ccd0d4; margin: 6px 0 0; }
.dds-modal.dds-swapbox { width: 1100px; }
.dds-swapbox .dds-wk-scroll { height: 430px; }
.dds-ev.swapno { opacity: .3; }
.dds-ev.swapfrom { outline: 3px solid #facc15; z-index: 5; }
.dds-swapbox .dds-wk-head { background: #1f2933; color: #fff; }
.dds-swapbox .dds-wk-hd.today { background: #1d4ed8; }
.dds-swapbox .dds-wk-hd.unav { background: #3e4c59; color: #9aa5b1; }
.dds-swapbox .dds-wk-scroll { padding-top: 8px; }
/* TI MD web view: WordPress admin styles the app uses, for pages outside WordPress admin */
body .dds-office { max-width: none; width: 100vw; box-sizing: border-box; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding: 0 14px; }
html:has(.dds-office) { overflow-x: hidden; }
.dds-office .nav-tab-wrapper { border-bottom: 1px solid #c3c4c7; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; }
.dds-office .nav-tab { display: inline-block; padding: 6px 10px; border: 1px solid #c3c4c7; border-bottom: 0; background: #dcdcde; color: #2c3338; font-weight: 600; font-size: 13px; text-decoration: none; line-height: 1.6; }
.dds-office .nav-tab:hover { background: #fff; }
.dds-office .nav-tab-active, .dds-office .nav-tab-active:hover { background: #f0f0f1; color: #000; border-bottom: 1px solid #f0f0f1; margin-bottom: -1px; }
.dds-office table.widefat { width: 100%; border: 1px solid #c3c4c7; border-collapse: collapse; background: #fff; }
.dds-office table.widefat th, .dds-office table.widefat td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #f0f0f1; }
.dds-office table.striped > tbody > tr:nth-child(odd) { background: #f6f7f7; }
.dds-office .notice { background: #fff; border: 1px solid #c3c4c7; border-left: 4px solid #72aee6; padding: 6px 12px; margin: 8px 0; }
.dds-office .notice-warning { border-left-color: #dba617; }
