/* 
    CVGM Application - Common/Global Stylesheet
    Consolidated base styles, layout, and utility classes
    Imports: variables.css
    Last Updated: 2025-03-29
*/

@import url('variables.css');

/* Admin UI components are linked after this file in page headers
   (css/admin-ui.css) so they can override base rules below. */

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
body.table,
body.td {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-white);
}

table,
td {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    padding-top: 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ============================================================================
   LAYOUT - FIXED PANELS (Consolidated from core.css & layout.css)
   ============================================================================ */

/* Base fixed panel */
.fixed-panel {
    min-height: var(--panel-height-large);
    max-height: var(--panel-height-large);
    width: 100%;
    overflow-y: scroll;
}

.fixed-panel-small {
    min-height: var(--panel-height-default);
    max-height: var(--panel-height-default);
    overflow-y: scroll;
}

.fixed-panel-med {
    min-height: 300px;
    max-height: 300px;
    overflow-y: scroll;
}

.fixed-panel-short {
    min-height: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.fixed-panel-very-short {
    min-height: var(--panel-height-small);
    max-height: var(--panel-height-small);
    overflow-y: scroll;
}

.fixed-panel-500 {
    min-height: 500px;
    max-height: 500px;
    width: 100%;
    overflow-y: scroll;
}

.fixed-panel-600 {
    min-height: var(--panel-height-large);
    max-height: var(--panel-height-large);
    width: 100%;
    overflow-y: scroll;
}

.fixed-panel-700 {
    min-height: var(--panel-height-xlarge);
    max-height: var(--panel-height-xlarge);
    width: 100%;
    overflow-y: scroll;
}

.fixed-panel-checkbox {
    min-height: var(--panel-height-default);
    max-height: var(--panel-height-default);
    width: 600px;
    overflow-y: scroll;
}

.fixed-panel-map-worker {
    min-height: var(--panel-height-default);
    max-height: var(--panel-height-default);
    min-width: 265px;
    max-width: 265px;
    overflow-y: scroll;
    overflow-x: hidden;
    border: 1px solid var(--border-gray);
}

.fixed-panel-home {
    min-height: var(--panel-height-med);
    max-height: var(--panel-height-med);
    min-width: 270px;
    max-width: 350px;
    overflow-y: scroll;
}

.fixed-panel-home-big {
    min-height: 540px;
    max-height: 540px;
    min-width: 300px;
    max-width: 300px;
    overflow-y: scroll;
}

.fixed-panel-narrow {
    min-height: var(--panel-height-default);
    max-height: var(--panel-height-default);
    min-width: 300px;
    max-width: 300px;
    overflow-y: scroll;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Visibility */
.hide_me {
    display: none;
}

/* Color utilities */
.border-rounded {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-primary);
    min-height: 100px;
}

.comments.approval_state_change {
    border: 1px solid var(--border-orange);
}

.paid {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.notpaid {
    background-color: var(--unpaid-bg);
}

.activeMenuItem {
    border-bottom: 1px solid var(--text-primary);
}

/* Text color utilities */
.text-green {
    color: var(--text-green) !important;
    font-weight: bold;
}

.text-red {
    color: var(--text-red) !important;
    font-weight: bold;
}

.vendorWillAttend {
    color: var(--text-green);
    font-weight: bold;
    text-decoration: underline;
}

/* Styling utilities */
.delete_me {
    background-color: var(--danger-color) !important;
}

.required {
    background-color: #FFF8C6;
}

.external_booth {
    background-color: var(--danger-color);
    border: 4px outset var(--border-orange);
}

.multi_vendor {
    border: 2px solid var(--border-orange) !important;
}

.setopacity {
    opacity: 0.7;
    filter: alpha(opacity=80);
}

.did_pay_seasonal {
    border: 2px dashed var(--border-navy);
}

/* ============================================================================
   LAYOUT COMPONENTS
   ============================================================================ */

/* Comment styling */
.comment-date {
    position: absolute;
    right: 25px;
    top: 25px;
}

/* Text item pairs */
.text_item_text {
    padding: var(--spacing-lg);
    width: 200px;
    float: left;
    font-weight: normal;
    border-bottom: 1px solid silver;
}

.text_item_val {
    padding: var(--spacing-lg);
    border-bottom: 1px solid silver;
}

/* List styling */
.left_list {
    width: 400px;
    height: var(--panel-height-large);
    overflow: auto;
    border: 1px solid var(--border-navy);
    float: left;
    margin-right: var(--spacing-lg);
    padding: 0px;
}

.right_pane {
    width: 600px;
    height: var(--panel-height-large);
    border: 1px solid var(--border-orange);
    float: left;
    padding: 0px;
}

.pic_pane {
    position: absolute;
    top: 100px;
    left: 1050px;
    padding: 0px;
}

/* Booth/Vendor related */
.toolboxitem {
    padding: var(--spacing-sm);
    border: 1px solid #552211;
    margin: 1px;
    background-color: var(--bg-white);
}

.toolselected {
    background-color: #ddffff;
}

.dropzones {
    background-color: #f1f1f2;
}

.droppeditem {
    z-index: 1;
}

.relDiv {
    position: relative;
}

.centerBoothNumber {
    position: absolute;
    left: 3px;
    top: 4px;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
    z-index: 2;
    font-family: var(--font-family-base);
    font-size: 7pt;
}

.booth_number_set {
    height: 200px;
    width: 280px;
    border: 1px solid var(--text-dark);
    position: relative;
}

.boothfinderhighlight {
    background-color: yellow !important;
    width: 40px;
    height: 40px;
}

.delete_booth {
    height: 150px;
    width: 90%;
    background-color: silver;
}

/* Vendor/Assignment */
.assignvendorlist {
    height: 500px;
    width: 290px;
}

.assignvendortable {
    width: 290px;
    font-family: var(--font-family-base);
    font-size: 9pt;
}

/* Forms & Inputs */
.create_vendor {
    text-align: left;
    border: 1px solid #0000ff;
    padding: var(--spacing-lg);
    width: 750px;
    font-family: var(--font-family-base);
    font-size: 9pt;
}

.submit {
    color: #3C0470;
    border: 1px solid #3C0470;
    font-weight: bold;
    padding: 1px;
    margin: 2px;
}

.captcha {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    border: 1px ridge var(--border-navy);
    height: 150px;
    width: 400px;
}

.captcha_msg {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-lg) 0px;
}

/* Horizontal Rule styling */
.hr_tall {
    color: #0000ff;
    background-color: silver;
    height: 2px;
}

/* Map/Layout Related */
.chooseMap {
    height: 50px;
    width: 100%;
    border: 1px solid var(--danger-color);
}

.chooseMapTitle {
    height: 25px;
    width: 100%;
}

/* ============================================================================
   ALERTS & NOTIFICATIONS
   ============================================================================ */

.alert {
    padding: 2px;
}

/* ============================================================================
   RESPONSIVE DESIGN HINTS
   ============================================================================ */

#t_vehicle td {
    text-align: center;
}

/* ============================================================================
   LIST SELECTION — visual highlight lives in css/admin-ui.css
   Canonical class: .theClickedOne
   ============================================================================ */
