/* Insert Your Custom CSS Here */
.leiframe{position:relative;float:right; margin-right:0px; margin-top:0px;width:120px; height:120px;border: 2px solid #1fae66;overflow:hidden; background:#fff; padding:5px}
.custuploadblock_js {background:url(../img/browse.png) no-repeat center;width:50px;height:50px;display:block;position:relative;overflow:hidden;cursor:pointer; float:right; margin:20px 10px 0 20px}
.transfileform_js {font-size:50px;height:50px;position:absolute;top:0;right:0;z-index:2;border:0;padding:0;cursor:pointer;}


#modalDiv{
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
background:#000;
z-index:10;opacity:0.5
}

#alertDiv {
position:fixed;
left:40%; top:40%;
width:300px;
min-height:100px;
border-radius:0px;
background:#FFF;
color: #000;
border: 1px solid rgba(33, 33, 33, 0.6);
z-index:11;

}
#alertDiv .title {
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size:20px;
background:#0085b2;
padding: 8px 25px;
color:#fff;
text-align:center;
}
#alertDiv .message {
background:none;
font-size:12px;
line-height:1.4;
padding: 15px;
}
#alertDiv .okBtn {
display: block;
position: relative;
font-size: 11px;
text-align: center;
text-decoration: none;
position:relative; float:left; margin:5px 0 10px 100px; width: 50px; padding:5px; color: #333; border: 1px solid #0085b2;  background: #fff; border-radius:0px; font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.cleaner{ clear: both; width:100%; }
.cleaner_h5 { clear: both; width:100%; height: 5px; }
.cleaner_h10 { clear: both; width:100%; height: 10px; }

#mainp{
width:100%;height:100%; min-height:500px; opacity:1;
/*background:#f0f0f0 url(../img/watermarks/watermark.png) no-repeat right;*/
}
#footer{
position:fixed;bottom:0;width:100%;left:0;right:0;opacity:1;z-index:1000;
}
/* Main two columns */
.units-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

/* Grid inside each column (2 items per row) */
.units-column .list-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}

/* Smaller cards */
.list-wrapper li {
font-size: 13px;
padding: 6px;
}

.list-wrapper h3 {
font-size: 14px;
}

.list-wrapper h5 {
font-size: 12px;
}

/* Mobile fallback */
@media (max-width: 768px) {
.units-columns {
grid-template-columns: 1fr;
}

.units-column .list-wrapper {
grid-template-columns: 1fr;
}
}

.demo-container {
max-width: 800px;
width: 100%;
background: white;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
padding: 30px;
}

.demo-header {
text-align: center;
margin-bottom: 30px;
border-bottom: 1px solid #eaeaea;
padding-bottom: 20px;
}

.demo-header h1 {
color: #2c3e50;
margin-bottom: 10px;
font-weight: 700;
}

.demo-header p {
color: #7f8c8d;
max-width: 600px;
margin: 0 auto;
line-height: 1.6;
}

.demo-buttons {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}

.open-mymodal-btn {
background-color: #3498db;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
}

.open-mymodal-btn:hover {
background-color: #2980b9;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* mymodal Styles */
.mymodal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
padding: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}

.mymodal-overlay.active {
display: flex;
opacity: 1;
}
.mymossdal {
display: none; /* hidden by default */
position: fixed;

width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
}
.mymodal {
display: none;
position: fixed;
background: white;
border-radius: 16px;
width: 100%;
max-width: 1200px;
max-height: 90vh;
overflow-y: auto;
z-index: 9999;
left: 0;
top: 0;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
animation: mymodalSlideIn 0.3s ease;
}
.mymodal-content {
background: #fff;
margin: 5% auto;
padding: 20px;
width: 90%;
max-width: 1200px;
border-radius: 8px;
}
@keyframes mymodalSlideIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.mymodal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 30px;
border-bottom: 1px solid #eaeaea;
background-color: #f8fafc;
border-radius: 16px 16px 0 0;
}

.mymodal-header h3 {
color: #2c3e50;
font-size: 22px;
font-weight: 700;
}

.mymodal-header h3 span {
color: #3498db;
}

.close-mymodal {
font-size: 28px;
color: #95a5a6;
cursor: pointer;
background: none;
border: none;
transition: color 0.2s ease;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}

