/* -----------------------------------------
   GLOBAL BASE STYLES
------------------------------------------*/
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Make all headings smaller and more compact */
h1 {
    font-size: 1.8rem;       /* smaller than Bootstrap default */
    line-height: 1.2;        /* less vertical spacing */
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

/* Optional: tighten spacing on paragraphs for a petite look */
p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Dashboard background override */
body.dashboard-bg {
    background: linear-gradient(to bottom right, #e7f3ff, #d4e8ff);
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, sans-serif;
}

/* Theme variables */
:root {
    --primary-colour: #0d6efd;   /* fallback */
    --secondary-colour: #6c757d; /* fallback */
}

/* Primary / Secondary utilities */
.bg-primary { background-color: var(--primary-colour) !important; }
.text-primary { color: var(--primary-colour) !important; }
.btn-primary { background-color: var(--primary-colour) !important; border-color: var(--primary-colour) !important; }

.bg-secondary { background-color: var(--secondary-colour) !important; }
.text-secondary { color: var(--secondary-colour) !important; }
.btn-secondary { background-color: var(--secondary-colour) !important; border-color: var(--secondary-colour) !important; }


/* ==============================
   Global Typography (Petite)
   ============================== */

html {
    font-size: 14px; /* default Bootstrap = 16px */
}

body {
    font-size: 0.95rem;
    line-height: 1.2;
}

/* -----------------------------------------
  /Dashboard
------------------------------------------*/

.dashboard-card {
    min-height: 140px;       /* smaller than 180px default */
}

.dashboard-card .card-body {
    padding: 0.5rem;         /* less padding */
}

.dashboard-card .card-body p {
    min-height: 20px;        /* smaller paragraph height */
    margin-bottom: 0.5rem;   /* less spacing below text */
}

.dashboard-card .btn {
    padding: 0.35rem 0.5rem; /* smaller buttons */
    font-size: 0.85rem;      /* smaller text */
}

/* -----------------------------------------
   HEADER / TOP NAV
------------------------------------------*/
.top-nav {
    width: 100%;
    background: var(--primary-colour);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav .brand {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.top-nav .brand .header-logo {
    height: 48px;
    object-fit: contain;
    margin-right: 10px; /* logo left of company name */
}

/* -----------------------------------------
   PAGE TITLE BAR
------------------------------------------*/
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-title-bar h2 {
    margin: 0;
    color: var(--primary-colour);
}

/* -----------------------------------------
   CARDS
------------------------------------------*/
.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.12);
    margin-bottom: 20px;
    border: 1px solid var(--primary-colour);
}

.card-title {
    color: var(--primary-colour);
}

/* -----------------------------------------
   BUTTONS
------------------------------------------*/
* FORCE Edit Button */
a.edit-btn {
    color: #0d6efd !important;
    font-weight: 600;
    text-decoration: none !important;
}

a.edit-btn:hover {
    color: #084298 !important;
    text-decoration: none !important;
}

/* FORCE Delete Button */
a.delete-btn {
    color: #dc3545 !important;
    font-weight: 600;
    text-decoration: none !important;
}

a.delete-btn:hover {
    color: #a71d2a !important;
    text-decoration: none !important;
}
/* -----------------------------------------
  BADGES- Effect around roles
------------------------------------------*/
.badge-role {
    display: inline-block;
    width: 110px; /* change as needed */
    text-align: center;
	color: black !important;
}

tr.overridden td {
    background-color: #fff3cd; /* light yellow */
}

/* -----------------------------------------
  TABLES
------------------------------------------*/
.table td {
    vertical-align: middle;
}

/* Table narrow and centered */
.narrow-table {
    max-width: 900px;
    margin: 0 auto;
}


/* Renovation Estimate – table column sizing */

#masterTable .unit-cost-col,
#masterTable .total-col {
    width: 140px;
    white-space: nowrap;
}

#masterTable .unit-cost-col .form-control {
    max-width: 120px;
    padding: 0.25rem 0.4rem;
    font-size: 0.9rem;
}

#masterTable .unit-col {
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
}


/* Ensure page/card titles stay white */
.card-title,
.page-title,
h1, h2, h3 {
    color: #fff;
}
