/* custom_styles.css */

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    /* Remove default background */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="18px" height="18px"><path d="M7 10l5 5 5-5z"/></svg>');
    /* Default arrow icon */
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.5em;
    /* Adjust the padding to make space for the icon */
}

.custom-select::-ms-expand {
    display: none;
    /* Hide the default arrow icon for IE/Edge */
}

.custom-select:focus {
    outline: none;
    /* Remove focus outline */
}

.custom-select:after {
    content: none;
    /* Hide the default arrow icon after the select box */
}

.custom-select::-webkit-scrollbar {
    height: 5px;
    background-color: transparent;
    /* Make the scrollbar background transparent */
}

.custom-select::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    /* Semi-transparent scrollbar thumb */
}

.custom-select::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
    /* Darker scrollbar thumb on hover */
}

.custom-select::-webkit-scrollbar-track {
    background-color: transparent;
    /* Make the scrollbar track transparent */
}

.custom-select::-webkit-scrollbar-track:hover {
    background-color: rgba(0, 0, 0, 0.1);
    /* Semi-transparent scrollbar track on hover */
}
/* line 1, ../../app/assets/stylesheets/scaffolds.scss */
body {
  background-color: #fff;
  color: #333;
  margin: 33px;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

/* line 10, ../../app/assets/stylesheets/scaffolds.scss */
p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

/* line 16, ../../app/assets/stylesheets/scaffolds.scss */
pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}

/* line 22, ../../app/assets/stylesheets/scaffolds.scss */
a {
  color: #000;
}

/* line 25, ../../app/assets/stylesheets/scaffolds.scss */
a:visited {
  color: #666;
}

/* line 29, ../../app/assets/stylesheets/scaffolds.scss */
a:hover {
  color: #fff;
  background-color: #000;
}

/* line 35, ../../app/assets/stylesheets/scaffolds.scss */
th {
  padding-bottom: 5px;
}

/* line 39, ../../app/assets/stylesheets/scaffolds.scss */
td {
  padding: 0 5px 7px;
}

/* line 44, ../../app/assets/stylesheets/scaffolds.scss */
div.field, div.actions {
  margin-bottom: 10px;
}

/* line 49, ../../app/assets/stylesheets/scaffolds.scss */
#notice {
  color: green;
}

/* line 53, ../../app/assets/stylesheets/scaffolds.scss */
.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}

/* line 59, ../../app/assets/stylesheets/scaffolds.scss */
#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px 7px 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

/* line 66, ../../app/assets/stylesheets/scaffolds.scss */
#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px -7px 0;
  background-color: #c00;
  color: #fff;
}

/* line 76, ../../app/assets/stylesheets/scaffolds.scss */
#error_explanation ul li {
  font-size: 12px;
  list-style: square;
}

/* line 82, ../../app/assets/stylesheets/scaffolds.scss */
label {
  display: block;
}
/*


 */

/* =======================================================
   DealerAddendums Design System
   Tokens and component styles per DADesignGuidelines.md
   ======================================================= */

:root {
  --navy: #2a2b3c;
  --orange: #ffa500;
  --blue: #1976d2;
  --blue-light: #2196f3;

  --success: #4caf50;
  --error: #ff5252;
  --warning: #ff9800;

  --bg-app: #3a6897;
  --bg-surface: #ffffff;
  --bg-subtle: #f5f6f7;

  --text-primary: #333333;
  --text-secondary: #55595c;
  --text-muted: #78828c;
  --text-inverse: #ffffff;

  --border: #e0e0e0;
  --border-strong: #c0c0c0;
}