.close-mymodal:hover {
color: #e74c3c;
background-color: #f9f9f9;
}


.mymodal-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
}

@media (max-width: 768px) {
.mymodal-grid {
grid-template-columns: 1fr;
}
}

.mymodal-section {
margin-bottom: 24px;
}

.mymodal-section h4 {
color: #2c3e50;
margin-bottom: 16px;
font-size: 18px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}

.mymodal-section h4 i {
color: #3498db;
}

.form-group {
margin-bottom: 18px;
}

.form-group label {
display: block;
margin-bottom: 6px;
color: #4a5568;
font-weight: 500;
font-size: 14px;
}

.form-control {
width: 100%;
padding: 12px 16px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 15px;
transition: all 0.2s ease;
background-color: #fff;
}

.form-control:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control.readonly {
background-color: #f8fafc;
color: #718096;
}

.date-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

.guests-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

.price-summary {
background-color: #f8fafc;
border-radius: 12px;
padding: 20px;
margin-top: 10px;
}

.price-row {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #e2e8f0;
}

.price-row:last-child {
border-bottom: none;
}

.price-row.deposit {
color: #27ae60;
font-weight: 600;
}

.price-row.balance {
color: #e67e22;
font-weight: 600;
}

.payment-methods {
margin-top: 10px;
}
.payment-method-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
margin-bottom: 25px;
}
.payment-cards {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

.payment-card {
flex: 1;
text-align: center;
padding: 12px;
border: 2px solid #e2e8f0;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}

.payment-card.active {
border-color: #3498db;
background-color: rgba(52, 152, 219, 0.05);
}

.payment-card i {
font-size: 24px;
color: #7f8c8d;
}

.payment-card.active i {
color: #3498db;
}

.payment-details {
margin-top: 20px;
}

.payment-fields {
display: none;
}

.payment-fields.active {
display: block;
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.guest-details-container {
max-height: 400px;
overflow-y: auto;
padding-right: 10px;
}

.guest-fieldset {
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 18px;
margin-bottom: 20px;
background-color: #fff;
}

.guest-fieldset legend {
color: #2c3e50;
font-weight: 600;
padding: 0 10px;
font-size: 16px;
}

.mymodal-footer {
display: flex;
justify-content: flex-end;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eaeaea;
}

.submit-btn {
background-color: #27ae60;
color: white;
border: none;
padding: 14px 32px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-size: 16px;
display: flex;
align-items: center;
gap: 10px;
}

.submit-btn:hover {
background-color: #219955;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* Responsive adjustments */
@media (max-width: 576px) {
.demo-container {
padding: 20px;
}

.mymodal-content {
padding: 20px;
}

.mymodal-header {
padding: 20px;
}

.payment-cards {
flex-direction: column;
}

.date-group, .guests-group {
grid-template-columns: 1fr;
}
}

#guestDetails {
margin-top: 20px;
}

.guest {
border: 1px solid #ddd;
padding: 15px;
margin-bottom: 15px;
border-radius: 8px;
background-color: #fafafa;
}

.guest h5 {
margin-bottom: 10px;
font-size: 16px;
color: #333;
}

.guest input,
.guest select {
width: 100%;
padding: 8px 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 14px;
}

.guest input:focus,
.guest select:focus {
border-color: #007bff;
outline: none;
}

/* Adult styling */
.guest[data-type="adult"] {
background-color: #fdfefe;
}

/* Child styling */
.guest[data-type="child"] {
background-color: #f3f8ff;
}

/* Mobile input slightly highlighted */
.mobile {
border-left: 4px solid #28a745;
}
.guest {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 10px;
}

.guest h5 {
grid-column: 1 / -1;
}


.cmodal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
overflow: hidden;
}

.cmodal-content {
background: white;
border-radius: 12px;
width: 100%;
max-width: 900px;
max-height: 90vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
animation: modalSlideIn 0.3s ease;
overflow: hidden; /* Changed from hidden to auto */
}

@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.modal-header {
padding: 24px 24px 16px;
border-bottom: 1px solid #e9ecef;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0; /* Prevent header from shrinking */
background: white;
position: relative;
z-index: 2;
}

.modal-title {
margin: 0;
color: #2d3436;
font-size: 1.5rem;
font-weight: 600;
}

.room-number {
color: #6c5ce7;
font-weight: 700;
}

.close-btn {
background: none;
border: none;
font-size: 28px;
color: #636e72;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: all 0.2s;
flex-shrink: 0;
}

.close-btn:hover {
background: #f8f9fa;
color: #2d3436;
}

/* Scrollable body container */
.modal-body-scrollable {
padding: 24px;
overflow-y: auto;
overflow-x: hidden;
flex: 1;
max-height: calc(90vh - 140px); /* Account for header and footer height */
scrollbar-width: thin;
scrollbar-color: #c1c1c1 transparent;
}

.modal-body-scrollable::-webkit-scrollbar {
width: 6px;
}

.modal-body-scrollable::-webkit-scrollbar-track {
background: transparent;
}

.modal-body-scrollable::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius: 20px;
}

.modal-body-scrollable::-webkit-scrollbar-thumb:hover {
background-color: #a1a1a1;
}

.info-section {
margin-bottom: 32px;
}

.info-section:last-child {
margin-bottom: 0;
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}

.section-title {
margin: 0;
color: #2d3436;
font-size: 2rem;
font-weight: 600;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.form-group {
margin-bottom: 20px;
}

.form-label {
display: block;
margin-bottom: 8px;
color: #495057;
font-weight: 500;
font-size: 0.875rem;
}

.form-label.required::after {
content: " *";
color: #e74c3c;
}

.form-control {
width: 100%;
padding: 10px 14px;
border: 1px solid #e0e0e0;
border-radius: 8px;
font-size: 0.9375rem;
transition: all 0.2s;
background: white;
}

.form-control:focus {
outline: none;
border-color: #6c5ce7;
box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-control-readonly {
background-color: #f8f9fa;
color: #495057;
cursor: not-allowed;
border-color: #e9ecef;
}

.select-control {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23646e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 40px;
}

.textarea-control {
resize: vertical;
min-height: 80px;
}

.amount-display {
position: relative;
display: flex;
align-items: center;
}

.amount-display .currency {
position: absolute;
left: 14px;
color: #636e72;
font-weight: 500;
z-index: 1;
}

.amount-display .form-control {
padding-left: 50px;
font-weight: 600;
font-size:2rem!important;
}

.amount-display.highlight.form-control {
background-color: #000000;
border-color: #000000;
color: #000000;
font-weight: 600;
}

.btn-icon {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background-color: #1fae66;
color: white;
border: none;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
flex-shrink: 0;
}

.btn-icon:hover {
background-color: #1fae66;
transform: translateY(-1px);
}

.btn-icon:active {
transform: translateY(0);
}

.table-container {
border: 1px solid #e9ecef;
border-radius: 8px;
overflow: hidden;
overflow-x: auto;
}

.data-table {
width: 100%;
border-collapse: collapse;
min-width: 500px; /* Ensure table doesn't get too narrow */
}

.data-table thead {
background-color: #f8f9fa;
position: sticky;
top: 0;
z-index: 1;
}

.data-table th {
padding: 14px 16px;
text-align: left;
color: #495057;
font-weight: 600;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 0.5px;
border-bottom: 1px solid #e9ecef;
white-space: nowrap;
}

.data-table td {
padding: 14px 16px;
border-bottom: 1px solid #e9ecef;
vertical-align: middle;
}

.data-table tbody tr:last-child td {
border-bottom: none;
}

.data-table tbody tr:hover {
background-color: #f8f9fa;
}

.text-center {
text-align: center;
}

.summary-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
}

.summary-item {
display: flex;
flex-direction: column;
gap: 4px;
}

.summary-label {
font-size: 1rem;
color: #636e72;
font-weight: 500;
}

.input-with-prefix {
position: relative;
display: flex;
}

.input-prefix {
position: absolute;
left: 14px;
top: 50%;
transform: translateY(-50%);
color: #636e72;
font-weight: 500;
}

.input-with-prefix .form-control {
padding-left: 55px;
}

.input-hint {
display: block;
margin-top: 4px;
color: #868e96;
font-size: 0.75rem;
}

.modal-footer {
padding: 20px 24px;
border-top: 1px solid #e9ecef;
display: flex;
justify-content: flex-end;
gap: 12px;
background: #f8f9fa;
border-radius: 0 0 12px 12px;
flex-shrink: 0; /* Prevent footer from shrinking */
position: relative;
z-index: 2;
}

.btn {
padding: 10px 24px;
border: none;
border-radius: 8px;
font-size: 0.9375rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}

.btn-secondary {
background-color: #e9ecef;
color: #495057;
}

.btn-secondary:hover {
background-color: #dee2e6;
}

.btn-primary {
background-color:#1fae66;
color: white;
}

.btn-primary:hover {
background-color: #1fae66;
box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
.cmodal {
padding: 10px;
}

.cmodal-content {
max-height: 95vh;
max-width: 95vw;
}

.modal-body-scrollable {
padding: 16px;
max-height: calc(95vh - 140px);
}

.form-row,
.summary-grid {
grid-template-columns: 1fr;
gap: 16px;
}

.modal-header {
padding: 16px 16px 12px;
}

.modal-footer {
padding: 16px;
}

.table-container {
margin-left: -16px;
margin-right: -16px;
border-radius: 0;
border-left: none;
border-right: none;
}

.data-table {
min-width: 100%;
}
}

/* Extra small devices */
@media (max-width: 480px) {
.section-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}

.btn-icon {
width: 100%;
justify-content: center;
}

.modal-title {
font-size: 1.25rem;
}

.btn {
padding: 10px 16px;
font-size: 0.875rem;
}
}

/* For very tall tables within the modal */
.table-container {
max-height: 300px;
overflow-y: auto;
}

.table-container::-webkit-scrollbar {
width: 4px;
height: 4px;
}

.table-container::-webkit-scrollbar-thumb {
background-color: #b0b0b0;
border-radius: 2px;
}

/*replaced by mike */
:root {
--primary-color: #2563eb;
--primary-light: #3b82f6;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--gray-50: #f9fafb;
--gray-100: #f3f4f6;
--gray-200: #e5e7eb;
--gray-300: #d1d5db;
--gray-700: #374151;
--gray-900: #111827;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
}

.stat-card {
background: white;
padding: 20px;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-sm);
border-left: 4px solid var(--primary-color);
}

