
/* =========================================================
   REAL TREZZANO V8.5.7
   DESKTOP + TABLET + MOBILE DISTINCT RESPONSIVE LAYOUT
   ========================================================= */

.rt-mobile-header,.rt-mobile-overlay,.rt-mobile-drawer{display:none}

/* Desktop remains the current full layout */
@media (min-width: 901px){
  .rt-mobile-header,.rt-mobile-overlay,.rt-mobile-drawer{display:none!important}
}

/* Tablet */
@media (min-width: 641px) and (max-width: 900px){
  :root{--rt-mobile-header-h:68px}
  body{padding-top:var(--rt-mobile-header-h)!important}
  .rt-mobile-header{display:flex!important}
  .rt-global-sidebar,.rt-sidebar,.rt-unified-topnav,.club-hero{display:none!important}
  .rt-global-shell,.rt-app-shell{display:block!important;width:100%!important}
  .rt-global-content,.rt-workspace{width:100%!important;min-width:0!important}
  .app-main,.rt-main-v3{padding:20px!important;width:100%!important;max-width:none!important}
  .page-heading{align-items:flex-start!important}
  .dashboard-grid{grid-template-columns:1fr 1fr!important}
  .dashboard-grid>*:first-child{grid-column:1/-1}
  .kpis,.quick-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .form-grid{grid-template-columns:1fr 1fr!important}
  .team-list-row{grid-template-columns:1fr!important}
  .team-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Shared mobile top bar */
@media (max-width: 900px){
  html{scroll-padding-top:78px}
  body{overflow-x:hidden}
  body.rt-mobile-menu-open{overflow:hidden}

  .rt-mobile-header{
    position:fixed;
    inset:0 0 auto 0;
    z-index:1000;
    height:68px;
    padding:env(safe-area-inset-top,0) 14px 0;
    background:#090a0b;
    color:#fff;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    border-bottom:2px solid #ffd000;
    box-shadow:0 7px 22px rgba(0,0,0,.2);
  }
  .rt-mobile-menu-btn,.rt-mobile-home-btn,.rt-mobile-close{
    appearance:none;
    border:0;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .rt-mobile-menu-btn{
    width:44px;height:44px;border-radius:12px;background:#1a1b1e;
    display:grid;place-content:center;gap:5px;padding:0;
  }
  .rt-mobile-menu-btn span{display:block;width:21px;height:2px;border-radius:2px;background:#ffd000}
  .rt-mobile-home-btn{
    width:44px;height:44px;border-radius:12px;background:#ffd000;color:#090909;
    font-size:24px;font-weight:900;
  }
  .rt-mobile-brand{min-width:0;flex:1;display:flex;align-items:center;gap:9px}
  .rt-mobile-brand img{width:38px;height:42px;object-fit:contain;border-radius:6px}
  .rt-mobile-brand div{min-width:0}
  .rt-mobile-brand strong,.rt-mobile-brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rt-mobile-brand strong{font-size:13px;letter-spacing:.7px}
  .rt-mobile-brand small{font-size:10px;color:#b7bbc0;margin-top:2px;text-transform:uppercase;font-weight:800}

  .rt-mobile-overlay{
    display:block;
    position:fixed;inset:0;z-index:1100;
    background:rgba(0,0,0,.58);
    opacity:0;visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
  }
  .rt-mobile-drawer{
    display:flex;
    position:fixed;z-index:1110;
    top:0;bottom:0;left:0;
    width:min(86vw,350px);
    background:#0c0d0f;color:#fff;
    flex-direction:column;
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:18px 0 45px rgba(0,0,0,.35);
    padding-top:env(safe-area-inset-top,0);
  }
  .rt-mobile-menu-open .rt-mobile-overlay{opacity:1;visibility:visible}
  .rt-mobile-menu-open .rt-mobile-drawer{transform:translateX(0)}
  .rt-mobile-drawer-head{
    display:flex;align-items:center;justify-content:space-between;
    min-height:84px;padding:14px;border-bottom:1px solid #2a2c30;
  }
  .rt-mobile-drawer-brand{display:flex;align-items:center;gap:10px;min-width:0}
  .rt-mobile-drawer-brand img{width:48px;height:56px;object-fit:contain;border-radius:7px}
  .rt-mobile-drawer-brand strong,.rt-mobile-drawer-brand small{display:block}
  .rt-mobile-drawer-brand strong{font-size:14px}
  .rt-mobile-drawer-brand small{font-size:9px;color:#999fa7;margin-top:4px}
  .rt-mobile-close{width:42px;height:42px;border-radius:12px;background:#1d1f22;color:#fff;font-size:27px;line-height:1}
  .rt-mobile-nav{display:grid;gap:5px;padding:12px;overflow-y:auto}
  .rt-mobile-nav-link{
    min-height:52px;padding:8px 12px;border-radius:12px;
    display:flex;align-items:center;gap:12px;
    color:#f3f4f5;text-decoration:none;font-size:14px;font-weight:900;
    border:1px solid transparent;
  }
  .rt-mobile-nav-link.active{background:#292611;color:#ffd000;border-color:#6a5710}
  .rt-mobile-nav-ico{
    width:34px;height:34px;border-radius:9px;background:#1b1d20;
    display:grid;place-items:center;color:#ffd000;font-size:18px;flex:0 0 34px;
  }

  /* Remove desktop navigation in mobile/tablet */
  .rt-global-sidebar,.rt-sidebar,.rt-unified-topnav,.club-hero{display:none!important}
  .rt-global-shell,.rt-app-shell{display:block!important;width:100%!important;max-width:100%!important}
  .rt-global-content,.rt-workspace{width:100%!important;min-width:0!important;max-width:100%!important}

  /* Generic mobile page */
  .app-main,.rt-main-v3{
    width:100%!important;max-width:none!important;
    margin:0!important;padding:16px 14px calc(30px + env(safe-area-inset-bottom,0))!important;
  }
  .rt-topbar{display:none!important}
  .page-heading{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:14px!important;margin-bottom:16px!important;
  }
  .page-heading h2{font-size:25px!important;line-height:1.05!important;margin-top:3px!important}
  .page-heading p{font-size:13px!important}
  .page-heading .primary,.page-heading>a,.page-heading>button{width:100%!important;min-height:48px!important}
  .eyebrow{font-size:10px!important}

  /* Cards and controls */
  .content-card,.calendar-shell,.dash-card,.dashboard-filters,.activity-list-panel,
  .settings-section,.team-schedule-head,.team-schedule-card{
    border-radius:14px!important;box-shadow:0 5px 18px rgba(0,0,0,.06)!important;
  }
  .content-card,.calendar-shell{padding:14px!important}
  button,.primary,.action-link{min-height:44px}
  input,select,textarea{font-size:16px!important} /* prevents iOS zoom */
  .toolbar,.calendar-toolbar,.calendar-nav,.calendar-filters,.poster-toolbar{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:stretch!important;
  }
  .toolbar input,.toolbar select,.toolbar button,
  .calendar-toolbar input,.calendar-toolbar select,.calendar-toolbar button,
  .dashboard-filters select{width:100%!important;min-width:0!important}
  .dashboard-filters{
    display:grid!important;grid-template-columns:1fr!important;gap:12px!important;
    padding:14px!important;align-items:stretch!important;
  }

  /* Dashboard */
  .dashboard-v3 .rt-main-v3{padding-left:14px!important;padding-right:14px!important}
  .dashboard-grid,.rt-dashboard-grid{grid-template-columns:1fr!important;gap:12px!important}
  .dash-card{min-height:auto!important;padding:15px!important}
  .kpis,.quick-links,.home-month-stats{
    grid-template-columns:1fr!important;gap:10px!important;
  }
  .kpis article,.quick-links a{padding:15px!important}
  .kpis b{font-size:25px!important}
  .month-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .month-actions>*{width:100%!important;text-align:center!important}

  /* Matches/activities become vertical cards */
  .match-row,.dashboard-v3 .match-row,body[data-page="matches"] .match-row,
  .linear-appointment,.compact-appointment,.rt745-appointment{
    display:grid!important;grid-template-columns:1fr!important;
    gap:9px!important;padding:14px!important;border-radius:12px!important;
    margin-bottom:10px!important;border-top:1px solid #e6e8eb!important;
  }
  .match-row>*{min-width:0!important;max-width:100%!important}
  .match-actions,.card-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;width:100%!important;justify-self:stretch!important;
  }
  .match-actions button,.card-actions button{width:100%!important;min-width:0!important}

  /* Teams */
  .club-list-head{align-items:flex-start!important;gap:10px!important}
  .team-list-row{
    display:grid!important;grid-template-columns:1fr!important;
    gap:12px!important;padding:14px!important;
  }
  .team-main{min-width:0}
  .team-meta{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .team-meta span{padding:8px;border-radius:9px;background:#f6f7f8}
  .team-fields-details{grid-column:auto!important}
  .teams-list{gap:10px!important}

  /* Forms and dialogs: true phone layout */
  dialog{
    width:calc(100% - 16px)!important;max-width:none!important;
    max-height:calc(100dvh - 18px)!important;
    margin:auto!important;border-radius:18px!important;
  }
  dialog .dialog-body{padding:20px 16px 18px!important;max-height:calc(100dvh - 18px)!important;overflow-y:auto!important}
  .profile-dialog-v4{width:calc(100% - 12px)!important}
  .profile-dialog-head{padding-right:48px!important}
  .profile-dialog-head h3{font-size:26px!important;line-height:1.05!important}
  .form-grid{grid-template-columns:1fr!important;gap:12px!important}
  .form-grid .full-width{grid-column:auto!important}
  dialog .primary,#saveProfile,#saveField,#savePlayer{width:100%!important}
  .profile-dialog-v4 .dialog-x{
    top:12px!important;right:12px!important;width:40px!important;height:40px!important;
  }

  /* User profiles */
  .settings-profile-head{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .profile-row-v853{
    display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;
    gap:12px!important;padding:15px!important;
  }
  .profile-main-v853,.profile-meta-v853,.profile-actions-v853{grid-column:2!important}
  .profile-meta-v853{grid-template-columns:1fr 1fr!important}
  .profile-actions-v853{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
  }
  .profile-actions-v853 button{width:100%!important;min-width:0!important}
  .profile-password-card{width:100%!important;align-items:center!important}
  .profile-password-value code{min-width:0!important}

  /* Calendar: horizontal swipe area instead of crushed cells */
  .calendar-weekdays,.month-calendar{
    min-width:720px!important;
  }
  .calendar-layout-v5,.calendar-shell{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  .calendar-day{min-height:105px!important}
  .calendar-toolbar{position:relative!important}

  /* Posters */
  .poster-sheet{width:100%!important;margin:10px 0!important;overflow:hidden!important}
  .poster-header{padding:14px!important;gap:12px!important}
  .poster-header img{width:56px!important;height:56px!important}
  .poster-header h2{font-size:20px!important}
  .poster-game{grid-template-columns:1fr!important;gap:6px!important}

  /* Tournaments / scouting */
  .tournament-card{padding:14px!important}
  .players-list>*{max-width:100%!important}
  .player-row,.observed-player-row{grid-template-columns:1fr!important}

  /* Team schedule */
  .team-schedule-head{padding:16px!important}
  .team-schedule-identity{width:100%!important}
  .team-schedule-actions{width:100%!important}
  .team-fixture-row{grid-template-columns:52px minmax(0,1fr)!important;padding:13px!important}
  .fixture-time{grid-column:2!important}
  .fixture-teams,.fixture-place,.fixture-edit{grid-column:1/-1!important}
  .fixture-edit{width:100%!important}

  /* Avoid clipped long strings / attachments */
  a,button,span,b,strong,small,p,h1,h2,h3,h4,label{overflow-wrap:anywhere}
  img{max-width:100%}
}

/* Phone-specific */
@media (max-width: 640px){
  :root{--rt-mobile-header-h:64px}
  body{padding-top:64px!important}
  .rt-mobile-header{height:64px;padding-left:10px;padding-right:10px}
  .rt-mobile-brand img{width:34px;height:38px}
  .rt-mobile-brand strong{font-size:12px}
  .rt-mobile-brand small{font-size:9px}
  .rt-mobile-menu-btn,.rt-mobile-home-btn{width:42px;height:42px}

  .app-main,.rt-main-v3{padding:12px 10px 28px!important}
  .content-card,.calendar-shell{padding:11px!important}
  .page-heading h2{font-size:23px!important}

  .team-meta{grid-template-columns:1fr!important}
  .profile-row-v853{grid-template-columns:46px minmax(0,1fr)!important}
  .profile-row-v853 .profile-avatar{width:46px!important;height:46px!important;font-size:17px!important}
  .profile-meta-v853,.profile-actions-v853{grid-template-columns:1fr!important}
  .profile-password-card{align-items:stretch!important;flex-direction:column!important}
  .profile-password-value{justify-content:space-between!important}

  .match-actions,.card-actions{grid-template-columns:1fr!important}
  .calendar-weekdays,.month-calendar{min-width:650px!important}

  .team-schedule-logo{width:52px!important;height:52px!important}
  .team-schedule-identity h2{font-size:21px!important}
}

/* Landscape phone: retain compact 2-column cards when space allows */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 950px){
  .rt-mobile-header{height:56px}
  body{padding-top:56px!important}
  .rt-mobile-drawer{width:min(62vw,360px)}
  dialog{max-height:calc(100dvh - 8px)!important}
  dialog .dialog-body{max-height:calc(100dvh - 8px)!important}
}

/* V8.7.8 - adattamento automatico device/safe-area senza device sniffing */
:root{
  --rt-safe-top: env(safe-area-inset-top, 0px);
  --rt-safe-right: env(safe-area-inset-right, 0px);
  --rt-safe-bottom: env(safe-area-inset-bottom, 0px);
  --rt-safe-left: env(safe-area-inset-left, 0px);
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-width:0;max-width:100%;overflow-x:hidden}
input,select,textarea,button{font:inherit;max-width:100%}
input,select,textarea{font-size:16px}
img,svg,canvas,video{max-width:100%}
.rt-mobile-header{padding-left:max(10px,var(--rt-safe-left));padding-right:max(10px,var(--rt-safe-right))}
.rt-mobile-drawer{padding-bottom:max(16px,var(--rt-safe-bottom))}
.app-main,.rt-main-v3{padding-left:max(10px,var(--rt-safe-left));padding-right:max(10px,var(--rt-safe-right))}

/* Tablet: non comprimere tasti e filtri; farli andare a capo in modo controllato. */
@media (min-width:641px) and (max-width:1100px){
  .page-heading{gap:14px;flex-wrap:wrap}
  .page-heading>.heading-actions,.page-heading>.page-actions{max-width:100%;flex-wrap:wrap}
  .toolbar{min-width:0}
  dialog,.side-dialog{max-width:calc(100vw - 24px)!important}
}

/* Touch devices: target comodi indipendentemente da iOS/Android. */
@media (hover:none) and (pointer:coarse){
  button,.button,.primary,.secondary-button,.nav-link{min-height:44px}
  select,input[type="date"],input[type="time"],input[type="search"],input[type="text"],input[type="number"],input[type="tel"]{min-height:44px}
}

/* iOS/Safari: evitare zoom automatico dei form e rispettare la safe area. */
@supports (-webkit-touch-callout:none){
  input,select,textarea{font-size:16px!important}
  body{padding-bottom:var(--rt-safe-bottom)}
}

/* Desktop molto largo: non stirare il contenuto oltre una misura leggibile. */
@media (min-width:1800px){
  .app-main,.rt-main-v3{max-width:1680px;margin-left:auto;margin-right:auto}
}

/* V1.03 - LOCANDINA IPHONE: layout mobile nativo, non desktop compresso */
@media screen and (max-width:700px){
  body[data-page="poster"] .app-main{padding-left:8px!important;padding-right:8px!important}
  body[data-page="poster"] .content-card{padding:10px!important;background:#f3f5f7!important}
  body[data-page="poster"] .poster-toolbar{gap:8px!important;margin-bottom:12px!important}
  body[data-page="poster"] .poster-toolbar label,
  body[data-page="poster"] .poster-toolbar>select,
  body[data-page="poster"] .poster-toolbar>button{width:100%!important}
  body[data-page="poster"] .poster-toolbar label{display:grid!important;gap:5px!important}
  body[data-page="poster"] .poster-toolbar input,
  body[data-page="poster"] .poster-toolbar select,
  body[data-page="poster"] .poster-toolbar button{min-height:48px!important;border-radius:12px!important}

  body[data-page="poster"] .poster-sheet{
    width:100%!important;max-width:none!important;margin:8px 0!important;
    border:0!important;border-radius:18px!important;overflow:hidden!important;
    box-shadow:0 8px 28px rgba(0,0,0,.10)!important;background:#fff!important;
  }
  body[data-page="poster"] .poster-header{
    padding:15px 14px!important;gap:12px!important;align-items:center!important;
    background:#090909!important;
  }
  body[data-page="poster"] .poster-header img{width:58px!important;height:68px!important;flex:0 0 58px!important}
  body[data-page="poster"] .poster-header>div{min-width:0!important}
  body[data-page="poster"] .poster-header h2{font-size:19px!important;line-height:1.05!important;letter-spacing:.01em!important}
  body[data-page="poster"] .poster-header h3{font-size:16px!important;margin-top:4px!important}
  body[data-page="poster"] .poster-header p{font-size:11px!important;line-height:1.25!important;margin:5px 0 0!important;color:#f3f3f3!important}

  body[data-page="poster"] .poster-day{padding:13px 10px!important;background:#f6f7f9!important}
  body[data-page="poster"] .poster-day>h3{
    margin:0 0 9px!important;padding:0 2px 9px!important;font-size:18px!important;
    border-bottom:2px solid #ffd000!important;color:#15171a!important;
  }
  body[data-page="poster"] .poster-org-section{margin:10px 0!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;border:1px solid #e3e6ea!important}
  body[data-page="poster"] .poster-org-section>h4{margin:0!important;padding:9px 11px!important;font-size:11px!important;letter-spacing:.05em!important;background:#111!important;color:#ffd000!important}

  body[data-page="poster"] .poster-game{
    display:grid!important;grid-template-columns:94px minmax(0,1fr)!important;
    grid-template-areas:"time team" "match match" "field field"!important;
    gap:8px 10px!important;margin:9px 0!important;padding:12px!important;
    border:1px solid #e2e6ea!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 3px 12px rgba(0,0,0,.045)!important;
  }
  body[data-page="poster"] .poster-org-section .poster-game{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;box-shadow:none!important}
  body[data-page="poster"] .poster-game>b{
    grid-area:time!important;display:flex!important;align-items:center!important;justify-content:center!important;
    align-self:start!important;min-height:38px!important;padding:6px 7px!important;border-radius:10px!important;
    background:#ffd000!important;color:#111!important;font-size:14px!important;line-height:1.1!important;text-align:center!important;
  }
  body[data-page="poster"] .poster-game>strong{
    grid-area:team!important;align-self:center!important;font-size:15px!important;line-height:1.15!important;color:#14171a!important;
  }
  body[data-page="poster"] .poster-match-main{
    grid-area:match!important;align-items:stretch!important;gap:7px!important;padding:10px!important;
    border-radius:11px!important;background:#f5f7f9!important;
  }
  body[data-page="poster"] .poster-team-line{width:100%!important;justify-content:center!important;gap:7px!important}
  body[data-page="poster"] .poster-team-item{max-width:calc(50% - 14px)!important;gap:5px!important;justify-content:center!important}
  body[data-page="poster"] .poster-training-single .poster-team-item{max-width:100%!important;width:100%!important}
  body[data-page="poster"] .poster-team-item strong{font-size:13px!important;line-height:1.12!important;text-align:center!important}
  body[data-page="poster"] .poster-team-logo{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:8px!important}
  body[data-page="poster"] .poster-training-single .poster-team-logo{width:48px!important;height:48px!important;flex-basis:48px!important}
  body[data-page="poster"] .poster-separator{font-size:15px!important}
  body[data-page="poster"] .poster-match-main>small{text-align:center!important;font-size:11px!important;font-weight:800!important;color:#59616b!important}
  body[data-page="poster"] .poster-field-usage{
    grid-area:field!important;padding:9px 10px!important;border-radius:11px!important;background:#111!important;color:#fff!important;
  }
  body[data-page="poster"] .poster-field-line{font-size:12px!important;line-height:1.25!important;color:#fff!important}
  body[data-page="poster"] .poster-field-line+.poster-field-line{margin-top:4px!important;padding-top:4px!important;border-top:1px solid rgba(255,255,255,.18)!important}
  body[data-page="poster"] .poster-sheet footer{padding:10px!important;font-size:10px!important;line-height:1.2!important}
}

@media screen and (max-width:390px){
  body[data-page="poster"] .poster-header h2{font-size:17px!important}
  body[data-page="poster"] .poster-game{grid-template-columns:84px minmax(0,1fr)!important;padding:10px!important}
  body[data-page="poster"] .poster-game>b{font-size:13px!important}
  body[data-page="poster"] .poster-game>strong{font-size:14px!important}
  body[data-page="poster"] .poster-team-logo{width:34px!important;height:34px!important;flex-basis:34px!important}
  body[data-page="poster"] .poster-team-item strong{font-size:12px!important}
}

/* V1.03 - STAMPA/PDF IPHONE: layout fisso A4 landscape, indipendente dal viewport mobile */
@media print{
  @page{size:A4 landscape;margin:8mm}
  html,body{width:auto!important;min-width:0!important;background:#fff!important;margin:0!important;padding:0!important}
  body[data-page="poster"]{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body[data-page="poster"] .club-hero,
  body[data-page="poster"] .main-nav,
  body[data-page="poster"] .page-heading,
  body[data-page="poster"] .poster-toolbar,
  body[data-page="poster"] .toast,
  body[data-page="poster"] .floating-panel,
  body[data-page="poster"] .build-version,
  body[data-page="poster"] #posterEmpty{display:none!important}
  body[data-page="poster"] .app-main,
  body[data-page="poster"] .content-card{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;overflow:visible!important}
  body[data-page="poster"] .poster-sheet{
    display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:#fff!important;
  }
  body[data-page="poster"] .poster-header{display:flex!important;padding:13px 16px!important;gap:16px!important;min-height:82px!important;background:#090909!important;color:#fff!important;break-inside:avoid!important}
  body[data-page="poster"] .poster-header img{width:62px!important;height:62px!important;flex:0 0 62px!important;object-fit:contain!important}
  body[data-page="poster"] .poster-header h2{font-size:22px!important;line-height:1!important;margin:0!important;color:#fff!important}
  body[data-page="poster"] .poster-header h3{font-size:18px!important;line-height:1!important;margin:6px 0 0!important;color:#ffd000!important}
  body[data-page="poster"] .poster-header p{font-size:10px!important;margin:6px 0 0!important;color:#fff!important}
  body[data-page="poster"] .poster-day{padding:10px 14px!important;background:#fff!important;break-inside:auto!important}
  body[data-page="poster"] .poster-day>h3{font-size:16px!important;margin:0!important;padding:7px 0 8px!important;border-bottom:1px solid #cfd3d7!important;color:#000!important;break-after:avoid!important}
  body[data-page="poster"] .poster-game{
    display:grid!important;grid-template-columns:58px 148px minmax(0,1fr) 190px!important;grid-template-areas:none!important;
    gap:10px!important;align-items:center!important;margin:0!important;padding:9px 4px!important;
    border:0!important;border-top:1px solid #d9dde1!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;
    break-inside:avoid!important;page-break-inside:avoid!important;
  }
  body[data-page="poster"] .poster-game>b{display:block!important;grid-area:auto!important;min-height:0!important;padding:0!important;background:transparent!important;color:#000!important;font-size:11px!important;line-height:1.15!important;text-align:left!important}
  body[data-page="poster"] .poster-game>strong{grid-area:auto!important;font-size:11px!important;line-height:1.15!important;color:#000!important}
  body[data-page="poster"] .poster-match-main{grid-area:auto!important;padding:0!important;background:transparent!important;border-radius:0!important;gap:4px!important;align-items:center!important}
  body[data-page="poster"] .poster-team-line{justify-content:flex-start!important;gap:6px!important;flex-wrap:nowrap!important;width:100%!important}
  body[data-page="poster"] .poster-team-item{max-width:none!important;gap:5px!important;justify-content:flex-start!important}
  body[data-page="poster"] .poster-team-logo,
  body[data-page="poster"] .poster-training-single .poster-team-logo{width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:4px!important}
  body[data-page="poster"] .poster-team-item strong,
  body[data-page="poster"] .poster-training-single .poster-team-item strong{font-size:10.5px!important;line-height:1.08!important;max-width:120px!important;text-align:left!important;color:#000!important}
  body[data-page="poster"] .poster-separator{font-size:11px!important;color:#000!important}
  body[data-page="poster"] .poster-match-main>small{font-size:8.5px!important;color:#333!important;text-align:left!important}
  body[data-page="poster"] .poster-field-usage{grid-area:auto!important;padding:0!important;background:transparent!important;border-radius:0!important;color:#000!important}
  body[data-page="poster"] .poster-field-line{font-size:9.5px!important;line-height:1.18!important;color:#000!important}
  body[data-page="poster"] .poster-field-line+.poster-field-line{margin-top:2px!important;padding-top:0!important;border:0!important}
  body[data-page="poster"] .poster-org-section{border:0!important;border-radius:0!important;margin:6px 0!important;background:#fff!important;overflow:visible!important}
  body[data-page="poster"] .poster-org-section>h4{margin:0!important;padding:5px 7px!important;background:#f1f2f3!important;color:#111!important;font-size:9px!important;border-left:4px solid #ffd000!important;break-after:avoid!important}
  body[data-page="poster"] .poster-sheet footer{background:#ffd000!important;color:#000!important;padding:7px!important;font-size:8.5px!important;text-align:center!important;font-weight:900!important}
}
