
:root{--ph-navy:#143952;--ph-blue:#2481a7;--ph-line:#dce6ee;--ph-fg:#22364b;--ph-surface:#fff;--ph-muted:#617589;--ph-bg:#f4f7fb}
body{background:var(--ph-bg)!important;color:var(--ph-fg)}
.topbar{position:sticky;top:0;z-index:10;background:var(--ph-navy)}
.masthead{min-height:70px}.brand{font-size:17px}
.shell{max-width:none!important;margin:0!important;padding:0 24px!important}.wrap{max-width:none!important;margin:0!important;padding:24px!important;display:block;min-height:calc(100vh - 70px)}
.panel{max-width:1480px;margin:0 auto;border:0;box-shadow:none;padding:10px 16px;background:transparent}
.panel.login{max-width:520px;margin:8vh auto;border:1px solid var(--ph-line);background:white;box-shadow:0 14px 34px #14395215;padding:36px}
.nav{padding:0!important}.nav a,.nav button{font-size:14px;padding:10px 12px}.nav a.active{background:#286082}
body:has(.nav) .wrap{margin-left:200px!important}
body:has(.nav) .nav{position:fixed;left:0;top:70px;bottom:0;width:200px;background:#fff;display:flex;flex-direction:column;align-items:stretch;gap:5px;border-right:1px solid var(--ph-line);padding:20px 12px!important;box-shadow:2px 0 8px #183a5710}
body:has(.nav) .nav a,body:has(.nav) .nav button{color:#34506a;text-align:left;width:100%;font-weight:600}
body:has(.nav) .nav a:hover,body:has(.nav) .nav button:hover{background:#eef5f9;color:#114b70}
body:has(.nav) .nav form{margin-top:auto}
h1{font-size:29px;font-weight:750}h2{font-size:21px}.lead{margin-bottom:18px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:16px}.stat{background:#fff;border:1px solid var(--ph-line);border-radius:14px;min-height:100px;padding:19px}.stat strong{font-size:28px}
.tile{transition:box-shadow .16s,border-color .16s}.tile:hover{box-shadow:0 10px 24px #173b6017;border-color:#a8cadc}.tile-icon{background:#e7f2f7}
.empty{background:#fff;border:1px dashed #c9dbe7;padding:32px}
table{background:#fff;border:1px solid var(--ph-line);border-radius:14px;box-shadow:0 3px 16px #153b5410}th{background:#f3f7fa}button{transition:background .15s}
.ph-pill{padding:5px 10px;display:inline-flex;background:#e7f4ee;color:#137454;border-radius:999px;font-size:12px;font-weight:700;margin-bottom:12px}
.ph-auth-intro{font-size:14px;color:var(--ph-muted)}.ph-auth-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}.ph-auth-logo{background:#177fa0;border-radius:15px;color:white;font-size:25px;display:grid;place-items:center;width:48px;height:48px}
.ph-auth-hint{font-size:13px;color:#657b8d}.ph-backlink{display:inline-block;margin-top:14px}.ph-alert{padding:12px;border-radius:9px;background:#fff1f0;color:#922b2f}
.ph-core-section{background:white;border:1px solid var(--ph-line);border-radius:14px;padding:18px;margin:18px 0}.ph-core-section h2{margin:0 0 14px}.ph-muted{color:#647a8b;font-size:13px}
@media(max-width:800px){body:has(.nav) .wrap{margin-left:0!important}.masthead{min-height:62px}body:has(.nav) .nav{position:static;top:auto;width:auto;flex-direction:row;display:flex;overflow-x:auto;box-shadow:none;background:#143952;border:0;padding:0 10px 10px!important}body:has(.nav) .nav a,body:has(.nav) .nav button{color:white!important;width:auto;white-space:nowrap;font-size:12px;padding:7px}body:has(.nav) .nav form{margin:0}.wrap{padding:14px!important}.panel{padding:4px}.panel.login{padding:22px}}


/* Pharmacy Core Design System v1 — core-only, no vendor engines */
:root{--ph-radius:12px;--ph-radius-lg:16px;--ph-focus:#4ca8d2;--ph-shadow:0 4px 18px rgba(16,48,76,.055);--ph-space:8px;--ph-success:#13735d;--ph-danger:#b22c39}
.topbar .masthead{min-height:68px}
.brand{gap:10px;white-space:normal;line-height:1.15}.brandmark{flex:0 0 auto}.ph-core-version{white-space:nowrap;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.13);border-radius:5px;padding:4px 7px;font-variant-numeric:tabular-nums}
body:has(.nav) .nav a{position:relative;border:1px solid transparent;transition:background .12s ease,color .12s ease}
body:has(.nav) .nav a[aria-current="page"]{background:#e5f2f8;color:#105474;border-color:#cfe4ef}
body:has(.nav) .nav a[aria-current="page"]:before{content:"";position:absolute;left:-7px;top:20%;height:60%;width:3px;border-radius:9px;background:#208ba9}
body:has(.nav) .nav form{width:100%}
button,input,select{min-height:38px}input[type="checkbox"],input[type="radio"]{min-height:auto;width:auto;accent-color:#12648e}
input:disabled,button:disabled{opacity:.58;cursor:not-allowed}
button{font-weight:650}button:active{transform:translateY(1px)}
.panel h1{letter-spacing:-.025em}.panel h2{letter-spacing:-.015em}
.stat{box-shadow:var(--ph-shadow);gap:9px}.stat strong{line-height:1.14}.stats{margin-top:20px}
.ph-core-section{box-shadow:var(--ph-shadow)}
.grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.tile{min-height:168px;display:flex;flex-direction:column;align-items:flex-start}.tile h3{line-height:1.35}.tile .chip{margin-top:auto}
.empty{min-height:140px;display:flex;flex-direction:column;justify-content:center}
.panel table:not(.phlog-table table){width:100%;border-collapse:separate;border-spacing:0}
.panel table td,.panel table th{line-height:1.4}
.panel table tbody tr:hover{background:#f6f9fc}
.panel table th{position:sticky;top:0;z-index:1}
.panel form:not(.inline) label{max-width:100%}
.ph-page-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:18px}
.ph-context-tag{background:#eaf3f8;color:#24536c;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}
.ph-status-tag{background:#e8f7ef;color:#13735d;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}
.ph-empty-text{color:#687d8c;font-size:13px}
.phlog-table table{min-width:800px}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:8px}}
@media(max-width:800px){body:has(.nav) .nav a[aria-current="page"]{color:#fff;background:#286082;border-color:#4c819c}body:has(.nav) .nav a[aria-current="page"]:before{display:none}body:has(.nav) .nav form{width:auto}.topbar .masthead{min-height:60px}.ph-core-version{font-size:11px}.panel table th{position:static}}
@media(max-width:520px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat{padding:14px;min-width:0;min-height:84px}.stat strong{font-size:21px}.grid{grid-template-columns:1fr}.brand{font-size:14px}.brandmark{width:29px;height:29px}.ph-core-version{padding:3px 5px}.ph-core-section{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* Alpha8.10 user management */
.ph-user-create{border:1px solid #dbe5ec;border-radius:12px;padding:15px 18px;background:#fff;margin:14px 0 20px}.ph-user-create summary{font-weight:700;cursor:pointer}.ph-user-create form{max-width:480px;margin-top:12px}
.ph-user-filters{display:grid;grid-template-columns:minmax(190px,2fr) repeat(3,minmax(120px,1fr)) auto;align-items:end;gap:10px;margin:18px 0 12px}.ph-user-filters label{font-size:13px;margin:0}.ph-user-filters input,.ph-user-filters select{margin-top:4px}.ph-user-filters button{margin:0}
.ph-user-table-wrap{overflow:auto;border:1px solid #dbe5ec;border-radius:12px;background:#fff}.ph-user-table{width:100%;min-width:810px!important;display:table!important}.ph-user-table th{position:static!important;background:#f2f6fa}.ph-user-table td{vertical-align:middle}.ph-user-table td:nth-child(4){min-width:260px}.ph-user-table button{font-size:12px;margin:3px 0;padding:7px 10px}.ph-user-table button:disabled{cursor:not-allowed;opacity:.5}.ph-user-state{display:inline-block;border-radius:99px;padding:4px 9px;background:#e5f7ee;color:#13735d;font-size:12px;font-weight:700}.ph-user-state-off{background:#f3e9ea;color:#9d3440}.ph-user-pages{display:flex;gap:14px;align-items:center;justify-content:flex-end;margin:16px 0}.ph-user-pages a{background:#eef5fa;border-radius:8px;padding:8px 12px;text-decoration:none}
@media(max-width:850px){.ph-user-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ph-user-filters button{grid-column:1/-1}}
@media(max-width:480px){.ph-user-filters{grid-template-columns:1fr}.ph-user-pages{justify-content:center}}

/* Alpha8.11 account role administration */
.ph-user-role-form{display:flex;gap:6px;align-items:end;flex-wrap:wrap;margin-bottom:7px}.ph-user-role-form .ph-role-label{min-width:115px;max-width:180px;flex:1;margin:0;font-size:11px}.ph-user-role-form select{padding:7px 8px;width:100%;margin-top:3px}.ph-user-role-form button{white-space:nowrap}.ph-user-table td:last-child{min-width:190px}

.ph-trust-choice{display:flex;align-items:center;gap:10px;margin:14px 0;font-weight:500}.ph-trust-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}.ph-trust-choice{max-width:100%;}

/* alpha8.13 – Central 2FA/trusted device styles, no layout overrides */
.ph-trust-choice{display:flex;align-items:flex-start;gap:10px;max-width:100%;font-weight:500;margin:14px 0;padding:12px;border:1px solid #dce6ee;border-radius:10px;background:#f4f8fb;line-height:1.5}
.ph-trust-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#12648e}
.ph-user-table-wrap table form.inline button{white-space:nowrap}

/* alpha8.14 – centralized module permission matrix */
.ph-permissions-module{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.ph-permissions-module label{flex:1 1 210px;max-width:540px;margin:0}.ph-permissions-module button{margin:0}.ph-permissions-card{border:1px solid #dbe5ee;border-radius:12px;background:#fff;padding:18px;margin:18px 0}.ph-permissions-card h2{margin:0 0 8px}.ph-permissions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0}.ph-permissions-choice{display:flex;flex-direction:column;gap:5px}.ph-permissions-choice select{width:100%}.ph-permissions-empty{padding:24px;border:1px dashed #b9cbd9;border-radius:12px;background:#f7fafc;color:#40586a}.ph-permissions-warn{padding:10px 12px;border-left:3px solid #b77b20;background:#fff9ec}.ph-permissions-good{padding:10px 12px;border-left:3px solid #16795a;background:#eff9f6}@media(max-width:640px){.ph-permissions-module{align-items:stretch}.ph-permissions-card{padding:14px}}

/* alpha8.15 – central pharmacy settings, consistent with Core navigation */
.ph-settings-layout{display:grid;grid-template-columns:minmax(210px,250px) minmax(0,1fr);gap:22px;align-items:start;margin-top:22px}
.ph-settings-nav{display:flex;flex-direction:column;gap:4px;position:sticky;top:15px;background:#fff;border:1px solid #dce6ee;border-radius:13px;padding:10px}
.ph-settings-nav a{display:block;padding:11px 12px;border-radius:9px;text-decoration:none;font-weight:600;font-size:14px;color:#34536e;transition:background .12s}
.ph-settings-nav a:hover{background:#eff5f9;color:#123b59}.ph-settings-nav a.active{background:#e0f0f8;color:#11597b;box-shadow:inset 3px 0 #2183a2}
.ph-settings-main{min-width:0;display:flex;flex-direction:column;gap:18px}
.ph-settings-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:20px 22px;background:#fff;border:1px solid #dbe6ed;border-radius:13px}
.ph-settings-hero h2{font-size:23px;margin:0 0 4px}.ph-settings-hero p{color:#5c7181;margin:0}
.ph-settings-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.ph-settings-stats>div{border-radius:12px;border:1px solid #dbe7f0;background:#fff;padding:14px;min-width:0}
.ph-settings-stats small{display:block;color:#607589;margin-bottom:4px}.ph-settings-stats strong{display:block;font-size:21px;color:#193d58}
.ph-settings-green{color:#127255!important;font-size:16px!important}
.ph-settings-card{background:#fff;border:1px solid #dbe6ee;border-radius:13px;padding:20px 22px;min-width:0}
.ph-settings-card__head h2{font-size:19px;margin:0 0 5px;color:#17334b}.ph-settings-card__head p{font-size:14px;color:#647a8b;margin:0 0 12px}
.ph-settings-detail{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #edf1f4}
.ph-settings-detail:last-child{border-bottom:0}.ph-settings-detail>div{min-width:0}.ph-settings-detail span:not(.ph-settings-badge){display:block;color:#455d71;font-weight:600;font-size:14px}
.ph-settings-detail small{display:block;color:#6b8293;line-height:1.45;margin-top:3px;max-width:560px}
.ph-settings-detail>strong{font-size:14px;text-align:right;color:#193d58;max-width:48%;overflow-wrap:anywhere}
.ph-settings-badge{display:inline-flex;align-items:center;flex-shrink:0;padding:5px 9px;border-radius:8px;font-weight:600;font-size:12px;max-width:50%;text-align:right}
.ph-settings-badge--ok{background:#e5f5ee;color:#086341}.ph-settings-badge--pending{background:#fff4de;color:#895815}.ph-settings-badge--info{background:#eaf3fa;color:#1b5877}
.ph-settings-muted{color:#687f90;font-size:13px;line-height:1.55}
.ph-settings-actions,.ph-settings-quick{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.ph-settings-link,.ph-settings-quick a{display:inline-flex;padding:8px 11px;border-radius:8px;background:#eef6fb;text-decoration:none;color:#145d83;font-size:13px;font-weight:700}
.ph-settings-link:hover,.ph-settings-quick a:hover{background:#e0eef7}
.ph-settings-form{max-width:640px}.ph-settings-form label{margin-top:15px}.ph-settings-form button{margin-top:14px}
@media(max-width:1040px){.ph-settings-layout{grid-template-columns:200px minmax(0,1fr)}.ph-settings-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ph-settings-layout{display:block}.ph-settings-nav{position:static;display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:5px;margin-bottom:15px;scrollbar-width:thin}.ph-settings-nav a{flex-shrink:0}.ph-settings-card{padding:16px}.ph-settings-detail{align-items:flex-start}.ph-settings-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.ph-settings-stats{grid-template-columns:1fr}.ph-settings-detail{flex-direction:column;gap:5px}.ph-settings-detail>strong,.ph-settings-badge{max-width:100%;text-align:left}}

/* alpha8.16 – saved preferences affect all Core pages, not only the settings preview */
@media(min-width:801px){body.ph-sidebar-wide:has(.nav) .nav{width:285px!important}body.ph-sidebar-wide:has(.nav) .wrap{margin-left:285px!important}}
body.ph-ui-compact .ph-user-table th,body.ph-ui-compact .ph-user-table td,
body.ph-ui-compact .ph-log-table th,body.ph-ui-compact .ph-log-table td,
body.ph-ui-compact .ph-settings-detail{padding-top:7px!important;padding-bottom:7px!important}
body.ph-ui-compact .tile,body.ph-ui-compact .ph-settings-card{padding:13px!important}
.ph-settings-section-flag{display:inline-flex;border:1px solid #cee0ec;color:#345b74;background:#f4f8fc;border-radius:8px;font-size:12px;font-weight:700;padding:4px 8px;margin:4px 0 15px}
.ph-settings-form fieldset{border:1px solid #dce6ed;border-radius:10px;margin:15px 0;padding:12px 15px}
.ph-settings-form fieldset label{font-weight:500;margin:6px 0;display:flex;align-items:center;gap:10px}
.ph-settings-form input[type=checkbox]{width:auto;min-width:17px;height:17px;margin:0}
.ph-settings-form select{max-width:100%}
.ph-settings-help{font-size:13px;color:#687f90;margin:8px 0 16px}
@media(max-width:800px){body.ph-sidebar-wide:has(.nav) .nav{width:auto!important}body.ph-sidebar-wide:has(.nav) .wrap{margin-left:0!important}}

/* Pharmacy Core Media v1: independent of browser libraries, protected server storage. */
.ph-coremedia-form{border:1px solid #dbe6ed;border-radius:13px;background:#f8fbfd;padding:18px;margin:18px 0 26px}
.ph-coremedia-form h2{margin:0 0 9px}
.ph-coremedia-search{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:20px 0}
.ph-coremedia-search label{font-size:13px;min-width:90px}
.ph-coremedia-search input{flex:1 1 230px;width:auto}
.ph-coremedia-search select{width:110px;flex:0 0 110px}
.ph-coremedia-search button{margin:0}
.ph-coremedia-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:16px}
.ph-coremedia-item{border:1px solid #dbe6ed;border-radius:12px;background:#fff;overflow:hidden;min-width:0}
.ph-coremedia-item>a{display:block;background:#e8f1f6;padding:12px;height:190px;text-align:center}
.ph-coremedia-item img{height:100%;width:100%;object-fit:contain}
.ph-coremedia-meta{display:flex;flex-direction:column;gap:6px;padding:14px;overflow-wrap:anywhere}
.ph-coremedia-meta strong{font-size:14px}
.ph-coremedia-meta small{font-size:12px;color:#567189}
.ph-coremedia-meta form{margin:0}
.ph-coremedia-delete{background:#b73840;font-size:12px;padding:8px 12px}
.ph-coremedia-delete:hover{background:#8b2430}
.ph-coremedia-pages{display:flex;gap:16px;margin:18px 0}
@media(max-width:640px){.ph-coremedia-search>*{flex:1 1 100%!important}.ph-coremedia-search select{width:100%}}

/* core.dashboard.tiles/v1 and core.module-shell/v1 */
.ph-module-shell{margin:-.2rem 0 1rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.ph-module-shell__description{margin:0;color:#597082}.ph-module-shell__actions{display:flex;gap:8px;flex-wrap:wrap}.ph-module-shell__action{display:inline-block;padding:8px 12px;border:1px solid #d5e3eb;border-radius:10px;background:#fff;text-decoration:none;font-weight:600}.ph-module-shell__status{display:inline-block;padding:3px 9px;border-radius:99px;font-size:12px;background:#e8eef3;color:#334f61}.ph-module-shell__status--active{background:#e6f7ee;color:#106b47}.ph-module-shell__status--testing{background:#fff5de;color:#866200}
.ph-dashboard{margin:18px 0 28px}.ph-dashboard__head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.ph-dashboard__head h2{margin:8px 0 4px}.ph-dashboard__head p{margin:0 0 10px}.ph-dashboard__saved{font-size:13px;color:#296186}.ph-dashboard__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:13px}.ph-dashboard__tile{background:#fff;border:1px solid #d7e3ed;border-radius:13px;padding:14px 16px;min-height:138px;box-shadow:0 3px 12px #143a5708;cursor:grab;transition:border-color .1s,box-shadow .1s}.ph-dashboard__tile:hover,.ph-dashboard__tile:focus-within{border-color:#67a3bf;box-shadow:0 3px 12px #143a5712}.ph-dashboard__tile.ph-dashboard__dragging{opacity:.6;border-style:dashed}.ph-dashboard__tile-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.ph-dashboard__icon{display:inline-grid;width:36px;height:36px;place-items:center;border-radius:10px;color:#0d607a;background:#e8f4f9;font-size:19px}.ph-dashboard__controls{display:flex;align-items:center;gap:3px}.ph-dashboard__move{font-size:14px;color:#315770;background:#eff5f8;border:1px solid #dbe7ee;border-radius:7px;min-width:30px;min-height:29px;margin:0;padding:3px 6px;cursor:pointer}.ph-dashboard__move:hover{color:#fff;background:#146a8e}.ph-dashboard__handle{padding:0 4px;color:#72909d;user-select:none}.ph-dashboard__link{font-weight:750;font-size:16px;text-decoration:none;color:#163954}.ph-dashboard__link:hover{text-decoration:underline}.ph-dashboard__tile p{color:#637889;font-size:13px;margin:5px 0 0}.ph-dashboard__save{margin:12px 0 0}@media(max-width:560px){.ph-dashboard__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ph-dashboard__tile{padding:12px;min-height:130px}.ph-dashboard__link{font-size:14px}}

/* alpha8.26: core.navigation/v1 and core.listtable/v1 */
body:has(.nav) .nav.ph-core-nav{gap:4px}
/* alpha8.33: only the existing, distinctive menu icon is the drag handle. */
.ph-core-nav__items{display:flex;flex-direction:column;gap:3px;width:100%;min-height:0}
.ph-core-nav__item{position:relative;display:flex;align-items:center;min-width:0;gap:3px;border:1px solid transparent;border-radius:8px;padding-left:5px}
body:has(.nav) .nav .ph-core-nav__item>a{display:block;flex:1 1 auto;min-width:0;width:auto!important;padding:9px 7px 9px 0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;border:0!important}
.ph-core-nav__icon{width:21px;flex:0 0 21px;text-align:center;display:inline-grid;place-items:center;color:#4d7891}
.ph-core-nav__grip{height:31px;border-radius:6px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.ph-core-nav__grip:hover,.ph-core-nav__grip:focus-visible{color:#12648e;background:#d9ecf5}
.ph-core-nav__grip:focus-visible{outline:2px solid #6ab0d1;outline-offset:2px}
.ph-core-nav__grip:active{cursor:grabbing}
.ph-core-nav__item--active{background:#e5f2f8;border-color:#cfe4ef}
body:has(.nav) .nav .ph-core-nav__item--active>a[aria-current="page"]{background:transparent!important;color:#105474!important}
body:has(.nav) .nav .ph-core-nav__item--active>a[aria-current="page"]::before{display:none!important}
.ph-core-nav__item--active::before{content:"";position:absolute;left:-7px;height:22px;width:3px;background:#208ba9;border-radius:4px}
.ph-core-nav__moving{outline:1px dashed #2a88aa;background:#e7f4f9}
body:has(.nav) .nav .ph-core-nav__form{width:100%;margin:3px 0 0}
body:has(.nav) .nav .ph-core-nav__save{width:100%;border-radius:8px;background:#e2f2f8;color:#145b80;font-size:12px;min-height:30px;padding:5px 8px}
.ph-core-nav__save[hidden]{display:none!important}
body:has(.nav) .nav>a.ph-nav-settings{margin-top:auto!important;display:flex;align-items:center;gap:9px}
.ph-listtable{position:relative;min-width:0;margin:10px 0 0;background:#fff;border:1px solid #dbe5ec;border-radius:12px}
.ph-listtable__viewport{overflow:auto;max-width:100%;max-height:72vh;scrollbar-width:thin;outline-offset:-3px}
.ph-listtable__viewport:focus-visible{outline:2px solid #5aacca}
.ph-listtable__viewport table{display:table!important;border:0;border-radius:0;min-width:800px!important;width:100%!important;box-shadow:none}
.ph-listtable__viewport table th{position:sticky!important;top:0;z-index:2;background:#f1f6fa}
.ph-listtable__scroll{position:sticky;bottom:0;overflow-x:auto;overflow-y:hidden;height:17px;background:#eef4f8;border-top:1px solid #dae5ed;z-index:3}
.ph-listtable__scroll[hidden]{display:none}
.ph-listtable__scroll-inner{height:1px}
@media(max-width:800px){.ph-core-nav__items{display:flex;flex-direction:row;width:auto;flex:0 0 auto;gap:3px}.ph-core-nav__item{flex:0 0 auto}.ph-core-nav__form{display:block;width:auto!important;flex:0 0 auto}body:has(.nav) .nav .ph-core-nav__item>a{white-space:nowrap;width:auto!important;padding:8px 7px 8px 0}.ph-core-nav__grip{height:32px}.ph-listtable__viewport table th{position:sticky!important}}

/* Core checkpoint list: NV-style compact controls, no per-row password fields. */
.ph-rollback-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px;flex-wrap:wrap}
.ph-rollback-intro .ph-settings-help{margin:0;flex:1 1 410px}
.ph-rollback-create{margin:0}.ph-rollback-create button{white-space:nowrap}
.ph-rollback-table-wrap{width:100%;overflow:auto;border:1px solid #dce5ea;border-radius:9px}
.ph-rollback-table{width:100%;min-width:650px!important;border:0!important;box-shadow:none!important;border-collapse:collapse!important;font-size:12px}
.ph-rollback-table th{white-space:nowrap;text-align:left;font-size:11px}
.ph-rollback-table td,.ph-rollback-table th{padding:10px 9px!important;vertical-align:middle;border-bottom:1px solid #e0e8eb}
.ph-rollback-table tr:last-child td{border-bottom:0}
.ph-rollback-sub{font-size:10px;color:#718297;display:block;margin-top:4px;word-break:break-all}
.ph-rollback-sha{font-family:ui-monospace,monospace;font-size:11px}
.ph-rollback-open{white-space:nowrap;font-size:12px;padding:8px 10px!important}
.ph-rollback-unavailable{color:#688096;font-size:11px;display:inline-block;max-width:180px}
.ph-rollback-dialog{border:1px solid #d4dfe7;border-radius:14px;max-width:min(520px,calc(100vw - 32px));width:100%;padding:24px;background:#fff;box-shadow:0 18px 55px #122e4b40;color:#123}
.ph-rollback-dialog::backdrop{background:#071e31a6}
.ph-rollback-dialog h3{margin-top:0}.ph-rollback-dialog form{display:grid;gap:10px}
.ph-rollback-dialog label{font-weight:600;font-size:13px}
.ph-rollback-dialog input{width:100%;min-width:0;box-sizing:border-box;padding:10px;border-radius:8px;border:1px solid #adbdca}
.ph-rollback-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}
.ph-rollback-dialog-actions button{white-space:nowrap}
.ph-rollback-cancel{background:#eef2f2!important;color:#18394a!important}
@media(max-width:640px){.ph-rollback-intro{display:block}.ph-rollback-create{margin-top:12px}.ph-rollback-dialog{padding:16px}}

/* alpha8.34: menu is as narrow as its visible labels permit.
   Standard is content-fit; explicitly selected wide mode stays available.
   Both the menu and the page offset use the SAME measured width. */
@media(min-width:801px){
 body.ph-sidebar-standard:has(.nav.ph-core-nav) .nav.ph-core-nav{width:var(--ph-core-nav-dynamic-width,200px)!important;min-width:0!important;max-width:340px;box-sizing:border-box}
 body.ph-sidebar-standard:has(.nav.ph-core-nav) .wrap{margin-left:var(--ph-core-nav-dynamic-width,200px)!important}
}


/* Pharmacy Core alpha8.42 – shared editing surfaces and media picker. */
.ph-editor-workspace{margin:12px 0 24px;border:1px solid #d8e5ee;border-radius:12px;background:#fff;padding:12px;min-width:0}
.ph-editor-toolbar{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:5px 0 12px;border-bottom:1px solid #e0e9ef}
.ph-editor-toolbar button.ph-ed-btn{display:inline-flex;justify-content:center;align-items:center;width:auto;min-width:35px;min-height:32px;padding:6px 10px;margin:0;font-size:12px;border:1px solid #c7d9e6;background:#eff5fa;color:#183e58;border-radius:7px;cursor:pointer;font-weight:650}
.ph-editor-toolbar button.ph-ed-btn:hover{background:#dcecf6}
.ph-editor-toolbar button.ph-ed-btn:disabled{opacity:.55;cursor:progress}
.ph-editor-toolbar button[data-cmd="save"]{background:#12648e;color:#fff;border-color:#12648e;margin-left:auto}
.ph-ed-tool-sep{width:1px;height:25px;background:#cedce6;margin:0 5px}
.ph-editor-status{margin:9px 2px;font-size:12px;color:#51718a;min-height:18px}
.ph-editor-status.ph-ed-error{color:#a32937;font-weight:650}
.ph-tiptap-canvas{min-height:230px;max-width:100%;border:1px solid #b9d1e1;border-radius:8px;padding:14px;background:#fff}
.ph-tiptap-canvas .tiptap,.ph-tiptap-canvas [contenteditable="true"]{min-height:180px;outline:0;line-height:1.65}
.ph-tiptap-canvas p{margin:0 0 10px}
.ph-tiptap-canvas ul,.ph-tiptap-canvas ol{padding-left:28px}
.ph-tiptap-canvas img{max-width:100%;height:auto;border-radius:5px}
.ph-tiptap-canvas table{display:table;width:100%;border-collapse:collapse}
.ph-tiptap-canvas td,.ph-tiptap-canvas th{border:1px solid #aebfcb;min-width:80px;padding:8px}
.ph-grapes-canvas{height:470px;min-width:0;overflow:hidden;border:1px solid #c7d6e2}
.ph-grapes-blocks{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ph-grapes-blocks .gjs-block-category{max-width:100%}
.ph-grapes-blocks .gjs-block{min-height:45px;min-width:83px;font-size:12px}
.ph-editor-picker{position:fixed;top:10vh;max-width:min(780px,calc(100vw - 24px));width:90vw;max-height:78vh;overflow:auto;border:1px solid #c6d7e2;border-radius:13px;padding:20px;box-shadow:0 20px 65px #0b294654;background:#fff;color:#16354b}
.ph-editor-picker::backdrop{background:rgba(9,28,45,.65)}
.ph-editor-picker button{margin-top:0}
.ph-picker-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ph-picker-head h3{margin:0;font-size:17px}
.ph-picker-head button{background:#e8f0f6;color:#15445e}
.ph-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin:10px 0 20px;max-height:270px;overflow:auto}
.ph-picker-grid .ph-picker-item{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-width:0;width:100%;padding:6px;background:#f5f8fa;color:#27475a;border:1px solid #dae5ec;border-radius:8px}
.ph-picker-item img{max-width:100%;width:100%;height:76px;object-fit:contain;background:#fff}
.ph-picker-item span{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.ph-editor-picker label{font-size:12px}
.ph-editor-picker [data-picker="status"]{font-size:12px;color:#597387}
@media(max-width:600px){.ph-editor-workspace{padding:8px}.ph-editor-toolbar{gap:4px}.ph-editor-toolbar button.ph-ed-btn{padding:5px 7px;font-size:11px}.ph-grapes-canvas{height:440px}.ph-editor-picker{padding:13px}}

/* Pharmacy Core alpha8.44: accessible document management and editor library. */
.ph-editor-library{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 13px;border:1px solid #d7e3ed;background:#f5f9fc;border-radius:9px 9px 0 0}
.ph-editor-library label{display:flex;flex-direction:column;gap:4px;min-width:135px;font-size:12px;color:#264761;flex:1 1 145px}
.ph-editor-library input,.ph-editor-library select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:38px;margin:0;background:#fff;border:1px solid #b9cedd;border-radius:6px;padding:7px 9px;color:#183650}
.ph-editor-library button{min-height:38px;border:1px solid #aac9db;color:#10597a;background:#fff;border-radius:7px;font-size:12px;font-weight:650;padding:7px 11px;cursor:pointer}
.ph-editor-library button:hover{background:#e8f3fb}
.ph-editor-library button:focus-visible,.ph-editor-library input:focus-visible,.ph-editor-library select:focus-visible{outline:2px solid #12648e;outline-offset:2px}
.ph-editor-workspace{min-width:0}
@media(max-width:640px){.ph-editor-library{display:grid;grid-template-columns:1fr 1fr}.ph-editor-library label{min-width:0}.ph-editor-library label:nth-of-type(2){grid-column:1/-1}.ph-editor-library button{min-width:0}.ph-editor-picker{max-width:95vw}}

/* alpha8.46 user lifecycle */
.ph-user-security{margin-top:8px;border:1px solid #dce6ed;border-radius:9px;padding:6px 10px;max-width:280px}.ph-user-security summary{cursor:pointer;font-weight:650}.ph-user-security form{max-width:100%;margin-top:8px}.ph-user-security label{font-size:12px}.ph-user-security input{min-width:0}.ph-user-security button{font-size:12px;white-space:normal}

/* alpha8.57 – NV Core style: role-filtered module-first sidebar. */
@media (min-width:801px) {
 body:has(.nav.ph-core-nav) .nav.ph-core-nav{overflow:hidden;gap:4px;}
}
.ph-core-nav__label{color:#647989;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;padding:4px 10px 7px;flex:0 0 auto}
body:has(.nav) .nav.ph-core-nav .ph-core-nav__items{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1 1 auto;scrollbar-width:thin}
.ph-core-nav__empty{padding:11px 9px;font-size:12px;color:#647989;line-height:1.5}
.ph-core-nav__status{width:8px;height:8px;flex:0 0 8px;margin-right:7px;border-radius:50%;background:#1ca66a}
body:has(.nav) .nav.ph-core-nav .ph-core-nav__form{flex:0 0 auto;margin:0!important}
.ph-core-nav__footer{flex:0 0 auto;display:flex;flex-direction:column;gap:3px;border-top:1px solid #e1e9ee;padding-top:9px;margin-top:auto}
body:has(.nav) .nav.ph-core-nav .ph-core-nav__footer a{display:flex;gap:7px;align-items:center;border-radius:8px;padding:10px 7px;font-size:13px;text-decoration:none;min-width:0;width:100%;line-height:1.3}
body:has(.nav) .nav.ph-core-nav .ph-core-nav__footer a.ph-nav-settings{border-top:1px solid #e1e9ee;border-radius:0;margin-top:7px;padding-top:13px}
body:has(.nav) .nav.ph-core-nav .ph-core-nav__footer a[aria-current="page"]{background:#e5f2f8;color:#105474;font-weight:800}
@media(max-width:800px){
 body:has(.nav) .nav.ph-core-nav{overflow-x:auto;overflow-y:hidden;align-items:center;gap:8px}
 .ph-core-nav__label{display:none}
 body:has(.nav) .nav.ph-core-nav .ph-core-nav__items{flex:0 0 auto;overflow:visible;width:max-content}
 .ph-core-nav__empty{white-space:nowrap;color:#fff}
 .ph-core-nav__status{background:#43d790}
 .ph-core-nav__footer{flex-direction:row;border:0;margin:0;padding:0;white-space:nowrap;align-items:center}
 body:has(.nav) .nav.ph-core-nav .ph-core-nav__footer a{width:auto!important;color:white!important;white-space:nowrap}
 body:has(.nav) .nav.ph-core-nav .ph-core-nav__footer a.ph-nav-settings{border:0;padding:9px 7px;margin:0}
}

/* alpha8.58 Core-owned, consistent module frame and reusable UI tokens. */
.ph-module-ui{--ph-module-ink:#19394b;--ph-module-muted:#627889;--ph-module-line:#dbe5ed;--ph-module-accent:#12648e;width:100%;min-width:0}
.ph-module-ui__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--ph-module-line);padding-bottom:14px;margin-bottom:16px}
.ph-module-ui__heading{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap}
.ph-module-ui__heading h2{margin:0;font-size:clamp(19px,2vw,25px);line-height:1.25;color:var(--ph-module-ink)}
.ph-module-ui__meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--ph-module-muted)}
.ph-module-ui__version,.ph-module-ui__core{border:1px solid var(--ph-module-line);padding:3px 7px;border-radius:8px;background:#f7fafc}
.ph-module-ui__description{color:var(--ph-module-muted);margin:0;flex-basis:100%}
.ph-module-ui__content{min-width:0;max-width:100%}
.ph-module-ui__notice{padding:10px 12px;border:1px solid #c9deea;border-radius:9px;background:#f1f8fc;color:#20546d;margin-bottom:13px}
.ph-module-ui__notice--success{background:#eaf8f0;border-color:#c0e6cf;color:#145f38}
.ph-module-ui__notice--warning{background:#fff7e5;border-color:#ead5a6;color:#825410}
.ph-module-ui__notice--error{background:#fff0f1;border-color:#f0c6cb;color:#a12c3d}
.ph-module-ui__content input,.ph-module-ui__content select,.ph-module-ui__content textarea{max-width:100%;min-width:0}
.ph-module-ui__content :where(button,[type=submit]){min-height:34px}
@media(max-width:760px){.ph-module-ui__header{flex-direction:column}.ph-module-ui__heading{flex-direction:column;align-items:flex-start;gap:7px}}

/* Alpha8.59: Core-owned granular module menu and permission editor */
.ph-module-access-menu{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0;margin:8px 0 18px;border-bottom:1px solid #d8e5ed}
.ph-module-access-menu a{display:inline-flex;text-decoration:none;padding:8px 12px;border-radius:8px;background:#f2f7fa;color:#17546d;font-weight:650}
.ph-module-access-menu a.is-active,.ph-module-access-menu a:hover{background:#14648d;color:#fff}
.ph-perm-v2-group{padding:16px;border:1px solid #dbe5ee;border-radius:12px;margin:13px 0;background:#fff}
.ph-perm-v2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.ph-perm-v2-grid label{font-size:13px}.ph-perm-v2-grid select{width:100%}
.ph-perm-v2-restricted{color:#7c5960;font-size:13px}.ph-perm-v2-tablinks{display:flex;gap:10px;flex-wrap:wrap}


/* Core Module UI v2 — NV Module Shell pattern, pharmacy-specific Design System tokens. */
.ph-module-ui{
 --ph-ui-brand:#12648e;--ph-ui-border:#dbe5ed;--ph-ui-bg:#fff;
 --ph-ui-soft:#f6f9fc;--ph-ui-muted:#587185;--ph-ui-radius:12px;
 --ph-ui-space-1:4px;--ph-ui-space-2:8px;--ph-ui-space-3:12px;
 --ph-ui-space-4:16px;--ph-ui-space-5:20px;--ph-ui-space-6:24px;
 --ph-ui-shadow:0 5px 19px rgba(25,48,76,.06);
}
.ph-module-ui .ph-module-ui__header{display:flex;justify-content:space-between;align-items:start;gap:14px;border-bottom:1px solid var(--ph-ui-border);padding:0 0 16px;margin:0 0 3px}
.ph-module-ui__header-main{display:grid;gap:7px;min-width:0}
.ph-module-ui__eyebrow{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:12px;color:var(--ph-ui-muted)}
.ph-module-ui__environment,.ph-module-ui__eyebrow>.ph-module-ui__version,.ph-module-ui__eyebrow>.ph-module-ui__core{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid var(--ph-ui-border);background:var(--ph-ui-soft);border-radius:999px}
.ph-module-ui .ph-module-ui__title{font-size:clamp(23px,2.2vw,31px);line-height:1.25;margin:2px 0 0;overflow-wrap:anywhere;color:#163d55}
.ph-module-ui__header-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.ph-ui-btn,.ph-module-ui a.ph-ui-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;text-decoration:none;border-radius:10px;background:var(--ph-ui-brand);color:#fff;font-weight:650}
.ph-ui-btn--outline,.ph-module-ui a.ph-ui-btn--outline{background:#fff;color:var(--ph-ui-brand);border:1px solid #b7d2e0}
.ph-ui-btn:focus-visible{outline:3px solid #80c5ea;outline-offset:2px}
.ph-module-tabs{position:sticky;top:0;z-index:7;background:#fff;border-bottom:1px solid var(--ph-ui-border);margin:0 -2px 16px}
.ph-module-tabs__scroll{display:flex;align-items:stretch;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:8px 1px 10px}
.ph-module-tabs__link{display:inline-flex;align-items:center;gap:7px;min-height:42px;flex:none;padding:9px 12px;border-radius:9px;color:#24556e;background:#f2f7fa;text-decoration:none;font-size:14px;font-weight:650;white-space:nowrap}
.ph-module-tabs__link:hover,.ph-module-tabs__link.is-active{background:#14648d;color:white}
.ph-module-tabs__icon{display:inline-flex;justify-content:center;min-width:19px;font-size:17px}
.ph-module-ui__content{min-width:0;max-width:100%}
.ph-ui-card{background:white;border:1px solid var(--ph-ui-border);box-shadow:var(--ph-ui-shadow);border-radius:var(--ph-ui-radius);padding:clamp(13px,2vw,20px);margin:12px 0 18px;min-width:0}
.ph-ui-card__title{font-size:18px!important;margin:0 0 12px!important}
.ph-ui-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:14px 0}
.ph-ui-kpi{display:flex;flex-direction:column;gap:5px;border:1px solid var(--ph-ui-border);background:var(--ph-ui-soft);border-radius:12px;padding:13px 15px}
.ph-ui-kpi>span{font-size:13px;color:var(--ph-ui-muted)}
.ph-ui-kpi>strong{font-size:clamp(20px,2vw,27px);font-variant-numeric:tabular-nums;line-height:1.2}
.ph-ui-empty{padding:22px;text-align:center;background:var(--ph-ui-soft);color:var(--ph-ui-muted);border:1px dashed #c8d9e5;border-radius:12px}
.ph-ui-list-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:10px 0 12px}
.ph-ui-list-toolbar label{margin:0;display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:180px;flex:1 1 180px}
.ph-ui-list-toolbar label:has(select){max-width:150px;min-width:115px;flex:0 0 125px}
.ph-ui-list-toolbar label input,.ph-ui-list-toolbar label select{margin:0;min-height:42px}
.ph-ui-list-toolbar button{min-height:42px;margin:0}
.ph-ui-list-count{color:var(--ph-ui-muted);font-size:13px;align-self:center}
.ph-ui-pagination{display:flex;gap:6px;align-items:center;justify-content:end;flex-wrap:wrap;margin:10px 0}
.ph-ui-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:37px;min-height:40px;padding:6px;border-radius:8px;border:1px solid #cbdce5;text-decoration:none}
.ph-ui-pagination a.is-active{background:var(--ph-ui-brand);color:white;border-color:var(--ph-ui-brand)}
.ph-module-ui .ph-listtable__viewport table{display:table!important;width:100%!important;min-width:0!important;box-shadow:none!important;overflow:visible!important}
.ph-module-ui .ph-listtable__viewport{max-height:72vh}
.ph-module-ui .ph-listtable__viewport table[data-ph-wide]{min-width:800px!important}
.ph-module-ui .ph-listtable__viewport table th{position:sticky!important;top:0;z-index:2}
.ph-ui-compact-table{width:100%;display:table;overflow:visible}
.ph-ui-compact-table-wrap{overflow-x:auto;max-width:100%;border:1px solid var(--ph-ui-border);border-radius:10px}
@media(max-width:720px){.ph-module-ui .ph-module-ui__header{flex-direction:column}.ph-module-tabs__link{font-size:13px}.ph-ui-list-toolbar label{flex-basis:100%}.ph-ui-list-count{flex-basis:100%}}

/* PatikaTér internal inbox / actionable work cards */
.pt-header-inbox{display:inline-flex;align-items:center;gap:7px;color:#fff;text-decoration:none;padding:6px 10px;border-radius:9px;font-weight:700;background:rgba(255,255,255,.13)}
.pt-header-inbox:hover{background:rgba(255,255,255,.24)}
.pt-header-inbox [data-pt-unread]{background:#b63745;color:white;font-size:12px;min-width:22px;border-radius:30px;padding:2px 5px;text-align:center}
.pt-header-inbox [hidden]{display:none!important}
.pt-inbox-nav{margin:0 0 15px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pt-inbox-list{display:grid;gap:12px}.pt-inbox-item{border:1px solid #dce6ee;border-radius:13px;background:#fff;padding:15px;margin:12px 0}
.pt-inbox-item--unread{border-left:4px solid #287c97;background:#f6fbfd}
.pt-inbox-item__head{display:flex;align-items:baseline;justify-content:space-between;gap:15px;flex-wrap:wrap}.pt-inbox-item__head span{font-size:12px;color:#657989}
.pt-inbox-item p{margin:9px 0;overflow-wrap:anywhere}.pt-inbox-item .inline{margin-right:7px}
.pt-compose{margin-top:24px;border-top:1px solid #e0e8ee;padding-top:20px}.pt-compose form{max-width:680px}.pt-compose textarea{font:inherit;width:100%;border:1px solid #b4c4d0;border-radius:8px;padding:10px;min-height:80px}
@media(max-width:640px){.pt-header-inbox{padding:6px}.pt-inbox-item__head{display:block}}

/* PatikaTér alpha8.85 – user inbox and manager composer, Design System layout. */
.pt-inbox-shell,.pt-inbox-shell *{box-sizing:border-box}
.pt-inbox-shell{width:100%;max-width:100%;min-width:0;overflow-wrap:anywhere}
.pt-inbox-shell input,.pt-inbox-shell select,.pt-inbox-shell textarea{max-width:100%;min-width:0}
.pt-inbox-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #dbe5ed;margin:2px 0 22px;padding-bottom:11px}
.pt-inbox-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:9px;color:#21536d;background:#f2f7fa;text-decoration:none;font-weight:650;font-size:14px}
.pt-inbox-tabs a:hover,.pt-inbox-tabs a.is-active{background:#12648e;color:#fff}
.pt-inbox-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin:6px 0 18px}
.pt-inbox-header h2,.pt-inbox-card__heading h2{margin:0 0 4px!important;color:#193b55;font-size:clamp(19px,2vw,23px)}
.pt-inbox-header p,.pt-inbox-card__heading p{margin:0;color:#637889;font-size:14px}
.pt-inbox-unread-stat{display:inline-flex;align-items:center;gap:8px;color:#39576a;border:1px solid #d9e7ef;background:#f7fafc;border-radius:10px;padding:9px 13px;font-size:14px;white-space:nowrap}
.pt-inbox-unread-stat strong{font-size:19px;color:#154866;font-variant-numeric:tabular-nums}
.pt-inbox-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.pt-inbox-filter{display:flex;flex-wrap:wrap;gap:6px}
.pt-inbox-filter a{border:1px solid #dce6ee;background:white;border-radius:8px;padding:8px 12px;min-height:39px;text-decoration:none;font-size:13px;font-weight:650;color:#22546b}
.pt-inbox-filter a.is-active,.pt-inbox-filter a:hover{border-color:#12648e;background:#e8f4f9;color:#104d6b}
.pt-inbox-per{display:flex;align-items:center;gap:8px;margin:0;flex-wrap:wrap}
.pt-inbox-per label{font-size:12px;color:#5f7283;margin:0;white-space:nowrap}
.pt-inbox-per select{height:40px;width:92px;min-width:92px;margin:0;padding:6px 8px}
.pt-visually-hidden{position:absolute!important;height:1px!important;width:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;border:0!important}
.pt-inbox-shell .pt-inbox-list{display:grid;gap:10px;margin:14px 0;min-width:0}
.pt-inbox-shell .pt-inbox-item{margin:0;padding:clamp(12px,2vw,18px);min-width:0;max-width:100%;box-shadow:0 2px 9px rgba(21,54,75,.035)}
.pt-inbox-item__head{display:flex;align-items:start;justify-content:space-between;gap:12px;min-width:0}
.pt-inbox-item__title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.pt-inbox-item__title strong{font-size:15px;color:#193953}
.pt-inbox-item__head time{color:#657d8e;font-size:12px;white-space:nowrap;flex-shrink:0}
.pt-inbox-tag{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:3px 9px;border-radius:7px;font-size:12px!important;line-height:1.15;background:#eef3f7;color:#305972;border:1px solid #dae6ee;white-space:nowrap}
.pt-inbox-tag--info{background:#eff6fa;color:#255c78;border-color:#d1e5f0}
.pt-inbox-tag--action,.pt-inbox-tag--warning{background:#fff6e4;color:#8c5a16;border-color:#f1dfaf}
.pt-inbox-tag--success{background:#eaf7f0;color:#1e714c;border-color:#c9e9d8}
.pt-inbox-item .pt-inbox-body{color:#37546a;margin:13px 0;line-height:1.55;overflow-wrap:anywhere}
.pt-inbox-item__foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#657c8c;font-size:12px;margin-top:12px;border-top:1px solid #e7eef3;padding-top:12px}
.pt-inbox-item__actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.pt-inbox-shell form.pt-inline-action{display:inline-flex;margin:0}
.pt-inbox-shell button.pt-action-button,.pt-inbox-shell a.pt-action-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;margin:0;border-radius:8px;font-size:13px;line-height:1.2;font-weight:650;text-decoration:none;background:#12648e;border:1px solid #12648e;color:#fff;white-space:normal;text-align:center;width:auto;max-width:100%}
.pt-inbox-shell button.pt-action-button--secondary,.pt-inbox-shell a.pt-action-link{border-color:#bdd5e3;background:#fff;color:#176187}
.pt-inbox-shell button.pt-action-button:hover{background:#0e4f6d;color:white}
.pt-inbox-shell button.pt-action-button--secondary:hover,.pt-inbox-shell a.pt-action-link:hover{background:#e7f3f9;color:#104d6b}
.pt-inbox-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:13px 0 6px;color:#617889;font-size:12px}
.pt-inbox-pagination nav{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.pt-inbox-pagination nav a{text-decoration:none;padding:7px 11px;border:1px solid #d0e0e9;border-radius:8px;background:#fff}
.pt-inbox-bulk{margin-top:18px}
.pt-inbox-empty{border:1px dashed #c8dae5;border-radius:12px;background:#f7fafc;padding:28px 20px;color:#647a8b;display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center}
.pt-inbox-empty>span{font-size:24px;color:#23816b}
.pt-inbox-empty strong{font-size:15px;color:#244b65}
.pt-inbox-empty p{margin:0;font-size:13px}
.pt-inbox-card{margin:13px 0 20px;padding:clamp(14px,2vw,20px);background:#fff;border:1px solid #dce6ee;border-radius:13px;box-shadow:0 3px 14px rgba(26,57,77,.05);min-width:0}
.pt-inbox-card__heading{margin-bottom:17px}
.pt-compose-form{display:grid;gap:12px;max-width:820px;min-width:0}
.pt-compose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pt-compose-form label{margin:0;color:#294a60;font-size:13px;font-weight:680}
.pt-compose-form input,.pt-compose-form select,.pt-compose-form textarea{width:100%;margin:0;padding:10px 12px;border:1px solid #b9cddc;border-radius:9px;background:white;font:inherit;min-height:42px}
.pt-compose-form textarea{resize:vertical;min-height:105px}
.pt-compose-form .pt-compose-grid>div{display:grid;gap:6px;min-width:0}
.pt-compose-form>label{margin-bottom:-8px}
.pt-compose-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:2px}
.pt-compose-hint{color:#657b8b;font-size:12px;margin:0}
.pt-sent-list{display:grid;gap:0;border:1px solid #e3ebf0;border-radius:10px;overflow:hidden}
.pt-sent-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#fff;border-bottom:1px solid #e7eef3;font-size:13px;min-width:0}
.pt-sent-row:last-child{border-bottom:0}
.pt-sent-row>div{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
.pt-sent-row>div>span{font-size:12px;color:#69808f}
.pt-status-hint{color:#617889;font-size:12px}
@media(max-width:660px){.pt-inbox-tabs{gap:4px}.pt-inbox-tabs a{flex:1 1 auto;justify-content:center;font-size:12px;padding:7px 8px}.pt-inbox-item__head{flex-direction:column;gap:5px}.pt-inbox-header{flex-direction:column}.pt-compose-grid{grid-template-columns:minmax(0,1fr)}.pt-inbox-item__foot{flex-direction:column;align-items:flex-start}.pt-inbox-item__actions{width:100%}.pt-inbox-per{width:100%;justify-content:flex-start}.pt-sent-row{align-items:flex-start}}


/* PatikaTér alpha8.87 — Core-wide module table sizing contract.
   Own the viewport in the Core; never let a module-owned min-width enlarge the page.
   Existing Core ListTable viewports keep their sticky headers and pagination. */
.ph-module-ui, .ph-module-ui__content, .ph-module-ui__content :where(.ph-ui-card,.ph-listtable,.ph-listtable__viewport,.ph-ui-compact-table-wrap,.ph-ui-responsive-table) {
  min-width:0; max-width:100%; box-sizing:border-box;
}
.ph-module-ui__content > :not(script):not(style) {min-width:0;max-width:100%}
.ph-module-ui__content .ph-ui-responsive-table {
  display:block;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
  overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
  border-radius:10px;box-sizing:border-box;
}
.ph-module-ui__content .ph-listtable__viewport,
.ph-module-ui__content .ph-ui-compact-table-wrap {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
/* Do not use display:block on the TABLE: this breaks intrinsic column measurement. */
.ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table {
  display:table!important;table-layout:auto!important;width:100%!important;
  min-width:0!important;max-width:none!important;overflow:visible!important;
  border-collapse:separate;box-sizing:border-box;
}
.ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table[data-ph-wide] {min-width:0!important}
.ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table :is(th,td) {
  overflow-wrap:anywhere;word-break:normal;white-space:normal!important;
}
.ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  box-sizing:border-box;width:100%;max-width:100%!important;min-width:0!important;
}
.ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table :is(input[type=checkbox],input[type=radio]) {
  width:auto;min-width:auto;
}
@media(max-width:800px){
  .ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap) > table :is(th,td){padding:8px 6px}
}
@media print{
  .ph-module-ui__content :is(.ph-ui-responsive-table,.ph-listtable__viewport,.ph-ui-compact-table-wrap){overflow:visible!important;max-height:none!important}
}

/* alpha8.89: Single home board. Core links and active modules share full-card anchors. */
.ph-dashboard__grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:14px}
.ph-dashboard__tile{position:relative;display:flex;padding:0;min-width:0;min-height:162px;cursor:default;overflow:hidden}
.ph-dashboard__tile:hover{border-color:#6ca9bf;box-shadow:0 8px 22px #163f5d1a}
.ph-dashboard__surface{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;gap:9px;padding:18px 16px;text-decoration:none!important;color:inherit!important;border-radius:inherit;cursor:pointer}
.ph-dashboard__surface:focus-visible{outline:3px solid #64b5dd;outline-offset:-3px}
.ph-dashboard__tile-top{margin:0 94px 0 0;align-items:center;gap:8px}
.ph-dashboard__tag{font-size:11px;line-height:1.35;font-weight:700;color:#426b83;background:#eef5f9;border-radius:50px;padding:4px 8px;white-space:nowrap}
.ph-dashboard__tile--module{border-top:3px solid #37aa77}
.ph-dashboard__tile--module .ph-dashboard__tag{color:#15744b;background:#e6f6ed}
.ph-dashboard__link{display:block;font-weight:760;font-size:16px;color:#163954;line-height:1.35;overflow-wrap:anywhere}
.ph-dashboard__description{display:block;color:#637889;font-size:13px;line-height:1.45}
.ph-dashboard__controls{position:absolute;right:10px;top:11px;z-index:2;align-items:center;gap:2px}
.ph-dashboard__move{margin:0;width:27px;min-width:27px;min-height:28px;font-size:13px;padding:3px}
.ph-dashboard__handle{display:inline-flex;align-items:center;justify-content:center;min-height:28px;min-width:20px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.ph-dashboard__handle:active{cursor:grabbing}
.ph-dashboard__saved{min-height:18px}
@media(max-width:560px){.ph-dashboard__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}.ph-dashboard__tile{min-height:145px}.ph-dashboard__surface{padding:14px 12px}.ph-dashboard__tile-top{margin-right:85px}.ph-dashboard__controls{top:8px;right:6px}}
@media(prefers-reduced-motion:reduce){.ph-dashboard__tile{transition:none}}

/* alpha8.90: Four readable dashboard tiles per row on desktop.
   The dashboard is fluid; narrower widths step down to 3/2/1 columns.
   Keep the whole tile clickable, while order controls remain separate. */
.ph-dashboard__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  width:100%;
  min-width:0;
}
.ph-dashboard__tile{
  min-width:0;
  min-height:165px;
}
.ph-dashboard__surface{
  min-width:0;
  width:100%;
  padding:18px 17px;
  gap:9px;
  text-decoration:none!important;
  overflow-wrap:break-word;
}
.ph-dashboard__surface:hover,
.ph-dashboard__surface:focus,
.ph-dashboard__surface :is(.ph-dashboard__link,.ph-dashboard__description,.ph-dashboard__tag){
  text-decoration:none!important;
}
.ph-dashboard__link{
  display:block;
  width:100%;
  font-size:16px;
  line-height:1.4;
  overflow-wrap:break-word;
  hyphens:auto;
}
.ph-dashboard__description{
  display:block;
  width:100%;
  line-height:1.45;
  overflow-wrap:break-word;
  hyphens:auto;
}
.ph-dashboard__tile-top{margin-right:94px}
@media (max-width:1320px){
  .ph-dashboard__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1030px){
  .ph-dashboard__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:650px){
  .ph-dashboard__grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .ph-dashboard__tile{min-height:150px}
  .ph-dashboard__surface{padding:16px 15px}
  .ph-dashboard__link{font-size:16px}
  .ph-dashboard__tile-top{margin-right:94px}
}

/* alpha8.91: actionable, one-glance information, without making the tile crowded. */
.ph-dashboard__signal{display:flex;flex-direction:column;gap:3px;margin-top:auto;padding:9px 10px;
  min-width:0;border:1px solid #dce7ef;background:#f3f8fb;border-radius:9px;
  color:#32546a;font-size:12px;line-height:1.4}
.ph-dashboard__signal[hidden],.ph-dashboard__signal-detail[hidden]{display:none!important}
.ph-dashboard__signal[data-tone="warning"]{background:#fff8eb;border-color:#f2dfbd;color:#875916}
.ph-dashboard__signal[data-tone="success"]{background:#eef8f2;border-color:#d4e9dc;color:#256546}
.ph-dashboard__signal[data-tone="info"]{background:#edf5fc;border-color:#d5e6f5;color:#245d84}
.ph-dashboard__signal-line{font-weight:760;overflow-wrap:anywhere}
.ph-dashboard__signal-detail{color:inherit;opacity:.84;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.ph-dashboard__tile{min-height:200px}
.ph-dashboard__surface{min-height:100%;align-self:stretch}
@media(max-width:650px){.ph-dashboard__tile{min-height:175px}}

/* PatikaTér alpha8.92: in-app delivery diagnostics */
.pt-delivery-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin:16px 0 24px}
.pt-delivery-summary .pt-inbox-unread-stat{display:flex;align-items:center;gap:10px;justify-content:flex-start;min-width:0}
.pt-delivery-table{max-width:100%;overflow-x:auto;outline-offset:3px}
.pt-delivery-table table{width:100%;min-width:680px}
.pt-delivery-table td{overflow-wrap:anywhere}
.pt-delivery-table form{margin:0}
@media(max-width:640px){.pt-delivery-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.pt-delivery-summary .pt-inbox-unread-stat{padding:10px}}
/* PatikaTér 1.0.0-alpha8.96 – calendar-first home, independent signed modules remain authoritative. */
.pt-home-workspace{display:grid;gap:18px;min-width:0}
.pt-home-workspace *{box-sizing:border-box}
.pt-home-workspace :is(h2,h3,p){margin:0}
.pt-home-calendar{background:#fff;border:1px solid #dbe6f1;border-radius:15px;overflow:hidden;box-shadow:0 5px 20px rgba(34,73,110,.07);min-width:0}
.pt-home-cal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:18px 20px}
.pt-home-cal-head h2{font-size:21px;font-weight:760;color:#19344f}
.pt-home-cal-head p{margin:4px 0 0;color:#667f90;font-size:13px}
.pt-home-week-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pt-home-week-controls a{display:inline-flex;align-items:center;justify-content:center;min-width:37px;min-height:36px;border-radius:9px;border:1px solid #d7e5f1;background:#fff;color:#174d78;text-decoration:none;font-weight:700;padding:6px 11px}
.pt-home-week-controls a:hover,.pt-home-week-controls a:focus-visible{background:#e8f3fc}
.pt-home-week-controls strong{font-size:13px;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums;color:#233f60}
.pt-home-week-controls .pt-home-today{color:#005bb8;border-color:#abcdf5}
.pt-home-duty{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:11px 19px;background:#eff6fc;color:#345b75;font-size:13px;border-top:1px solid #dfe9f3;border-bottom:1px solid #dfe9f3}
.pt-home-duty.is-own{background:#e9f8ef;color:#206845}
.pt-home-duty strong{color:inherit;font-size:14px}
.pt-home-duty small{font-size:12px;opacity:.8;margin-left:auto}
.pt-home-table-wrap{overflow:auto;max-width:100%;scrollbar-gutter:stable}
.pt-home-table{display:table!important;overflow:visible!important;table-layout:fixed;width:100%;min-width:810px;border-collapse:separate;border-spacing:0;margin:0}
.pt-home-table th,.pt-home-table td{border-bottom:1px solid #e4ebf2;border-right:1px solid #edf2f6;padding:10px 7px;text-align:center;vertical-align:middle;min-width:96px;color:#233b54;font-size:13px}
.pt-home-table thead th{background:#f4f8fc;color:#29455f;font-size:12px;font-weight:750;padding:12px 6px;white-space:nowrap}
.pt-home-table thead th span,.pt-home-table thead th small{display:block}
.pt-home-table thead th small{font-weight:500;color:#6a8297;margin-top:3px;font-size:11px}
.pt-home-table .pt-home-name{position:sticky;left:0;z-index:2;width:145px;min-width:145px;max-width:170px;text-align:left;padding-left:14px;background:#fff;box-shadow:2px 0 5px rgba(9,38,71,.06);overflow-wrap:anywhere}
.pt-home-table thead .pt-home-name{z-index:3;background:#f4f8fc}
.pt-home-table tbody tr:hover td,.pt-home-table tbody tr:hover .pt-home-name{background:#f8fbfd}
.pt-home-table .pt-home-today-col{background:#f0f7ff}
.pt-home-table .pt-home-balance-head{min-width:84px;width:90px}
.pt-home-shift{display:block;border-radius:7px;padding:7px 3px;margin:2px 0;background:#dceeff;color:#16497b;font-size:12px;font-weight:680;line-height:1.45;white-space:nowrap;font-variant-numeric:tabular-nums}
.pt-home-shift.saturday{background:#d9f4e5;color:#177548}
.pt-home-shift.duty{background:#ccefe5;color:#126a58}
.pt-home-shift.draft{border:1px dashed #7699b5;opacity:.77}
.pt-home-no-shift{color:#b7c6d3}
.pt-home-plus{font-weight:760;font-variant-numeric:tabular-nums;color:#146d77!important}
.pt-home-duty-row th,.pt-home-duty-row td{background:#ecf9f2!important;color:#19684e!important;font-size:12px}
.pt-home-duty-row th{position:sticky;left:0;z-index:2}
.pt-home-cal-foot{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 17px;background:#fbfdff;color:#6a8193;font-size:12px}
.pt-home-cal-foot a,.pt-home-summary-card header a{color:#075ba4;text-decoration:none;font-weight:720;white-space:nowrap}
.pt-home-cal-foot a:hover,.pt-home-summary-card header a:hover{text-decoration:underline}
.pt-home-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px}
.pt-home-summary-card{background:#fff;border:1px solid #dae7ef;border-radius:14px;padding:18px;min-width:0;box-shadow:0 4px 14px rgba(20,54,86,.045)}
.pt-home-summary-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;flex-wrap:wrap}
.pt-home-summary-card h3{color:#1b3957;font-size:15px;font-weight:750}
.pt-home-summary-card header a{font-size:12px}
.pt-home-summary-card ul{margin:0;padding-left:17px;display:grid;gap:6px;color:#2c4965;font-size:13px}
.pt-home-summary-card .pt-home-muted{color:#6b8190;font-size:13px}
.pt-home-summary-card .pt-home-summary-highlight{font-size:15px;font-weight:760;color:#1c4b76;margin-bottom:6px}
.pt-home-modules h2{font-size:17px;color:#253f58;margin:0 0 12px}
.pt-home-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:10px}
.pt-home-module-tile{display:flex;align-items:center;gap:10px;padding:16px 14px;min-width:0;background:#fff;border:1px solid #dbe7f2;border-radius:12px;color:#20516e;text-decoration:none;box-shadow:0 3px 10px rgba(20,54,86,.035)}
.pt-home-module-tile:hover,.pt-home-module-tile:focus-visible{border-color:#68b0d0;background:#f2f9fd}
.pt-home-module-tile strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere;flex:1}
.pt-home-module-tile span:first-child{font-size:23px;color:#22997d}
.pt-home-module-tile span:last-child{color:#5a839d}
.pt-home-unavailable{padding:22px}
.pt-home-unavailable h2{margin:0 0 7px}
.pt-home-unavailable p{color:#657b8a;font-size:13px;margin-bottom:10px}
@media(max-width:760px){.pt-home-cal-head{padding:14px 13px}.pt-home-cal-head h2{font-size:19px}.pt-home-duty{padding:10px 12px}.pt-home-duty small{margin-left:0}.pt-home-week-controls strong{font-size:12px}.pt-home-table th,.pt-home-table td{padding:9px 5px}.pt-home-table .pt-home-name{min-width:112px;width:112px;padding-left:9px}}
@media(prefers-reduced-motion:reduce){.pt-home-module-tile,.pt-home-week-controls a{transition:none}}
.ph-core-nav .pt-home-nav-link{display:flex!important;align-items:center;gap:9px;margin:3px 4px 10px;padding:11px 14px!important;font-weight:740;font-size:14px;border-radius:10px;color:#e6f5ff;text-decoration:none}
.ph-core-nav .pt-home-nav-link[aria-current="page"]{background:#225e83!important;color:white!important}

/* PatikaTér 1.0.0-alpha8.97: dashboard consistency and reliable navigation contrast. */
body:has(.nav) .ph-core-nav .pt-home-nav-link{color:#28536f!important;background:#f3f8fc!important;border:1px solid #dceaf2!important}
body:has(.nav) .ph-core-nav .pt-home-nav-link:hover,body:has(.nav) .ph-core-nav .pt-home-nav-link:focus-visible{color:#11587d!important;background:#e5f1fb!important}
body:has(.nav) .ph-core-nav .pt-home-nav-link[aria-current="page"]{background:#dfeef9!important;color:#075d99!important;border-color:#bfd9ed!important;font-weight:800}
.pt-home-workspace{max-width:1550px;margin-inline:auto;gap:18px}
.pt-home-cal-head{min-height:88px}
.pt-home-week-controls a{box-shadow:0 1px 3px rgba(18,54,86,.06)}
.pt-home-week-controls a:focus-visible,.pt-home-module-tile:focus-visible{outline:3px solid #72b8dc;outline-offset:2px}
.pt-home-table-wrap{border-top:1px solid #e6eef4}
.pt-home-table{border:0!important;box-shadow:none!important;border-radius:0!important}
.pt-home-table tbody tr:last-child th,.pt-home-table tbody tr:last-child td{border-bottom:0}
.pt-home-calendar,.pt-home-summary-card,.pt-home-module-tile{box-shadow:0 4px 14px rgba(20,54,86,.055)}
.pt-home-summary-card{min-height:136px}
.pt-home-modules{min-width:0}
@media(max-width:800px){body:has(.nav) .ph-core-nav .pt-home-nav-link{color:#fff!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.15)!important}body:has(.nav) .ph-core-nav .pt-home-nav-link[aria-current="page"]{background:#255f89!important;color:#fff!important;border-color:#518aac!important}}


/* PatikaTér alpha8.98 – calendar-first workspace, stronger visual hierarchy. */
.pt-home-workspace{max-width:1620px;gap:18px}
.pt-home-module-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:0 2px;border-bottom:1px solid #d9e5f0;min-height:48px}
.pt-home-module-tabs a{display:inline-flex;align-items:center;gap:9px;text-decoration:none;font-size:14px;font-weight:700;color:#45657e;padding:12px 17px;border-radius:10px 10px 0 0;border-bottom:3px solid transparent;min-height:44px}
.pt-home-module-tabs a:hover,.pt-home-module-tabs a:focus-visible{color:#075da4;background:#edf6fe}
.pt-home-module-tabs a.is-current{color:#085fbb;border-bottom-color:#0868cd;background:#f1f8ff}
.pt-home-module-tabs a span{font-size:17px}
.pt-home-calendar{border-radius:15px}
.pt-home-cal-head{padding:21px 23px;min-height:105px}
.pt-home-cal-head h2{font-size:23px;line-height:1.25;letter-spacing:-.35px}
.pt-home-eyebrow{display:block;margin-bottom:5px;letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:760;color:#1678b7}
.pt-home-cal-head p{font-size:14px;line-height:1.5}
.pt-home-week-controls{gap:8px}
.pt-home-week-controls a{min-width:42px;min-height:42px;border-radius:10px;font-size:18px}
.pt-home-week-controls strong{font-size:15px;letter-spacing:.01em;padding:0 7px}
.pt-home-week-controls .pt-home-today{font-size:13px}
.pt-home-duty{padding:13px 22px;font-size:14px;gap:12px}
.pt-home-duty-week{border-radius:7px;background:rgba(26,111,170,.09);padding:5px 10px;font-weight:720}
.pt-home-duty.is-own .pt-home-duty-week{background:rgba(21,142,81,.1)}
.pt-home-duty strong{font-size:14px}
.pt-home-table{min-width:900px}
.pt-home-table th,.pt-home-table td{padding:12px 8px;font-size:14px;min-width:108px}
.pt-home-table thead th{padding:13px 8px;font-size:13px}
.pt-home-table thead th small{font-size:12px}
.pt-home-table .pt-home-name{min-width:160px;width:180px;max-width:220px;font-size:14px;font-weight:740;padding-left:16px}
.pt-home-shift{font-size:13px;padding:10px 5px;margin:3px 0;border-radius:8px;letter-spacing:-.01em;background:#d7eafd;color:#174d7d}
.pt-home-shift.afternoon{background:#e8e1fb;color:#4d3b8a}
.pt-home-shift.saturday{background:#dcf4e6;color:#176c47}
.pt-home-shift.duty{background:#c9f1e3;color:#105f4b}
.pt-home-no-shift{font-size:17px}
.pt-home-plus{font-size:14px!important}
.pt-home-cal-foot{padding:15px 21px;font-size:12px;line-height:1.65}
.pt-home-legend-dot{display:inline-block;width:8px;height:8px;background:#8fc1f4;vertical-align:middle;border-radius:2px;margin:0 4px 0 8px}
.pt-home-legend-dot.late{background:#af96ed}
.pt-home-legend-dot.duty{background:#68c6a1}
.pt-home-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,305px),1fr));gap:15px;align-items:stretch}
.pt-home-summary-card{padding:19px 20px;min-height:192px}
.pt-home-summary-card header{align-items:flex-start;margin-bottom:16px}
.pt-home-summary-card h3{font-size:16px}
.pt-home-card-name{display:flex;align-items:center;gap:10px;min-width:0}
.pt-home-card-name small{display:block;font-size:12px;color:#7a90a2;margin-top:3px}
.pt-home-card-icon{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;flex:0 0 35px;border-radius:10px;font-size:20px;color:#148b67;background:#e3f7ec;font-weight:750}
.pt-home-card-icon.attendance{color:#0867b6;background:#e4f1ff}
.pt-home-card-icon.tasks{color:#6c50b4;background:#eee9fb;font-size:19px}
.pt-home-summary-card header a{font-size:12px;align-self:center}
.pt-home-mini-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.pt-home-mini-heading strong{font-size:13px;color:#33536a}
.pt-home-mini-heading span{font-size:10px;color:#7b92a2}
.pt-home-mini-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.pt-home-mini-weekday{text-align:center;font-size:10px;color:#66849a;padding:4px 0;font-weight:700}
.pt-home-mini-day{display:flex;align-items:center;justify-content:center;border-radius:6px;min-height:27px;text-decoration:none;color:#31506d;font-size:11px;font-weight:600;background:#f7fafc;border:1px solid transparent;font-variant-numeric:tabular-nums}
.pt-home-mini-day.other-month{color:#a9b7c3;background:#f9fbfd}
.pt-home-mini-day.is-week{border-color:#b7d6f3}
.pt-home-mini-day.is-approved{background:#d9f4e3;color:#19653b}
.pt-home-mini-day.is-pending{background:#ffefd5;color:#905b1c}
.pt-home-mini-day.is-absence{background:#fde1e1;color:#943838}
.pt-home-mini-day.today{box-shadow:inset 0 0 0 2px #156bd1}
.pt-home-mini-day:hover,.pt-home-mini-day:focus-visible{outline:2px solid #1d80ce;outline-offset:1px}
.pt-home-mini-key{display:flex;gap:11px;flex-wrap:wrap;margin-top:10px;color:#536d7f;font-size:10px}
.pt-home-mini-key span{display:inline-flex;align-items:center;gap:4px}
.pt-home-key{width:10px;height:10px;display:inline-block;border-radius:3px}
.pt-home-key.approved{background:#8bd2a5}.pt-home-key.pending{background:#f3c579}.pt-home-key.absence{background:#ec9999}
.pt-home-attendance-list{display:grid;gap:0}
.pt-home-attendance-cols,.pt-home-attendance-entry{display:grid;grid-template-columns:1.1fr 1fr 1fr 1.3fr;gap:7px;align-items:center}
.pt-home-attendance-cols{color:#7a8e9e;font-size:10px;font-weight:730;padding:7px 5px;border-bottom:1px solid #dfebf3}
.pt-home-attendance-entry{font-size:12px;color:#3b536b;padding:9px 5px;border-bottom:1px solid #eef2f7;font-variant-numeric:tabular-nums}
.pt-home-attendance-entry strong{font-size:12px;font-weight:680}
.pt-home-attendance-entry:last-child{border-bottom:0}
.pt-home-status{justify-self:start;border-radius:99px;font-size:10px;padding:4px 7px;background:#fff3d9;color:#956515;font-weight:650}
.pt-home-status.is-closed{background:#e0f5e8;color:#176c41}
.pt-home-tasks-card .pt-home-summary-highlight{padding:13px;border-radius:9px;background:#f2f6fb;font-size:16px}
.pt-home-module-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:11px}
.pt-home-module-tile{min-height:80px;padding:16px;border-radius:12px;gap:11px;transition:transform .15s ease,background .15s ease,border-color .15s ease}
.pt-home-module-tile:hover{transform:translateY(-1px)}
.pt-home-module-tile .pt-home-module-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 37px;width:37px;height:37px;border-radius:10px;background:#e6f3fd;color:#17629f;font-weight:800;font-size:18px}
.pt-home-module-tile .pt-home-module-arrow{font-size:20px;font-weight:700;color:#7b9bb0}
.pt-home-module-tile strong{font-size:14px}
@media(max-width:760px){
.pt-home-module-tabs{gap:2px}.pt-home-module-tabs a{padding:10px;font-size:12px}
.pt-home-cal-head{padding:18px 14px;min-height:auto}
.pt-home-cal-head h2{font-size:20px}
.pt-home-week-controls{width:100%;justify-content:space-between}
.pt-home-week-controls strong{font-size:12px;padding:0 3px}
.pt-home-week-controls a{min-height:38px;min-width:38px}
.pt-home-table th,.pt-home-table td{padding:10px 6px}
.pt-home-table .pt-home-name{min-width:116px;width:116px}
.pt-home-summary-card{padding:15px}
}
@media(prefers-reduced-motion:reduce){.pt-home-module-tile{transition:none}.pt-home-module-tile:hover{transform:none}}


/* PatikaTér alpha8.99: readable calendar, leader-only overview and honest attendance statuses. */
.pt-home-calendar .pt-home-table th,.pt-home-calendar .pt-home-table td{min-height:50px;font-size:15px;padding:14px 10px}
.pt-home-calendar .pt-home-table tbody tr{height:58px}
.pt-home-calendar .pt-home-table thead th{font-size:14px;padding:15px 9px}
.pt-home-calendar .pt-home-table thead th small{font-size:12px}
.pt-home-calendar .pt-home-table .pt-home-name{min-width:176px;width:185px;max-width:220px;font-size:15px;padding-left:16px}
.pt-home-calendar .pt-home-shift{font-size:14px;min-height:36px;display:flex;align-items:center;justify-content:center;padding:9px 6px}
.pt-home-calendar .pt-home-table .pt-home-today-col{background:#ebf5ff;box-shadow:inset 0 0 0 1px #d0e5f9}
.pt-home-calendar .pt-home-table thead .pt-home-today-col{background:#d7eafd;color:#064d8b}
.pt-home-calendar .pt-home-week-controls a{min-height:44px;min-width:44px;font-size:18px}
.pt-home-calendar .pt-home-week-controls strong{font-size:16px}
.pt-home-mini-day{min-height:34px;font-size:12px}
.pt-home-mini-weekday{font-size:11px;padding:6px 0}
.pt-home-summary-card{min-height:0;align-self:start}
.pt-home-summary{align-items:start}
.pt-home-summary-card .pt-home-summary-highlight.is-empty{background:#f2f6fb;color:#496478;font-weight:650;font-size:13px}
.pt-home-status.is-review{color:#a23a17;background:#fff0df;border:1px solid #f3ccaf}
.pt-home-status.is-missing{color:#64758a;background:#edf2f7}
.pt-home-status.is-open{color:#7659a5;background:#eee8fb}
.pt-home-module-tile .pt-home-module-symbol{color:#1578b4;background:#e5f3ff}
.pt-home-module-tile .pt-home-module-symbol svg{width:23px;height:23px;display:block}
.pt-home-leader-cols,.pt-home-leader-entry{display:grid;grid-template-columns:minmax(100px,2fr) minmax(55px,1fr) minmax(55px,1fr) minmax(94px,1.4fr);gap:7px;align-items:center;padding:8px 3px;border-bottom:1px solid #e8f0f6;font-size:12px}
.pt-home-leader-cols{color:#637b8e;font-weight:750;font-size:11px}
.pt-home-leader-entry strong{font-weight:680;overflow-wrap:anywhere}
.pt-home-leader-attendance{max-height:300px;overflow:auto}
.pt-home-daily-legend{font-size:12px;font-weight:750;color:#315b78;margin:9px 0;display:flex;gap:5px;flex-wrap:wrap;justify-content:space-between}
.pt-home-daily-legend span{font-weight:500;font-size:11px;color:#667f90}
.pt-home-day-picker{display:flex;flex-wrap:wrap;gap:3px;margin:5px 0 10px}
.pt-home-day-picker a{font-size:11px;text-decoration:none;padding:5px 8px;border:1px solid #d7e5f1;border-radius:6px;color:#315a7a;white-space:nowrap}
.pt-home-day-picker a[aria-current=date]{background:#dceeff;border-color:#91c3e6;font-weight:740;color:#075997}
.pt-home-day-picker a:hover,.pt-home-day-picker a:focus-visible{background:#edf6ff}
.pt-home-manager-metrics{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0 12px}
.pt-home-manager-metrics span{display:inline-flex;gap:4px;align-items:center;background:#ecf5fc;color:#265d81;font-size:11px;border-radius:7px;padding:6px 8px}
.pt-home-manager-metrics strong{font-size:13px;color:#135a91}
@media(max-width:900px){
 .pt-home-calendar .pt-home-table{min-width:920px}
 .pt-home-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
}
@media(max-width:600px){
 .pt-home-calendar .pt-home-week-controls strong{font-size:12px}
 .pt-home-calendar .pt-home-table thead th{font-size:12px}
 .pt-home-calendar .pt-home-table .pt-home-name{min-width:135px;width:135px;font-size:13px}
 .pt-home-leader-cols,.pt-home-leader-entry{font-size:11px;gap:4px}
 .pt-home-day-picker a{padding:5px}
}

.pt-home-away{font-size:11px;color:#355b75;line-height:1.6;margin:0 0 10px;padding:7px 9px;background:#f5fafc;border-radius:7px}

/* 8.100 — calendar-first coverage warnings, readable shifts and compact summaries. */
.pt-home-calendar .pt-home-table{min-width:1020px}
.pt-home-calendar .pt-home-table tbody tr{height:64px}
.pt-home-calendar .pt-home-table th,.pt-home-calendar .pt-home-table td{padding:12px 9px;font-size:14px;line-height:1.4}
.pt-home-calendar .pt-home-table thead th{font-size:14px;padding:14px 8px}
.pt-home-calendar .pt-home-table thead th small{font-size:12px}
.pt-home-calendar .pt-home-table .pt-home-name{min-width:185px;width:190px;font-size:14px}
.pt-home-calendar .pt-home-shift{font-size:14px;min-height:38px;padding:8px 7px}
.pt-home-coverage-unavailable,.pt-home-coverage-legal{padding:9px 14px;margin:0;font-size:12px;line-height:1.5;border-bottom:1px solid #f0dec5;background:#fff8eb;color:#74501f}
.pt-home-coverage-legal{border-color:#dce7f0;background:#f4f8fd;color:#3f5c77}
.pt-home-error{display:inline-flex;align-items:center;justify-content:center;position:relative;vertical-align:middle;margin:5px 2px 0;isolation:isolate}
.pt-home-error-label{display:inline-flex;align-items:center;justify-content:center;min-height:25px!important;min-width:0!important;padding:3px 8px!important;border-radius:6px;border:1px solid #f0b1a6;background:#fff0eb;color:#a12b24;font-size:11px;font-weight:800;line-height:1.2;cursor:help;white-space:nowrap;letter-spacing:.01em}
.pt-home-error-label:focus-visible{outline:3px solid #2682ce;outline-offset:2px}
.pt-home-error-tip{display:none;position:absolute;z-index:20;top:calc(100% + 7px);left:0;width:clamp(200px,26vw,330px);max-width:calc(100vw - 40px);padding:11px 13px;border-radius:9px;background:#17334d;color:#fff;text-align:left;white-space:normal;box-shadow:0 8px 24px #15344d45;font-size:12px;font-weight:500;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
.pt-home-error-tip span{display:block;margin-bottom:6px}
.pt-home-error-tip span:last-child{margin-bottom:0}
.pt-home-error:hover .pt-home-error-tip,.pt-home-error:focus-within .pt-home-error-tip{display:block}
.pt-home-table thead th:nth-last-child(-n+3) .pt-home-error-tip,.pt-home-table tbody td:nth-last-child(-n+3) .pt-home-error-tip{left:auto;right:0}
.pt-home-table tbody .pt-home-error-tip{top:auto;bottom:calc(100% + 7px)}
.pt-home-summary{align-items:start}
.pt-home-summary:has(.pt-home-tasks-card .pt-home-summary-highlight.is-empty){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(205px,.7fr)}
.pt-home-tasks-card:has(.pt-home-summary-highlight.is-empty){padding:14px 16px}
.pt-home-tasks-card:has(.pt-home-summary-highlight.is-empty) header{margin-bottom:8px}
.pt-home-tasks-card .pt-home-summary-highlight.is-empty{padding:9px 10px;margin:0;font-size:12px}
@media(max-width:1100px){.pt-home-summary:has(.pt-home-tasks-card .pt-home-summary-highlight.is-empty){grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}}
@media(max-width:800px){.pt-home-calendar .pt-home-table{min-width:940px}.pt-home-calendar .pt-home-table .pt-home-name{min-width:145px;width:145px;font-size:13px}.pt-home-calendar .pt-home-table thead th{font-size:12px}.pt-home-error-tip{width:230px}}

/* alpha8.102: one anchored, viewport-clamped popup for coverage details.
   The old per-cell tooltip spans are no longer rendered. */
.pt-home-issue-popup[hidden]{display:none!important}
.pt-home-issue-popup{position:fixed;z-index:99999;width:min(330px,calc(100vw - 20px));max-height:min(245px,calc(100vh - 20px));overflow:hidden;box-sizing:border-box;background:#17334d;color:#fff;border:1px solid #34566c;border-radius:10px;padding:12px 14px;box-shadow:0 12px 26px rgba(9,34,55,.3);text-align:left;font-size:12px;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
.pt-home-issue-popup strong{display:block;font-size:13px;font-weight:750;margin-bottom:7px;color:#fff}
.pt-home-issue-popup p{margin:0;padding:5px 0;color:#fff;line-height:1.5;border-top:1px solid rgba(255,255,255,.13)}
.pt-home-error-label{position:relative;z-index:1}
@media(max-width:640px){.pt-home-issue-popup{width:min(290px,calc(100vw - 20px));font-size:12px}}

/* alpha8.103: quiet planning mode; publish validation remains mandatory. */
.pt-home-plan-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding:10px 16px;background:#f5f9fd;border-bottom:1px solid #dce8f3;font-size:12px;color:#405d74}
.pt-home-plan-status{font-weight:750;color:#294e6c;white-space:nowrap}
.pt-home-plan-status.is-draft{color:#93671c}
.pt-home-plan-status>span{font-size:9px;margin-right:5px}
.pt-home-plan-description{flex:1;min-width:220px}
.pt-home-plan-toggle{margin-left:auto;border:1px solid #a8c9e3;border-radius:7px;background:#fff;padding:6px 10px;color:#155b93;font-weight:700;text-decoration:none;white-space:nowrap}
.pt-home-plan-toggle:hover,.pt-home-plan-toggle:focus-visible{background:#e8f4fc;outline-offset:2px}
.pt-home-error-label.is-planning{border-color:#ead5a0;color:#855f16;background:#fff9ea}
.pt-home-error-label.is-planning:hover,.pt-home-error-label.is-planning:focus-visible{border-color:#b48a39;background:#fff0c9}
@media(max-width:650px){.pt-home-plan-description{flex-basis:100%}.pt-home-plan-toggle{margin-left:0}}

/* alpha8.110 - dedicated, calm employee master directory */
.ph-worker-summary{font-size:13px;color:#607589;margin:12px 0}.ph-worker-list{border:1px solid #deE6ed;border-radius:13px;overflow:hidden;background:#fff;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:0}.ph-worker-item{display:flex;align-items:center;gap:13px;padding:16px;text-decoration:none;color:#183c55;border-bottom:1px solid #e1e9ef;border-right:1px solid #e1e9ef;min-width:0}.ph-worker-item:hover,.ph-worker-item:focus-visible{background:#eef6fb}.ph-worker-selected{background:#e8f3fa;box-shadow:inset 3px 0 #1575a7}.ph-worker-avatar{background:#e3eff5;color:#146387;border-radius:12px;display:grid;place-items:center;min-width:42px;height:42px;font-weight:750}.ph-worker-id{display:flex;flex-direction:column;min-width:0;flex:1}.ph-worker-id strong,.ph-worker-id small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ph-worker-id small{color:#678096;font-size:12px}.ph-worker-role{font-size:12px;color:#4a6b80;white-space:nowrap}.ph-worker-hint{margin:22px 0;color:#607589}.ph-worker-panel{margin:22px 0 12px;border:1px solid #dce6ed;border-radius:13px;padding:clamp(14px,2.5vw,24px);background:#fdfefe}.ph-worker-panel-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e1e9ef;padding-bottom:10px}.ph-worker-panel-head h2{margin:0}.ph-worker-panel-head p{margin:0;flex:1}.ph-worker-group,.ph-worker-management details{border:1px solid #dbe5ec;border-radius:9px;padding:10px 14px;margin:12px 0;background:white}.ph-worker-group>summary,.ph-worker-management details>summary{cursor:pointer;font-weight:700}.ph-worker-management{margin-top:15px}.ph-worker-management h3{margin:0 0 10px}.ph-worker-management form{max-width:560px}.ph-worker-management .ph-user-security{max-width:none}.ph-worker-panel .ph-user-grant{display:block;margin:7px 0}.ph-worker-panel .ph-user-grant button{margin:0;max-width:100%;font-size:13px}.ph-worker-management .ph-user-role-form{padding-bottom:12px;border-bottom:1px solid #e8eef2}.ph-worker-management .ph-user-role-form .ph-role-label{max-width:300px}.ph-worker-panel .ph-worker-card{max-width:700px}.ph-worker-panel .ph-worker-card form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.ph-worker-panel .ph-worker-card form>button,.ph-worker-panel .ph-worker-card form>label:last-of-type{grid-column:1/-1}.ph-worker-panel .ph-worker-card form label{min-width:0}.ph-worker-panel .ph-worker-card form input,.ph-worker-panel .ph-worker-card form select{max-width:100%}@media(max-width:680px){.ph-worker-list{grid-template-columns:1fr}.ph-worker-role{white-space:normal}.ph-worker-panel .ph-worker-card form{grid-template-columns:1fr}}

/* alpha8.112 worker cards */
.ph-worker-management .ph-worker-identity-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:900px}.ph-worker-management .ph-worker-identity-form label{display:flex;flex-direction:column;gap:5px;min-width:0}.ph-worker-management .ph-worker-identity-form input{width:100%;min-width:0;box-sizing:border-box}.ph-worker-management .ph-worker-identity-form button{grid-column:1/-1;justify-self:start}.ph-worker-management .ph-worker-card{max-width:none}.ph-worker-management .ph-worker-card form{max-width:900px}.ph-worker-management .ph-worker-group{margin-top:14px}@media(max-width:680px){.ph-worker-management .ph-worker-identity-form{grid-template-columns:1fr}}

/* Alpha8.116 – PatikaTér 2C3 arculati fejléc: világos petrolkék, változatlan magasság */
:root{--ph-navy:#236481}
.topbar{background:linear-gradient(100deg,#246a86 0%,#277b87 56%,#276b7b 100%)!important;border-bottom:1px solid rgba(255,255,255,.22);box-shadow:0 2px 10px rgba(25,62,79,.12)}
.topbar .masthead{min-height:68px}
.topbar .brand{padding:7px 0;gap:12px}
.topbar .brand img{height:54px!important;max-height:54px!important;max-width:min(330px,48vw)!important;object-fit:contain}
.topbar .ph-core-version{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.25);color:#f7fcff;opacity:1}
.topbar .user-chip{color:#f8fdff}
.topbar .ph-header-actions button,.topbar .ph-header-actions .ph-header-logout button{border-color:rgba(255,255,255,.36)}
@media(max-width:800px){.topbar .masthead{min-height:60px}.topbar .brand img{height:43px!important;max-height:43px!important;max-width:min(230px,45vw)!important}}
@media(max-width:520px){.topbar .brand img{height:39px!important;max-height:39px!important;max-width:43vw!important}}

/* Alpha8.117 – világos PatikaTér 2C3 fejléc, változatlan favicon */
:root{--ph-navy:#e9f4f6}
.topbar{background:linear-gradient(105deg,#f7fbfd 0%,#eaf5f6 58%,#e2f2ed 100%)!important;color:#16374a!important;border-bottom:1px solid #c9dfe3!important;box-shadow:0 2px 9px rgba(22,62,78,.07)!important}
.topbar .masthead{min-height:68px}
.topbar .brand{color:#17374b!important;padding:6px 0;gap:12px}
.topbar .brand img{height:58px!important;max-height:58px!important;max-width:min(350px,47vw)!important;width:auto!important;object-fit:contain}
.topbar .ph-core-version{background:#e4eef3!important;border:1px solid #c6d9e2!important;color:#37566b!important;opacity:1}
.topbar .user-chip,.topbar .user-chip a,.topbar .ph-header-actions,.topbar .ph-header-actions a{color:#173d52!important}
.topbar .ph-header-actions button,.topbar .ph-header-actions .ph-header-logout button{background:#f8fcfd!important;color:#193e54!important;border:1px solid #bfd4de!important}
.topbar .ph-header-actions button:hover,.topbar .ph-header-actions .ph-header-logout button:hover{background:#dceef2!important;border-color:#8ab7c3!important}
.topbar a:focus-visible,.topbar button:focus-visible{outline:2px solid #147d9a!important;outline-offset:2px}
@media(max-width:800px){.topbar .masthead{min-height:60px}.topbar .brand img{height:45px!important;max-height:45px!important;max-width:min(240px,43vw)!important}}
@media(max-width:520px){.topbar .brand img{height:40px!important;max-height:40px!important;max-width:43vw!important}}

/* Approved annual leave from the read-only leave ledger, independent of stored shifts. */
.pt-home-leave-approved{display:block;margin:3px 0;padding:7px 5px;border-radius:8px;background:#d7f3e4;color:#166445;border:1px solid #82c9aa;font-size:12px;font-weight:750;line-height:1.4;white-space:normal}