.stat-card.occupied {
border-left-color: var(--danger-color);
}

.stat-card.vacant {
border-left-color: var(--success-color);
}

.stat-value {
font-size: 32px;
font-weight: 700;
margin-bottom: 8px;
}

.stat-label {
color: var(--gray-700);
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.05em;
}

/* Rooms Layout */
.rooms-container {
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
overflow: hidden;
}

.rooms-header {
padding: 24px;
border-bottom: 1px solid var(--gray-200);
}

.rooms-title {
font-size: 20px;
font-weight: 600;
color: var(--gray-900);
}

.rooms-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
padding: 24px;
}

@media (max-width: 768px) {
.rooms-grid {
grid-template-columns: 1fr;
}
}

.room-column {
display: flex;
flex-direction: column;
}

.column-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 2px solid var(--gray-200);
}

.column-title {
font-size: 18px;
font-weight: 600;
color: var(--gray-900);
display: flex;
align-items: center;
gap: 8px;
}

.room-count {
background: var(--gray-100);
color: var(--gray-700);
padding: 2px 10px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
}

.rooms-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}

.room-card {
background: var(--gray-50);
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
padding: 20px;
cursor: pointer;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}

.room-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
border-color: var(--primary-light);
}

.room-card.occupied {
border-left: 4px solid var(--danger-color);
}

