/* Eastmark Quotations - main styles */
:root {
    --eastmark-dark: #001028;
    --eastmark-mid: #5D6975;
    --eastmark-border: #C1CED9;
    --eastmark-bg: #F5F5F5;
    --eastmark-red: #B20000;
    --eastmark-green: #4CAF50;
}

* { box-sizing: border-box; }
body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: var(--eastmark-dark);
    background: #fff;
    margin: 0;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1 { font-size: 1.5rem; color: var(--eastmark-mid); margin-bottom: 1rem; }
a { color: #004A7F; text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}
.btn-primary { background: #004A7F; color: #fff; }
.btn-primary:hover { background: #003a60; color: #fff; }
.btn-success { background: var(--eastmark-green); color: #fff; }
.btn-danger { background: var(--eastmark-red); color: #fff; }
.btn-secondary { background: var(--eastmark-mid); color: #fff; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
table.data-table th,
table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--eastmark-border); }
table.data-table th { background: var(--eastmark-dark); color: #fff; }
table.data-table tr:nth-child(even) { background: var(--eastmark-bg); }
table.data-table .num { text-align: right; }
table.data-table .actions { 
    white-space: nowrap; 
    text-align: right !important;
    width: 200px;
}
.btn-icon {
    display: inline-block;
    padding: 6px 8px;
    margin: 0 3px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
.btn-icon i {
    display: inline-block;
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 4px; color: var(--eastmark-mid); font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select,
.customer-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--eastmark-border);
    border-radius: 4px;
    font-size: 14px;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.items-table { width: 100%; border-collapse: collapse; }
.items-table th { background: var(--eastmark-mid); color: #fff; padding: 8px; font-size: 12px; }
.items-table td { padding: 6px 8px; border: 1px solid var(--eastmark-border); }
.items-table input { width: 100%; padding: 4px 6px; border: 1px solid #ddd; }
.items-table { table-layout: auto; width: 100%; }
.items-table th.col-desc { width: auto; min-width: 400px; }
.items-table td.col-desc { width: auto; min-width: 400px; }
.items-table th.col-qty,
.items-table td.col-qty { width: 100px !important; min-width: 100px; white-space: nowrap; }
.items-table th.col-unit,
.items-table td.col-unit { width: 110px !important; min-width: 110px; white-space: nowrap; }
.items-table th.col-price,
.items-table td.col-price { width: 110px !important; min-width: 110px; white-space: nowrap; }
.items-table th.col-total,
.items-table td.col-total { width: 110px !important; min-width: 110px; text-align: right; white-space: nowrap; }
.items-table th.col-actions,
.items-table td.col-actions { width: 50px !important; white-space: nowrap; }
.items-table .item-desc { width: 100% !important; box-sizing: border-box; display: block; }
.items-table .item-tech { width: 100% !important; box-sizing: border-box; font-size: 12px; color: #666; min-height: 60px; resize: vertical; display: block; }

.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.notice { color: var(--eastmark-mid); font-size: 13px; margin-top: 1rem; }

@media print {
    .no-print { display: none !important; }
}
