/* 2AData theme for osTicket (support.2adata.com), 2026-10-20.
   Tokens from www.2adata.com assets/css/shared.css: navy #0f172a, accent #3b82f6 / #2563eb, violet #8b5cf6, Inter.
   Loaded after osTicket's own CSS by include/client/header.inc.php and include/staff/(login.)header.inc.php
   (see C:/Users/Administrator/tgd-cs/osticket-build/PATCHES.md). Overrides only; no osTicket CSS is edited. */
:root {
  --ad-navy: #0f172a; --ad-navy-2: #1e293b; --ad-blue: #3b82f6; --ad-blue-d: #2563eb; --ad-violet: #8b5cf6;
  --ad-orange: #f97316; --ad-bg: #f8fafc; --ad-line: #e2e8f0; --ad-ink: #0f172a; --ad-muted: #475569;
  --ad-radius: 10px; --ad-grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* ---------- Dealer portal ---------- */
html, body { background: var(--ad-bg) !important; }
body { font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ad-ink); }
body, input, select, textarea, button { font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#container { width: auto; max-width: 1040px; margin: 24px auto 0; background: #fff; border: 1px solid var(--ad-line);
  border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(15, 23, 42, .08); overflow: hidden; }
#header { height: auto; min-height: 76px; padding: 18px 28px 14px; display: flex; align-items: center;
  justify-content: space-between; flex-direction: row-reverse; border-bottom: 1px solid var(--ad-line); position: relative; }
#header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ad-grad); }
#header #logo { float: none; display: block; height: auto; }
#header #logo img { max-height: 44px; width: auto; max-width: 240px; }
#header #logo .valign-helper { display: none; }
#header .pull-right { float: none; margin: 0; text-align: right; color: var(--ad-muted); font-size: 14px; }
#header .pull-right p { margin: 2px 0; }
#header a, #header a:visited { color: var(--ad-blue-d); font-weight: 600; text-decoration: none; }
#nav { margin: 0; padding: 10px 24px; height: auto; background: #fff; border: 0; box-shadow: none; border-bottom: 1px solid var(--ad-line);
  display: flex; flex-wrap: wrap; gap: 6px; }
#nav li { display: block; margin: 0; }
#nav li a { display: inline-block; height: auto; line-height: 1.2; padding: 9px 14px 9px 14px; background-image: none !important;
  border-radius: var(--ad-radius); color: var(--ad-muted); font-weight: 600; font-size: 14px; }
#nav li a:hover { background-color: #eff6ff; color: var(--ad-blue-d); }
#nav li a.active, #nav li a.active:hover { background-color: var(--ad-navy); color: #fff; }
#content { padding: 28px 28px 36px; min-height: 280px; }
#content h1, #landing_page h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--ad-navy); font-size: 30px; }
#content h2, #content h3 { color: var(--ad-navy); font-weight: 700; }
#content a, #content a:visited { color: var(--ad-blue-d); }
#landing_page .main-content p, #content p { color: var(--ad-muted); line-height: 1.65; font-size: 15px; }

/* Buttons: one primary (blue), one secondary (navy outline) */
.button, a.button, input.button, button.button, .action-button, input[type=submit], button[type=submit] {
  background: var(--ad-blue-d) !important; background-image: none !important; border: 1px solid var(--ad-blue-d) !important;
  color: #fff !important; border-radius: var(--ad-radius) !important; box-shadow: none !important; text-shadow: none !important;
  font-weight: 600 !important; padding: 10px 18px !important; height: auto !important; line-height: 1.2 !important; }