.room-card.vacant {
border-left: 4px solid var(--success-color);
}

.room-number {
font-size: 24px;
font-weight: 700;
color: var(--gray-900);
margin-bottom: 8px;
}

.room-info {
color: var(--gray-700);
font-size: 14px;
margin-bottom: 8px;
}

.room-details {
display: flex;
flex-direction: column;
gap: 4px;
}

.room-detail {
display: flex;
justify-content: space-between;
}

.detail-label {
color: var(--gray-600);
}

.detail-value {
font-weight: 500;
color: var(--gray-900);
}

.tenant-name {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--gray-200);
font-weight: 500;
color: var(--primary-color);
}

.status-badge {
position: absolute;
top: 12px;
right: 12px;
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
text-transform: uppercase;
}

.status-occupied {
background: #fee2e2;
color: var(--danger-color);
}

.status-vacant {
background: #d1fae5;
color: var(--success-color);
}

/* Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
}

.modal-content {
background: white;
border-radius: var(--radius-lg);
width: 100%;
max-width: 600px;
max-height: 90vh;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-lg);
}

.modal-header {
padding: 24px;
border-bottom: 1px solid var(--gray-200);
display: flex;
align-items: center;
justify-content: space-between;
}

.modal-title {
font-size: 20px;
font-weight: 600;
color: var(--gray-900);
}

.close-btn {
background: none;
border: none;
font-size: 24px;
color: var(--gray-500);
cursor: pointer;
padding: 4px;
line-height: 1;
}

.close-btn:hover {
color: var(--gray-700);
}

.modal-body {
padding: 24px;
overflow-y: auto;
flex: 1;
}

.modal-footer {
padding: 24px;
border-top: 1px solid var(--gray-200);
display: flex;
justify-content: flex-end;
gap: 12px;
}

/* Form Styles */
.form-group {
margin-bottom: 20px;
}

