/* Scoped presentation for attendance, questions and warehouse tools. */
body.dsc-refresh {
  --dsc-ink: #173d5b;
  --dsc-blue: #176a9c;
  --dsc-border: #d6e2ed;
  color: var(--dsc-ink);
  background: linear-gradient(125deg, #e8f1fa 0%, #f4f7fa 55%, #f4f7fa 100%);
  min-height: 100vh;
  padding-top: 0;
}
.dsc-page { padding: 18px 24px 30px; margin: 0 auto; min-width: 0; }
.dsc-page .dsc-hero, .dsc-survey > h1 {
  background: linear-gradient(110deg, #e5f0fa, #f8fbfe);
  border: 1px solid var(--dsc-border);
  border-radius: 12px;
  padding: 18px 22px !important;
  margin: 0 0 18px !important;
}
.dsc-page h1, .dsc-page h4 { color: var(--dsc-ink); font-weight: 700; }
.dsc-page h1 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
.dsc-page h4 { font-size: 1.3rem; }
.dsc-page .dsc-hero h1 { margin: 0; }
.dsc-page .card, .dsc-page .dsc-panel {
  background: #fff;
  border: 1px solid var(--dsc-border) !important;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(23, 61, 91, .035) !important;
}
.dsc-page .card-header {
  background: linear-gradient(110deg, #e7f1fa, #f5f9fd);
  color: var(--dsc-ink);
  border-bottom: 1px solid var(--dsc-border) !important;
  padding: 12px 16px !important;
  border-radius: 12px 12px 0 0;
}
.dsc-page .card-body { padding: 18px; }
.dsc-page .dsc-toolbar { padding: 12px 16px; margin-bottom: 16px; }
.dsc-page .dsc-tabs { justify-content: flex-start !important; padding: 0 2px; }
.dsc-page .btn { border-radius: 7px; font-weight: 600; }
.dsc-page .btn-primary { background: var(--dsc-blue); border-color: var(--dsc-blue); }
.dsc-page .btn-primary:hover { background: #11577f; border-color: #11577f; }
.dsc-page .btn-outline-primary { color: var(--dsc-blue); border-color: #b8d5eb; }
.dsc-page .btn-outline-primary:hover, .dsc-page .btn-outline-primary.active {
  color: #fff; background: var(--dsc-blue); border-color: var(--dsc-blue);
}
.dsc-page .btn-info.text-white { color: #123b50 !important; }
.dsc-page .form-control, .dsc-page .form-select { border-color: #c7d9e8; border-radius: 7px; }
.dsc-page .form-control:focus, .dsc-page .form-select:focus {
  border-color: #6fa8cd; box-shadow: 0 0 0 3px rgba(23,106,156,.12);
}
.dsc-page .form-label, .dsc-survey label { font-weight: 600; }
.dsc-page .table { color: var(--dsc-ink); border-color: var(--dsc-border); }
.dsc-page .table > :not(caption) > * > * { padding: 10px 12px; vertical-align: middle; }
.dsc-page .table thead th {
  background-color: #edf4f9; color: #395b74; font-weight: 700;
  border-bottom: 1px solid #c7d9e8;
}
.dsc-page .table-responsive, .dsc-page .table-responsive-lg { border-radius: 10px; background: #fff; }
.dsc-page .badge { padding: .45em .65em; line-height: 1.25; }
.dsc-page .btn-group { flex-wrap: wrap; gap: 3px; }
.dsc-page .btn-group > .btn { border-radius: 6px !important; margin-left: 0 !important; }
.dsc-modal .modal-content { border: 1px solid #d6e2ed; border-radius: 14px; color: #173d5b; }
.dsc-modal .modal-header { padding: 18px 20px; background: linear-gradient(110deg, #e7f1fa, #f5f9fd); border-radius: 14px 14px 0 0; }
.dsc-modal .modal-body { padding: 20px; }
.dsc-modal .modal-footer { padding: 14px 20px; background: #f8fbfe; }
.dsc-attendance > .container, .dsc-attendance > .container-fluid { max-width: none; padding: 0; }
.dsc-attendance .row { margin-left: 0; margin-right: 0; }
.dsc-attendance .table { border-color: #d6e2ed !important; }
.dsc-attendance .table-responsive-lg > .table { min-width: 680px; }
.dsc-inventory .table-responsive > .table { min-width: 760px; }
.dsc-attendance .table-responsive-lg { border: 1px solid #d6e2ed; }
.dsc-attendance .table-responsive-lg .table { margin-bottom: 0 !important; }
.dsc-attendance h1 { text-align: left !important; margin: 18px 0 10px !important; padding: 0 !important; }
.dsc-attendance .dsc-hero h1 { margin: 0 !important; }
.dsc-survey { max-width: 1120px; padding-top: 30px; }
.dsc-survey > .container-fluid, .dsc-survey > .container { padding: 0; }
.dsc-survey .row { margin-left: 0; margin-right: 0; }
.dsc-survey .col-md.m-3 { margin-left: 0 !important; margin-right: 0 !important; }
.dsc-survey form { background: #fff; border: 1px solid #d6e2ed; border-radius: 12px; padding: 22px; margin: 18px 0; }
.dsc-survey form .row { margin-left: 0; margin-right: 0; }
.dsc-survey .dsc-survey-cards .card { height: 100%; padding-top: 14px; }
.dsc-survey .dsc-survey-cards img { border-radius: 50%; }
.dsc-survey .dsc-help { background: #edf5fc; margin-top: 22px; }
.dsc-survey .dsc-survey-actions { margin-top: 20px !important; }
.dsc-survey .dsc-survey-actions .btn { height: 100%; display: flex; align-items: center; justify-content: center; font-size: .95rem; padding: 14px; }
.dsc-survey .dsc-survey-counts { table-layout: fixed; margin-top: 22px !important; border-radius: 12px; overflow: hidden; }
.dsc-survey .dsc-survey-counts td { background: #edf4f9; color: #173d5b; box-shadow: none; font-size: .95rem !important; overflow-wrap: anywhere; }
.dsc-survey .dsc-survey-counts tr:last-child td { font-size: 1.7rem !important; font-weight: 700; }
.dsc-survey footer { margin-top: 24px; color: #627a8d; font-size: .8rem; background: transparent !important; }
.dsc-modal-table-scroll { overflow-x: auto; }
.dsc-modal-table-scroll > .table-responsive { min-width: 780px; }
@media (max-width: 767.98px) {
  .dsc-page { padding: 12px 10px 22px; }
  .dsc-page .dsc-hero, .dsc-survey > h1 { padding: 14px !important; }
  .dsc-page .dsc-hero > *, .dsc-page .dsc-hero form { min-width: 0; max-width: 100%; }
  .dsc-page .dsc-hero select { max-width: 100% !important; }
  .dsc-page .dsc-hero .d-flex { flex-wrap: wrap; }
  .dsc-survey form { padding: 14px; }
  .dsc-survey form .row > * { padding-left: 0; padding-right: 0; }
  .dsc-modal .modal-body { padding: 14px; }
  .dsc-page .table-responsive-lg { overflow-x: auto; }
}
@media print {
  body.dsc-refresh { background: #fff; }
  .dsc-page { padding: 0; }
  .dsc-page .dsc-hero, .dsc-page .dsc-panel, .dsc-page .card { background: #fff; box-shadow: none !important; }
  .dsc-page .table-responsive, .dsc-page .table-responsive-lg { overflow: visible; }
  .dsc-page .dsc-toolbar, .dsc-page .dsc-tabs { display: none !important; }
}