.button:hover, a.button:hover, input[type=submit]:hover, button[type=submit]:hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; }
.green.button, a.green.button { background: #fff !important; color: var(--ad-navy) !important; border: 1px solid var(--ad-navy) !important; }
.green.button:hover, a.green.button:hover { background: var(--ad-navy) !important; color: #fff !important; }
input[type=reset], input[type=button]:not(.button) { border-radius: var(--ad-radius); border: 1px solid var(--ad-line); background: #fff; color: var(--ad-ink); padding: 9px 16px; }
.sidebar .front-page-button { width: 100%; }
.sidebar .front-page-button p { margin: 0 0 12px; }
.sidebar .front-page-button .button { display: block; width: 100%; box-sizing: border-box; text-align: center; font-size: 16px; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font-size: 15px; background: #fff; color: var(--ad-ink); max-width: 100%; box-sizing: border-box; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(59, 130, 246, .35); outline-offset: 1px; border-color: var(--ad-blue); }
.form-header h1, .form-header h3 { color: var(--ad-navy); }
hr { border: 0; border-top: 1px solid var(--ad-line); }
.error, .error_bar, #msg_error { border-radius: 8px; }
#msg_notice, #msg_info, .notice_bar { border-radius: 8px; }

/* Ticket list and thread */
table.list thead th, #ticketTable th { background: var(--ad-navy) !important; color: #fff !important; background-image: none !important; }
table.list thead th a, #ticketTable th a { color: #fff !important; }
.thread-entry .header { border-radius: 8px 8px 0 0; }
.thread-entry.response .header { background: #eff6ff; border-color: #bfdbfe; }
.thread-entry.message .header { background: #f1f5f9; border-color: var(--ad-line); }

#footer { margin: 18px auto 32px; color: #64748b; font-size: 13px; }
#footer a { color: var(--ad-blue-d); }
#footer #poweredBy { display: none; }

/* Phones and tablets: osTicket's client theme is fixed width */
@media (max-width: 1080px) { #container { margin: 0; border-radius: 0; border-left: 0; border-right: 0; } }
@media (max-width: 760px) {
  #header { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding: 14px 16px 12px; }
  #header .pull-right { text-align: left; }
  #nav { padding: 8px 12px; }
  #content { padding: 20px 16px 28px; }
  #content h1, #landing_page h1 { font-size: 24px; }
  #landing_page .main-content, #landing_page .sidebar, .main-content, .sidebar { float: none !important; width: auto !important; margin: 0 0 20px !important; }
  #content table, #content form table { width: 100% !important; }
  #content table td { display: block; width: auto !important; }
  input[type=text], input[type=email], select, textarea { width: 100% !important; }
}

/* ---------- Agent panel (scp) ---------- */
body.scp-body, #scp-body { background: var(--ad-bg); }
#header .header-logo img, #header #logo img { max-height: 40px; }
#nav.scp, .scp #nav, #sub_nav { font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.scp #header { background: #fff; }
.scp #nav { background: var(--ad-navy) !important; }
.scp #nav li a, .scp #nav li.inactive > a { color: #e2e8f0 !important; }
.scp #nav li.active > a, .scp #nav li a:hover { color: #fff !important; background-color: var(--ad-navy-2) !important; }

/* Agent login page */
#loginBody, body#loginBody { background: var(--ad-navy) !important; background-image: none !important; }
#loginBox { border-radius: 16px !important; border: 0 !important; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .45) !important; }
#loginBox h1#logo img { max-height: 48px; width: auto; }
#loginBox input[type=text], #loginBox input[type=password] { width: 100%; }
#loginBox .submit, #loginBox button.submit { background: var(--ad-blue-d) !important; color: #fff !important; border: 0 !important; border-radius: var(--ad-radius) !important; padding: 10px 22px !important; font-weight: 600; }
#brickwall { background: radial-gradient(ellipse at 20% 10%, rgba(59, 130, 246, .35), transparent 55%),
  radial-gradient(ellipse at 85% 90%, rgba(139, 92, 246, .35), transparent 55%), var(--ad-navy) !important; }
#blur, #background, #background-compat { display: none !important; }
#loginBox { background: #fff !important; }
#loginBox #login-message { color: var(--ad-muted) !important; }
#loginBox + #company, #company .content { background: transparent !important; color: #cbd5e1 !important; }
#company .content, #company { color: #cbd5e1; }
#poweredBy { opacity: .35; }