.form-label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--gray-700);
}

.form-label.required::after {
content: " *";
color: var(--danger-color);
}

.form-control {
width: 100%;
padding: 10px 14px;
border: 1px solid var(--gray-300);
border-radius: var(--radius-md);
font-size: 14px;
transition: border-color 0.2s ease;
}

.form-control:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-readonly {
background-color: var(--gray-100);
border-color: var(--gray-200);
cursor: not-allowed;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

@media (max-width: 640px) {
.form-row {
grid-template-columns: 1fr;
}
}

/* Button Styles */
.btn {
padding: 10px 20px;
border-radius: var(--radius-md);
font-size: 14px;
font-weight: 500;
cursor: pointer;
border: none;
transition: all 0.2s ease;
}

.btn-primary {
background: var(--primary-color);
color: white;
}

.btn-primary:hover {
background: var(--primary-light);
}

.btn-secondary {
background: var(--gray-200);
color: var(--gray-700);
}

.btn-secondary:hover {
background: var(--gray-300);
}

.btn-danger {
background: var(--danger-color);
color: white;
}

.btn-danger:hover {
background: #dc2626;
}

/* Table Styles */
.table-container {
overflow-x: auto;
margin: 20px 0;
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
}

.data-table {
width: 100%;
border-collapse: collapse;
}

.data-table th {
background: var(--gray-50);
padding: 12px 16px;
text-align: left;
font-weight: 500;
color: var(--gray-700);
border-bottom: 1px solid var(--gray-200);
}

.data-table td {
padding: 12px 16px;
border-bottom: 1px solid var(--gray-200);
}

.data-table tr:last-child td {
border-bottom: none;
}

.data-table tr:hover {
background: var(--gray-50);
}

/* Summary Cards */
.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin: 20px 0;
}

.summary-item {
background: var(--gray-50);
border: 1px solid var(--gray-200);
border-radius: var(--radius-md);
padding: 16px;
}

.summary-label {
display: block;
color: var(--gray-600);
font-size: 14px;
margin-bottom: 8px;
}

.summary-value {
font-size: 20px;
font-weight: 600;
color: var(--gray-900);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* Empty State */
.empty-state {
text-align: center;
padding: 48px 24px;
color: var(--gray-500);
}

.empty-icon {
font-size: 48px;
margin-bottom: 16px;
opacity: 0.5;
}

.empty-text {
font-size: 16px;
}



:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #1abc9c;
--light-color: #f8f9fa;
--border-color: #e0e0e0;
--danger-color: #e74c3c;
--success-color: #27ae60;
}



/* Compact Header */
.compact-header {
background: white;
padding: 15px 20px;
border-radius: 6px;
margin-bottom: 15px;
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
display: flex;
justify-content: space-between;
align-items: center;
}

.header-title {
font-size: 18px;
font-weight: 600;
color: var(--primary-color);
display: flex;
align-items: center;
gap: 10px;
}

/* Compact Card */
.compact-card {
background: white;
border-radius: 6px;
box-shadow: 0 2px 5px rgba(0,0,0,0.08);
padding: 20px;
margin-bottom: 15px;
}

.card-title {
font-size: 16px;
font-weight: 600;
color: var(--primary-color);
margin: 0 0 15px 0;
padding-bottom: 10px;
border-bottom: 2px solid #f0f0f0;
display: flex;
align-items: center;
gap: 8px;
}

