/* Redmine substitutes this file for its core responsive stylesheet.
   Always load the core layout, flyout visibility and breakpoint rules first. */
@import url(../../../stylesheets/responsive.css);

/* Core responsive.css is loaded AFTER the theme; use body-qualified rules.
   Keep Redmine's existing flyout behavior and touch targets. */
@media screen and (max-width:1100px) and (min-width:900px) {
  body #sidebar {width:190px;padding:24px 16px;}
  body #content {padding:24px 20px;}
  body #quick-search input#q {width:110px;}
}
@media screen and (max-width:899px) {
  body {min-width:0;font-size:14px;}
  body #header {height:64px;min-height:0;padding:0;background:var(--header);border-bottom:1px solid var(--border);}
  body #header #quick-search {margin:0;}
  body #project-jump.drdn {padding:5px 70px 5px 16px;}
  body #project-jump .drdn-trigger {height:50px;line-height:40px;background:transparent;border:0;padding:0 0 0 24px;color:var(--text);font-size:19px;}
  body #header .mobile-toggle-button {border-color:var(--border);color:var(--text);}
  body #main {padding-top:64px;}
  body #main #content {padding:20px 16px;width:100%;box-sizing:border-box;}
  body #content h2 {font-size:23px;}
  body #content>.contextual {margin:0 0 14px;}
  body #content>.contextual a {margin-left:0;margin-right:8px;border-color:var(--border);}
  body .flyout-menu {background:var(--header);color:var(--text);}
  body .flyout-menu h3 {background:var(--raised);color:var(--muted);border-color:var(--border);height:auto;line-height:1.8;}
  body .flyout-menu a {color:var(--text);}
  body .flyout-menu__search input[type=text] {background:var(--bg);padding-left:28px;}
  body .box,body div.issue {padding:18px;border-radius:10px;}
  body div.issue .subject h3 {font-size:21px;}
  body div.issue .attributes .attribute {padding-left:130px;}
  body div.issue .attributes .attribute .label {width:120px;margin-left:-130px;}
  body #login-form {width:100%;max-width:380px;margin:28px auto;padding:24px;box-sizing:border-box;}
  #content div.agile-board.autoscroll {max-height:65vh;min-height:300px;}
  #content table.list.issues-board th {top:0;}
}
@media print {
  :root {--bg:#fff;--surface:#fff;--raised:#eee;--text:#111;--muted:#444;--border:#bbb;--accent:#234;--story:#eee;}
  body,body #content {background:#fff;color:#111;}
  body #top-menu,body #header,body #sidebar,body .contextual,body #footer {display:none;}
  body #main,body #content {display:block;padding:0;overflow:visible;}
  body .box,body div.issue {box-shadow:none;break-inside:avoid;}
  #content div.agile-board.autoscroll {max-height:none;overflow:visible;}
}
@media screen and (max-width:899px) {
  body .splitcontentleft,body .splitcontentright {margin-left:0;margin-right:0;}
}
