/* Dentist account pages — intentionally scoped to the account shell. */

/* Dentist panel navigation is separate from the public header. */

/* Fallback protection: even an adopted/stale account page must not use the narrow generic page canvas. */
.academy-account-page .site-content.wrap{width:100%;max-width:none;margin:0;padding:0}
.academy-account-page .content-card{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.academy-account-page .content-card>.content-header{display:none}
.academy-account-page .content-card>.entry-content{width:100%;max-width:none;margin:0;padding:0}
.academy-account-page .academy-account-content{width:100%;max-width:none}

.academy-account-page{overflow-x:clip}
/* Full-bleed safety for detail pages adopted from an older generic page canvas. */
.academy-account-page .page-shell,.academy-account-page .site-header{width:100%;max-width:none}
.academy-account-main{width:100vw;max-width:none;min-width:0;margin-inline:calc(50% - 50vw)}
.academy-account-main .dentist-panel-layout{width:min(1440px,calc(100vw - clamp(28px,4vw,64px)))}
.dentist-panel-layout{display:grid;grid-template-columns:clamp(220px,22vw,280px) minmax(0,1fr);grid-template-areas:"sidebar main";align-items:start;gap:clamp(20px,2.6vw,38px);width:min(1440px,calc(100% - clamp(28px,4vw,64px)));max-width:100%;margin-inline:auto;padding:clamp(34px,5vw,72px) 0;direction:rtl}
.dentist-panel-layout--without-sidebar{grid-template-columns:minmax(0,1080px);grid-template-areas:"main";justify-content:center}
.dentist-account-sidebar{grid-area:sidebar;min-width:0;max-width:100%}
.dentist-account-sidebar-disclosure{position:sticky;top:104px;display:block;max-width:100%;overflow:hidden;border:1px solid rgba(12,79,64,.14);border-radius:22px;background:rgba(255,255,255,.9);box-shadow:0 18px 46px rgba(4,51,41,.1)}
.dentist-account-sidebar-toggle{display:none}
.dentist-account-sidebar-nav{max-width:100%;padding:14px}
.dentist-account-sidebar-nav ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.dentist-account-sidebar-nav a{display:flex;align-items:center;min-height:46px;max-width:100%;padding:10px 13px;border:1px solid transparent;border-radius:12px;color:#1d5145;font-size:14px;font-weight:800;line-height:1.5;text-decoration:none;overflow-wrap:anywhere;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.dentist-account-sidebar-nav a:hover{border-color:rgba(13,110,84,.16);background:#edf6f2;color:#07523f}
.dentist-account-sidebar-nav a[aria-current="page"]{border-color:#0d755b;background:#0b654f;color:#fff;box-shadow:0 8px 18px rgba(7,82,63,.16)}
.dentist-account-sidebar-nav a:focus-visible,.dentist-account-sidebar-toggle:focus-visible{outline:3px solid rgba(14,119,93,.3);outline-offset:3px}
.dentist-account-sidebar-item--logout{margin-top:7px;padding-top:9px;border-top:1px solid rgba(12,79,64,.11)}
.dentist-panel-main-content{grid-area:main;width:100%;min-width:0;max-width:100%}
.dentist-panel-main-content .academy-account{min-height:0;padding:0}
.dentist-panel-main-content .academy-account-shell{width:100%;max-width:1080px}
.dentist-panel-main-content img,.dentist-panel-main-content input,.dentist-panel-main-content select,.dentist-panel-main-content textarea,.dentist-panel-main-content button{max-width:100%}

@media (max-width:960px){
  .dentist-panel-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"sidebar" "main";gap:18px;width:min(100vw - 28px,1080px);padding:28px 0 54px}
  .dentist-account-sidebar-disclosure{position:static;top:auto;border-radius:18px}
  .dentist-account-sidebar-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:11px 15px;color:#0b5845;font-weight:900;cursor:pointer;list-style:none}
  .dentist-account-sidebar-toggle::-webkit-details-marker{display:none}
  .dentist-account-sidebar-toggle-icon{position:relative;width:18px;height:18px;flex:0 0 18px}
  .dentist-account-sidebar-toggle-icon::before,.dentist-account-sidebar-toggle-icon::after{content:"";position:absolute;top:8px;right:2px;width:14px;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease}
  .dentist-account-sidebar-toggle-icon::after{transform:rotate(90deg)}
  .dentist-account-sidebar-disclosure[open] .dentist-account-sidebar-toggle-icon::after{transform:rotate(0)}
  .dentist-account-sidebar-nav{padding:12px;border-top:1px solid rgba(12,79,64,.11)}
}

@media (max-width:480px){
  .dentist-panel-layout{width:min(100vw - 20px,1080px);padding-top:20px}
  .dentist-account-sidebar-nav{padding:9px}
  .dentist-account-sidebar-nav a{min-height:44px;padding:9px 11px}
}
.academy-account-page .page-shell{background:radial-gradient(circle at 14% 12%,rgba(206,177,112,.14),transparent 28%),linear-gradient(180deg,#edf4f0 0%,#f8faf8 58%,#eef4f1 100%)}
.academy-account{min-height:calc(100svh - 180px);padding:clamp(42px,7vw,88px) 0;color:#153d33}
.academy-account-shell{width:min(1080px,calc(100% - 36px));margin-inline:auto}
.academy-account-heading{max-width:760px;margin:0 auto clamp(22px,4vw,38px);text-align:center}
.academy-account-heading>span{display:inline-flex;margin-bottom:10px;padding:6px 13px;border:1px solid rgba(13,91,73,.16);border-radius:999px;background:rgba(255,255,255,.64);color:#0b6852;font-size:13px;font-weight:800}
.academy-account-heading h1{margin:0;color:#073e32;font-size:clamp(30px,4.4vw,50px);line-height:1.35}
.academy-account-heading p{max-width:62ch;margin:13px auto 0;color:#526e66;font-size:clamp(15px,1.7vw,18px);line-height:1.9}
.academy-account-card{padding:clamp(22px,4vw,42px);border:1px solid rgba(12,79,64,.12);border-radius:28px;background:rgba(255,255,255,.90);box-shadow:0 24px 62px rgba(4,51,41,.10)}
@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){.academy-account-card{background:rgba(255,255,255,.78);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}}
.academy-account-card-narrow{width:min(580px,100%);margin-inline:auto}
.academy-account-card h2{margin:0 0 18px;color:#073e32;font-size:23px}
.academy-account-form{display:grid;gap:20px}
.academy-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.academy-account-field{display:grid;align-content:start;gap:7px;min-width:0}
.academy-account-field-wide{grid-column:1/-1}
.academy-account-field label{color:#153d33;font-size:14px;font-weight:800}
.academy-account-field label small{color:#71867f;font-weight:600}
.academy-account-field input{width:100%;min-height:49px;padding:11px 13px;border:1px solid #bed0ca;border-radius:13px;background:#fff;color:#183f35;font:inherit;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
.academy-account-field input[readonly]{background:#edf3f0;color:#49675f;cursor:not-allowed}
.academy-account-field input:focus-visible,.academy-account-check a:focus-visible,.academy-account-links a:focus-visible,.academy-account-switch a:focus-visible,.academy-account-button:focus-visible,.academy-account-submit:focus-visible{outline:3px solid rgba(14,119,93,.24);outline-offset:2px}
.academy-account-field input:focus{border-color:#148263;box-shadow:0 0 0 4px rgba(20,130,99,.10)}
.academy-account-field input[aria-invalid="true"]{border-color:#b43f4d;box-shadow:0 0 0 3px rgba(180,63,77,.09)}
.academy-account-field>small{color:#6a817a;font-size:12px}
.academy-account-field-error{color:#9b2737;font-size:13px;font-weight:700}
.academy-account-check label{display:flex;align-items:flex-start;gap:10px;color:#435f57;line-height:1.8}
.academy-account-check input{width:18px;height:18px;margin-top:5px;accent-color:#0c7158}
.academy-account-check a,.academy-account-links a,.academy-account-switch a{color:#096a53;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.academy-account-submit,.academy-account-button{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:11px 20px;border:1px solid #086b54;border-radius:14px;background:linear-gradient(135deg,#08745a,#075340);color:#fff;font:inherit;font-weight:850;text-align:center;cursor:pointer;box-shadow:0 12px 26px rgba(5,89,68,.17);transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.academy-account-submit:hover,.academy-account-button:hover{transform:translateY(-1px);box-shadow:0 15px 30px rgba(5,89,68,.22)}
.academy-account-submit:disabled{opacity:.65;cursor:wait;transform:none}
.academy-account-button-secondary{border-color:#a9c0b9;background:#fff;color:#0b5d49;box-shadow:none}
.academy-account-button-quiet{border-color:transparent;background:transparent;color:#5c726c;box-shadow:none}
.academy-account-alert{margin:0 0 20px;padding:14px 16px;border:1px solid;border-radius:14px;line-height:1.8}
.academy-account-alert h2{margin:0 0 6px;font-size:16px}
.academy-account-alert ul{margin:0;padding-inline-start:21px}
.academy-account-alert-error{border-color:#edc0c6;background:#fff3f4;color:#812635}
.academy-account-alert-success{border-color:#afd9c5;background:#eefaf4;color:#075a45}
.academy-account-alert-info{border-color:#bdd6df;background:#f0f8fb;color:#285664}
.academy-account-links,.academy-account-actions,.academy-account-panel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:11px}
.academy-account-links{justify-content:space-between;margin-top:21px}
.academy-account-switch{margin:22px 0 0;color:#5c726c;text-align:center}
.academy-account-status-card{width:min(720px,100%);margin-inline:auto;text-align:center}
.academy-account-status{display:inline-flex;padding:7px 15px;border-radius:999px;background:#edf3f0;color:#315e52;font-weight:850}
.academy-account-status-approved{background:#ddf5e9;color:#066044}.academy-account-status-pending{background:#fff4d7;color:#76520b}.academy-account-status-rejected{background:#fde7e9;color:#842d3b}.academy-account-status-suspended{background:#e8edf0;color:#41545d}
.academy-account-status-message{margin:19px auto;color:#3d5d54;font-size:17px;line-height:1.9}
.academy-account-status-card .academy-account-actions,.academy-account-panel-actions{justify-content:center}
.academy-account-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.academy-account-dashboard-card{min-width:0;padding:24px;border:1px solid rgba(12,79,64,.12);border-radius:20px;background:rgba(255,255,255,.82);box-shadow:0 16px 36px rgba(4,51,41,.08)}
.academy-account-dashboard-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e5f2ed;color:#0a7056;font-size:24px}
.academy-account-dashboard-card h2{margin:16px 0 7px;color:#0a493a;font-size:20px}.academy-account-dashboard-card p{margin:0;color:#6a7d77}
.academy-account-profile-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:20px;align-items:start}
.academy-account-password-card>p{color:#657a74;line-height:1.8}.academy-account-profile-layout+.academy-account-actions{margin-top:20px}
.academy-account-honeypot{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.academy-account-guard{width:min(680px,calc(100% - 36px));margin:70px auto;padding:24px;border-radius:18px;background:#fff;color:#365a50;text-align:center}
@media (max-width:800px){.academy-account-dashboard-grid,.academy-account-profile-layout{grid-template-columns:1fr}}
@media (max-width:620px){.academy-account{padding:34px 0 52px}.academy-account-shell{width:min(100% - 28px,1080px)}.academy-account-card{padding:20px 17px;border-radius:20px}.academy-account-grid{grid-template-columns:1fr;gap:15px}.academy-account-field-wide{grid-column:auto}.academy-account-links,.academy-account-actions,.academy-account-panel-actions{align-items:stretch;flex-direction:column}.academy-account-links a,.academy-account-button{width:100%;text-align:center}}
@media (prefers-reduced-motion:reduce){.academy-account *,.academy-account *::before,.academy-account *::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Dentist orders (0.12.0): intentionally scoped to the account canvas. */
.academy-account .academy-orders-heading{margin:0 auto 26px;text-align:center}.academy-account .academy-orders-heading h1{margin:0;color:#073e32;font-size:clamp(28px,4vw,44px)}.academy-account .academy-orders-heading p{margin:10px auto 0;max-width:68ch;color:#5a746c;line-height:1.9}
.academy-account .academy-orders-list,.academy-account .academy-treatments-list{display:grid;gap:18px}
.academy-account .academy-order-card,.academy-account .academy-treatment-card,.academy-account .academy-order-parent-note,.academy-account .academy-account-empty{padding:22px;border:1px solid rgba(12,79,64,.13);border-radius:21px;background:rgba(255,255,255,.88);box-shadow:0 16px 38px rgba(4,51,41,.08)}
.academy-account .academy-order-card-head,.academy-account .academy-treatment-card>header,.academy-account .academy-order-detail-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.academy-account .academy-order-card-head h2,.academy-account .academy-treatment-card h2{margin:0;color:#073e32;font-size:20px;overflow-wrap:anywhere}.academy-account .academy-order-card-head>span,.academy-account .academy-treatment-status{display:inline-flex;padding:6px 11px;border-radius:999px;background:#dff3e9;color:#096147;font-size:13px;font-weight:850}
.academy-account .academy-order-summary,.academy-account .academy-treatment-facts,.academy-account .academy-treatment-technical dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 0}
.academy-account .academy-order-summary>div,.academy-account .academy-treatment-facts>div,.academy-account .academy-treatment-technical dl>div{min-width:0;padding:12px;border-bottom:1px solid #dfeae6}
.academy-account .academy-order-summary dt,.academy-account .academy-treatment-facts dt,.academy-account .academy-treatment-technical dt{color:#6d827b;font-size:12px;font-weight:800}.academy-account .academy-order-summary dd,.academy-account .academy-treatment-facts dd,.academy-account .academy-treatment-technical dd{margin:5px 0 0;color:#123f34;font-weight:750;overflow-wrap:anywhere}
.academy-account .academy-treatment-card>header>div>span{color:#6b8079;font-size:13px;font-weight:800}.academy-account .academy-treatment-technical{margin:16px 0}.academy-account .academy-treatment-technical summary{cursor:pointer;color:#0a674f;font-weight:850}
.academy-account .academy-order-detail-actions{justify-content:flex-start;margin:18px 0}.academy-account .academy-orders-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:24px 0 0;padding:0;list-style:none}.academy-account .academy-orders-pagination a,.academy-account .academy-orders-pagination span{display:grid;place-items:center;min-width:42px;min-height:42px;padding:6px;border-radius:10px;background:#fff;color:#15594a;font-weight:800}.academy-account .academy-orders-pagination .current{background:#0b7057;color:#fff}
.academy-account .academy-account-empty{text-align:center}.academy-account .academy-account-empty p{margin:0 0 14px;color:#526f67}.academy-account .academy-account-card-link{display:inline-flex;margin-top:14px;color:#087057;font-weight:850;text-decoration:underline;text-underline-offset:3px}
.academy-account .academy-add-treatment-form{padding:clamp(18px,3vw,30px);border:1px solid rgba(12,79,64,.13);border-radius:22px;background:rgba(255,255,255,.88)}
.academy-account .academy-required-marker{display:none;color:#9b2737}.academy-account .academy-account-field.is-required .academy-required-marker{display:inline}
.academy-account [data-treatment-field].has-error,.academy-account [data-treatment-field].has-client-error{border-color:rgba(155,39,55,.45)}
.academy-account [aria-invalid="true"]{border-color:#a33443!important;box-shadow:0 0 0 3px rgba(163,52,67,.1)!important}
.academy-account .academy-account-field-error{display:block;margin-top:6px;color:#9b2737;font-size:12px;font-weight:750;line-height:1.7}
.academy-account .sc-jalali-field{position:relative;z-index:6}
.academy-account .sc-jalali-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.academy-account .sc-jalali-control input{font-family:Arial,sans-serif;direction:ltr;text-align:left}
.academy-account .sc-jalali-control>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:95px;min-height:46px;padding:8px 12px;border:1px solid rgba(12,81,63,.21);border-radius:12px;background:#e7f3ed;color:#0a4939;font:800 12px/1.4 inherit;cursor:pointer}
.academy-account .sc-jalali-calendar{position:absolute;z-index:30;top:78px;right:0;width:min(380px,100%);padding:13px;border:1px solid rgba(12,81,63,.2);border-radius:18px;background:rgba(253,251,246,.98);box-shadow:0 24px 55px rgba(6,57,45,.2)}
@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))){.academy-account .sc-jalali-calendar{background:rgba(253,251,246,.91);-webkit-backdrop-filter:blur(12px) saturate(108%);backdrop-filter:blur(12px) saturate(108%)}}
.academy-account .sc-calendar-head{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:7px;align-items:center}.academy-account .sc-calendar-head strong{text-align:center;color:#0a4939;font-size:13px}
.academy-account .sc-calendar-head button,.academy-account .sc-calendar-actions button{min-height:36px;padding:6px;border:1px solid rgba(12,81,63,.15);border-radius:10px;background:#fff;color:#0c513f;font:800 15px/1 inherit;cursor:pointer}.academy-account .sc-calendar-head button:disabled{opacity:.35;cursor:not-allowed}
.academy-account .sc-calendar-weekdays,.academy-account .sc-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:9px}.academy-account .sc-calendar-weekdays span{padding:3px;text-align:center;color:#7d8a85;font-size:10px;font-weight:800}
.academy-account .sc-calendar-days>button{position:relative;display:grid;place-items:center;min-width:0;min-height:36px;padding:4px;border:1px solid transparent;border-radius:9px;background:transparent;color:#284f44;font:700 11px/1 Arial,sans-serif;cursor:pointer}.academy-account .sc-calendar-days>button:not(:disabled):hover{border-color:rgba(12,81,63,.2);background:#edf6f1}.academy-account .sc-calendar-days>button.is-today{border-color:rgba(189,152,82,.55);color:#745b28}.academy-account .sc-calendar-days>button.is-selected{border-color:#0c513f;background:#0c513f;color:#fff;box-shadow:0 5px 12px rgba(6,57,45,.18)}.academy-account .sc-calendar-days>button:disabled{color:#aab2af;text-decoration:line-through;cursor:not-allowed;opacity:.45}.academy-account .sc-calendar-blank{min-height:36px}
.academy-account .sc-calendar-actions{display:flex;justify-content:space-between;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid rgba(12,81,63,.1)}.academy-account .sc-calendar-actions button{min-width:86px;font-size:11px}
.academy-account .academy-account-field select,.academy-account .academy-account-field textarea{width:100%;padding:11px 13px;border:1px solid #bed0ca;border-radius:13px;background:#fff;color:#183f35;font:inherit}.academy-account .academy-account-field select{min-height:49px}.academy-account .academy-account-field textarea{resize:vertical}
.academy-account .academy-account-field select:focus,.academy-account .academy-account-field textarea:focus{border-color:#148263;box-shadow:0 0 0 4px rgba(20,130,99,.10);outline:0}.academy-account .academy-account-field [aria-invalid=true]{border-color:#b43f4d}
.academy-account .academy-treatment-panels>fieldset,.academy-account .academy-teeth-fieldset,.academy-account .academy-account-field[role=group]{margin:0;padding:18px;border:1px solid #d7e5e0;border-radius:17px}.academy-account fieldset>legend{padding:0 8px;color:#154c3f;font-weight:850}
.academy-account .academy-teeth-grid{display:grid;grid-template-columns:repeat(8,minmax(42px,1fr));gap:7px}.academy-account .academy-teeth-grid label{display:grid;place-items:center;min-height:45px;border:1px solid #cadbd5;border-radius:10px;background:#f8fbfa;cursor:pointer}.academy-account .academy-teeth-grid input{position:absolute;opacity:0}.academy-account .academy-teeth-grid label:has(input:checked){border-color:#0d7a5e;background:#ddf3ea;color:#075b45;font-weight:850}.academy-account .academy-teeth-grid label:has(input:focus-visible){outline:3px solid rgba(14,119,93,.24);outline-offset:2px}
.academy-account .academy-choice-grid{display:flex;flex-wrap:wrap;gap:9px}.academy-account .academy-choice-grid label{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #d3e1dc;border-radius:9px;background:#fafcfb}.academy-account .academy-choice-grid input{accent-color:#0c7158}
.academy-account .academy-order-parent-note{margin-bottom:18px;color:#2f5c50}.academy-account .academy-order-parent-note p{margin:8px 0 0;line-height:1.8}
@media(max-width:800px){.academy-account .academy-order-summary,.academy-account .academy-treatment-facts,.academy-account .academy-treatment-technical dl{grid-template-columns:repeat(2,minmax(0,1fr))}.academy-account .academy-teeth-grid{grid-template-columns:repeat(4,minmax(42px,1fr))}}
@media(max-width:620px){.academy-account .academy-order-card,.academy-account .academy-treatment-card{padding:17px}.academy-account .academy-order-summary,.academy-account .academy-treatment-facts,.academy-account .academy-treatment-technical dl{grid-template-columns:1fr}.academy-account .academy-order-detail-actions{align-items:stretch;flex-direction:column}.academy-account .academy-teeth-grid{grid-template-columns:repeat(4,minmax(38px,1fr))}.academy-account .sc-jalali-control{grid-template-columns:1fr}.academy-account .sc-jalali-control>button{width:100%}.academy-account .sc-jalali-calendar{top:126px;width:100%;padding:10px;border-radius:15px}.academy-account .sc-calendar-days>button,.academy-account .sc-calendar-blank{min-height:32px}}
@media(max-width:360px){.academy-account .academy-teeth-grid{grid-template-columns:repeat(4,minmax(34px,1fr))}}
/* Bounded pickup-location editors in the existing Dentist profile card. */
.academy-account .academy-pickup-location-list{display:grid;gap:16px}
.academy-account .academy-pickup-location-editor{min-width:0;margin:0;padding:18px;border:1px solid #d7e5e0;border-radius:17px;background:#fbfdfc}
.academy-account .academy-pickup-location-editor>legend{padding:0 8px;color:#154c3f;font-weight:850}
.academy-account .academy-pickup-location-actions{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:15px;padding-top:13px;border-top:1px solid #dfeae6}
.academy-account .academy-pickup-location-actions label{display:inline-flex;align-items:center;gap:7px;color:#315d52;font-size:13px;font-weight:800;cursor:pointer}
.academy-account .academy-pickup-location-actions input{width:18px;height:18px;accent-color:#0c7158}
.academy-account .academy-pickup-location-delete{color:#913544!important}