/* Compact Grid */
.compact-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 20px;
}

.info-item {
margin-bottom: 10px;
}

.info-label {
font-size: 12px;
color: #666;
margin-bottom: 4px;
font-weight: 500;
}

.info-value {
font-size: 14px;
font-weight: 600;
color: var(--primary-color);
padding: 8px 12px;
background: #f8f9fa;
border-radius: 4px;
border-left: 3px solid var(--secondary-color);
}

/* Compact Tables */
.compact-table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
font-size: 13px;
}

.compact-table th {
background: #f1f5f9;
color: var(--primary-color);
font-weight: 600;
padding: 10px 8px;
text-align: left;
border-bottom: 2px solid var(--border-color);
font-size: 12px;
}

.compact-table td {
padding: 8px;
border-bottom: 1px solid #f0f0f0;
}

.compact-table tr:hover {
background-color: #f8fafc;
}

/* Compact Buttons */
.action-bar {
display: flex;
gap: 8px;
margin-bottom: 15px;
flex-wrap: wrap;
}

.btn-sm {
padding: 8px 15px;
font-size: 13px;
border-radius: 4px;
border: none;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
}

.btn-primary {
background: var(--secondary-color);
color: white;
}

.btn-primary:hover {
background: #2980b9;
transform: translateY(-1px);
}

.btn-outline {
background: white;
color: var(--secondary-color);
border: 1px solid var(--secondary-color);
}

.btn-outline:hover {
background: #f8fafc;
}

/* Compact Summary */
.compact-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 15px;
background: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin-top: 15px;
border-left: 4px solid var(--accent-color);
}

.summary-item {
text-align: center;
padding: 10px;
}

.summary-label {
font-size: 12px;
color: #666;
margin-bottom: 5px;
}

.summary-value {
font-size: 18px;
font-weight: 700;
}

.balance {
color: var(--danger-color);
}

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

/* Compact Modal */
.bmodal {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 1000;
align-items: center;
justify-content: center;
padding: 20px;
}

.bmodal-content {
background: white;
border-radius: 8px;
width: 100%;
max-width: 700px;
max-height: 85vh;
overflow: hidden;
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bmodal-header {
background: var(--primary-color);
color: white;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

.bmodal-title {
font-size: 16px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}

.close-btn {
background: none;
border: none;
color: white;
font-size: 20px;
cursor: pointer;
padding: 0;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

/* Compact Tabs */
.tab-nav {
display: flex;
background: #f8f9fa;
border-bottom: 1px solid #ddd;
}

.tab-btn {
flex: 1;
padding: 12px 15px;
background: none;
border: none;
border-bottom: 3px solid transparent;
font-size: 13px;
font-weight: 600;
color: #666;
cursor: pointer;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
}

.tab-btn.active {
color: var(--secondary-color);
border-bottom-color: var(--secondary-color);
background: white;
}

.tab-pane {
padding: 20px;
display: none;
}

.tab-pane.active {
display: block;
}

/* Compact Forms */
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin-bottom: 15px;
}

.form-group {
margin-bottom: 10px;
}

.form-label {
display: block;
margin-bottom: 5px;
font-size: 12px;
font-weight: 600;
color: var(--primary-color);
}

.form-control {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 13px;
box-sizing: border-box;
}

.form-control:focus {
outline: none;
border-color: var(--secondary-color);
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
padding-top: 15px;
border-top: 1px solid #eee;
margin-top: 15px;
}

/* Status Badges */
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
}

.badge-success {
background: rgba(39, 174, 96, 0.1);
color: var(--success-color);
}

/* Responsive */
@media (max-width: 768px) {
body {
padding: 10px;
}

.compact-header {
flex-direction: column;
gap: 10px;
align-items: flex-start;
}

.action-bar {
width: 100%;
}

.compact-grid,
.compact-summary {
grid-template-columns: 1fr;
}

.form-grid {
grid-template-columns: 1fr;
}

.modal-content {
max-height: 90vh;
}
}

/* Scrollable table for mobile */
.table-container {
overflow-x: auto;
margin: 10px 0;
}

/* Utility */
.text-right {
text-align: right;
}

.text-center {
text-align: center;
}

.mt-10 {
margin-top: 10px;
}

.mb-10 {
margin-bottom: 10px;
}

.w-100 {
width: 100%;
}