/* --- Base --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-app);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-primary); margin: 0 0 12px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; font-weight: 500; }
code { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; background: var(--bg-subtle); padding: 1px 5px; border-radius: 3px; }
pre { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; }

/* --- App shell --- */
.da-shell { display: grid; grid-template-columns: 1fr; grid-template-rows: 56px 1fr; min-height: 100vh; grid-template-areas: 'topbar' 'content'; }
.da-topbar { grid-area: topbar; background: var(--navy); color: var(--text-inverse); display: flex; align-items: stretch; padding: 0; height: 56px; position: sticky; top: 0; z-index: 100; }
.da-topbar-logo { display: flex; align-items: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.da-topbar-logo-img { height: 30px; width: auto; display: block; }
.da-topbar-spacer { flex: 1; }
.da-topbar-user { font-size: 12px; color: rgba(255,255,255,0.6); padding: 0 10px; display: flex; align-items: center; white-space: nowrap; }

/* Topnav */
.da-topnav { display: flex; align-items: stretch; }
.da-topnav-group { display: flex; align-items: stretch; }
.da-topnav-account { border-left: 1px solid rgba(255,255,255,0.1); }
.da-topnav-sep { width: 1px; background: rgba(255,255,255,0.1); margin: 10px 0; flex-shrink: 0; }
.da-topnav-item { display: flex; align-items: center; padding: 0 14px; color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.da-topnav-item:hover { color: var(--text-inverse); background: rgba(255,255,255,0.08); text-decoration: none; }
.da-topnav-item.active { color: var(--orange); border-bottom-color: var(--orange); }

.da-content { grid-area: content; padding: 24px; background: var(--bg-app); min-height: calc(100vh - 56px); }

/* --- Cards --- */
.da-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; padding: 24px; margin-bottom: 16px; }
.da-card.compact { padding: 16px; }
.da-card-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.da-card-header h2, .da-card-header h3 { margin: 0; }
.da-card-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; }
.da-card-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* --- Buttons --- */
.da-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; font-size: 14px; font-weight: 500; font-family: inherit; border-radius: 4px; border: none; cursor: pointer; text-decoration: none; transition: background 120ms ease; white-space: nowrap; }
.da-btn:hover { text-decoration: none; }
.da-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.da-btn-primary { background: var(--blue); color: #fff; }
.da-btn-primary:hover { background: #155fa0; color: #fff; }
.da-btn-success { background: var(--success); color: #fff; }
.da-btn-success:hover { background: #3d9c40; color: #fff; }
.da-btn-danger { background: var(--error); color: #fff; }
.da-btn-danger:hover { background: #e54646; color: #fff; }
.da-btn-orange { background: var(--orange); color: #333; }
.da-btn-orange:hover { background: #e69500; color: #333; }
.da-btn-secondary { background: #fff; color: var(--text-primary); border: 1px solid var(--border); }
.da-btn-secondary:hover { background: var(--bg-subtle); color: var(--text-primary); }
.da-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

/* --- Inputs --- */
.da-input, .da-select { height: 36px; width: 100%; border: 1px solid var(--border); border-radius: 4px; padding: 0 12px; font-size: 14px; font-family: inherit; color: var(--text-primary); background: var(--bg-surface); }
.da-input:focus, .da-select:focus { border-color: var(--blue); outline: none; box-shadow: none; }
.da-input[readonly] { background: var(--bg-subtle); color: var(--text-muted); }
.da-textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; color: var(--text-primary); }
.da-textarea:focus { border-color: var(--blue); outline: none; }
.da-field { margin-bottom: 16px; }
.da-field label { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.da-field .da-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.da-field .da-error { font-size: 12px; color: var(--error); margin-top: 4px; }
.da-req { color: var(--error); font-weight: 700; }

/* --- Tables --- */
.da-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); }
.da-table thead th { background: var(--bg-subtle); font-size: 12px; text-transform: uppercase; font-weight: 500; color: var(--text-muted); padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); letter-spacing: 0.3px; }
.da-table tbody td { padding: 12px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.da-table tbody tr:hover { background: var(--bg-subtle); }
.da-table tbody tr.selected { background: #e3f2fd; }
.da-table .actions { text-align: right; }
.da-table .actions .da-btn { margin-left: 6px; }

/* DataTables integration — reskin the jQuery plugin to match */
#dataTable, .dataTables_wrapper table { width: 100% !important; background: var(--bg-surface); border-collapse: collapse; }
#dataTable thead th, .dataTables_wrapper thead th { background: var(--bg-subtle); font-size: 12px !important; text-transform: uppercase; font-weight: 500 !important; color: var(--text-muted); padding: 10px 12px !important; border-bottom: 1px solid var(--border); }
#dataTable tbody td, .dataTables_wrapper tbody td { padding: 12px !important; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
#dataTable tbody tr:hover, .dataTables_wrapper tbody tr:hover { background: var(--bg-subtle); }
/* Kill DataTables 1.10's broken PNG arrows (they 404 when loaded via the standalone CDN CSS). */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc { background-image: none !important; }
.dataTables_info, .dataTables_length, .dataTables_paginate { font-size: 13px; color: var(--text-secondary); padding-top: 12px; }
.dataTables_paginate .paginate_button { padding: 4px 10px; margin: 0 2px; border-radius: 4px; border: 1px solid var(--border) !important; color: var(--text-primary) !important; background: #fff; }
.dataTables_paginate .paginate_button.current { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
.dataTables_paginate .paginate_button:hover { background: var(--bg-subtle) !important; color: var(--text-primary) !important; }

/* --- Badges --- */
.da-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.da-badge-success { background: #e8f5e9; color: #2e7d32; }
.da-badge-error { background: #ffebee; color: #c62828; }
.da-badge-info { background: #e3f2fd; color: #1565c0; }
.da-badge-warning { background: #fff3e0; color: #e65100; }
.da-badge-neutral { background: var(--bg-subtle); color: var(--text-secondary); }

/* --- Page headers --- */
.da-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.da-page-header h1 { font-size: 24px; font-weight: 600; margin: 0; color: var(--text-inverse); }
.da-page-header .da-subtitle { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.da-page-actions { display: flex; gap: 8px; }

/* --- Flash alerts --- */
.da-flash { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.da-flash-success { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.da-flash-error, .da-flash-alert { background: #ffebee; border-color: #ffcdd2; color: #c62828; }
.da-flash-notice { background: #e3f2fd; border-color: #bbdefb; color: #1565c0; }
.da-flash .close { float: right; background: transparent; border: none; font-size: 20px; cursor: pointer; color: inherit; opacity: 0.6; }
.da-flash .close:hover { opacity: 1; }

/* --- Filters bar (for index/logs) --- */
.da-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.da-filter-bar .da-field { margin-bottom: 0; min-width: 140px; }

/* --- Footer --- */
.da-footer { padding: 16px 24px; background: var(--navy); color: rgba(255,255,255,0.7); font-size: 12px; text-align: center; margin-top: 24px; }

/* --- Login / landing special cases --- */
.da-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-app); padding: 24px; }
.da-login-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; padding: 32px; width: 100%; max-width: 420px; }
.da-login-card h1 { font-size: 24px; text-align: center; margin-bottom: 20px; }
.da-login-card .da-brand-wrap { text-align: center; margin-bottom: 20px; }
.da-login-card .da-brand-wrap img { max-width: 220px; height: auto; }

/* --- Helpers --- */
.da-text-right { text-align: right; }
.da-text-muted { color: var(--text-muted); }
.da-mb-0 { margin-bottom: 0 !important; }
.da-mt-24 { margin-top: 24px; }

/* --- Legacy selectors kept to avoid breaking existing markup (will be removed once all pages are migrated) --- */
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; padding: 24px; color: var(--text-primary); }
.card h2 { color: var(--text-primary); }
.container.job-container, .container.results-listing, .profile.container { max-width: 1200px; margin: 0 auto; padding: 0; min-height: auto; }
.content-main { margin-top: 0; margin-bottom: 0; }
.job-results-listing { padding: 0 !important; border: none; background: transparent; }
.job-results-listing .list-header { background: transparent; margin-bottom: 16px; padding: 0; }
.job-results-listing .list-header h2 { color: var(--text-inverse); }
.date-filter, .job-filter, .run-type-filter, .status-filter { position: static !important; display: inline-block; margin: 0 8px 8px 0; }
.col-5-5 { display: inline-block; color: var(--text-secondary); font-size: 12px; font-weight: 500; margin-right: 6px; }
.date-filter .form-control, .job-filter .form-control, .run-type-filter .form-control, .status-filter .form-control { height: 36px !important; width: 160px !important; border: 1px solid var(--border) !important; border-radius: 4px; padding: 0 12px; font-size: 14px; }
.profile.container label { color: var(--text-secondary); font-weight: 500; margin-bottom: 6px; }
.profile.container h3 { color: var(--text-primary); margin: 0 0 16px; }
.alert { position: static !important; width: auto !important; height: auto !important; padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 16px; }
.alert-notice { background: #e3f2fd; border: 1px solid #bbdefb; color: #1565c0; }
.alert-success { background: #e8f5e9; border: 1px solid #c8e6c9; color: #2e7d32; }
.alert-danger, .alert-alert, .alert-error { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; }
