/* ==========================================================================
   Skill Green - Responsive Design
   ==========================================================================
   Loads Redmine core responsive CSS first, then applies theme overrides.
   ========================================================================== */

/* Load Redmine core responsive CSS */
@import url('/stylesheets/responsive.css');

/* Notebook (992px - 1200px) */
@media (max-width: 1199px) and (min-width: 992px) {
  table thead th,
  table tbody td {
    padding: 0 var(--sg-space-3);
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  /* Tables */
  table thead th,
  table tbody td {
    padding: 0 var(--sg-space-2);
    font-size: var(--sg-font-size-sm);
  }

  /* Login */
  #login-form {
    margin: var(--sg-space-4);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  /* Tables */
  table thead th,
  table tbody td {
    padding: 0 var(--sg-space-2);
    font-size: var(--sg-font-size-xs);
  }

  /* Flash */
  #flash_notice,
  #flash_error,
  #flash_warning {
    border-radius: var(--sg-radius-md);
  }

  /* Login */
  #login-form {
    margin: var(--sg-space-4);
    border-radius: var(--sg-radius-md);
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
  table thead th,
  table tbody td {
    font-size: 11px;
  }
}

/* Print */
@media print {
  #top-menu,
  #main-menu,
  #sidebar,
  .contextual,
  .tabs,
  #footer,
  .pagination,
  .btn,
  input[type="submit"],
  input[type="button"] {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
    font-size: 12pt;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}