/*
 * jPATman 2.0 — Global Stylesheet
 * Served at /resources/css/jpatman.css via WebConfig resource handler (classpath:/static/).
 *
 * Color palette (Atlas semantic palette):
 *   Primary / Action   #004A99   Deep Blue
 *   Manager / Admin    #3A7CA5   Slate Teal
 *   Danger / Logout    #B22222   Firebrick
 *   Success / Nav      #28A745   Green
 *   Background         #F8F9FA   Light Gray
 */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    font-size: 10pt;
    margin: 0;
    background: #F8F9FA;
}

/* ── Semantic button base ─────────────────────────────────────────────────── */
.btn-patman {
    display: inline-block;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 9pt;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.btn-patman:hover { text-decoration: none; }

/* Primary — Home, Reports, general navigation */
.btn-primary {
    background-color: #004A99;
    color: #FFFFFF;
    border-color: #003070;
}
.btn-primary:hover { background-color: #003070; color: #FFFFFF; }

/* Manager — Admin section buttons */
.btn-manager {
    background-color: #3A7CA5;
    color: #FFFFFF;
    border-color: #2a5f82;
}
.btn-manager:hover { background-color: #2a5f82; color: #FFFFFF; }

/* Danger — Log Out, destructive actions */
.btn-danger {
    background-color: #B22222;
    color: #FFFFFF;
    border-color: #8B0000;
}
.btn-danger:hover { background-color: #8B0000; color: #FFFFFF; }

/* Success — Find, Return, confirmations */
.btn-success {
    background-color: #28A745;
    color: #FFFFFF;
    border-color: #1e7e34;
}
.btn-success:hover { background-color: #1e7e34; color: #FFFFFF; }

/* ── Page header — three-zone grid: [logo | title | alaska + user] ─────────── */
header.patman-header {
    background: #004A99;
    color: white;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

header.patman-header .header-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

header.patman-header .header-title {
    justify-self: center;
    font-size: 13pt;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

header.patman-header .header-user {
    justify-self: end;
    font-size: 9pt;
    display: flex;
    align-items: center;
    gap: 10px;
}

header.patman-header .header-user a {
    color: #cce0ff;
    text-decoration: none;
}
header.patman-header .header-user a:hover { text-decoration: underline; }

/* ── Page title ───────────────────────────────────────────────────────────── */
h1.page-title {
    text-align: center;
    color: #004A99;
    margin: 14px 0 4px 0;
    font-size: 16pt;
}

/* ── Nav bar (bottom, mirrors _adminNav3.cfm) ─────────────────────────────── */
.navrow {
    text-align: center;
    margin: 10px 0 4px 0;
}

.navrow .btn-patman {
    margin: 0 3px;
    padding: 4px 14px;
}

/* ── Session status line ──────────────────────────────────────────────────── */
.statusrow {
    text-align: center;
    font-size: 8pt;
    color: #666;
    margin-bottom: 6px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    background: #004A99;
    color: #CCE0FF;
    font-size: 8pt;
    text-align: center;
    padding: 10px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.footer img  { height: 28px; opacity: 0.75; }
.footer a    { color: #CCE0FF; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Report output pages (reports/*.jsp) ─────────────────────────────────── */
/* Carry-forward from CF style.css so existing class names render correctly  */
.little { font-size: 9pt; }
.text   { font-size: 10pt; }

h1.rpt-title {
    text-align: center;
    color: #004A99;
    font-size: 14pt;
    margin: 6px 0 14px;
}

table.rpt {
    border-collapse: collapse;
    margin: 0 auto;
}
table.rpt td, table.rpt th {
    border: 1px solid #ccc;
    padding: 3px 6px;
}
table.rpt th {
    background: #e8eef8;
    font-weight: bold;
}

/* ── Report catalog table (reportDashboard.jsp) ──────────────────────────── */
table.rptCatalog td, table.rptCatalog th { padding: 3px 5px; }
table.rptCatalog td.rpt-name             { font-size: 10pt; }
table.rptCatalog td.rpt-fmt              { width: 50px; text-align: center; }

/* ── Report format badges (replaces repSCREEN.gif / repEXCEL.gif etc.) ────── */
.badge-rpt {
    display: inline-block;
    padding: 2px 8px;
    font-size: 8pt;
    font-weight: bold;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
}
.badge-rpt:hover { opacity: 0.85; text-decoration: none; }

.badge-screen { border: 1px solid #004A99; color: #004A99; }
.badge-excel  { background: #1D6F42; color: white; }
.badge-pdf    { background: #AF0000; color: white; }
.badge-word   { background: #2B579A; color: white; }