/* RESET */
body {
margin: 0;
font-family: "Open Sans", Arial, sans-serif;
background: #f5f5f5;
overflow: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 15px;
}

.version {
font-size: 12px;
color: #888;
}

.right-actions {
display: flex;
align-items: center;
}

/* ===== MAIN LAYOUT ===== */
.row {
display: flex;
height: calc(100vh - 40px);
}

/* ===== SIDEBAR ===== */
.col-2 {
width: 280px;
min-width: 280px;
max-width: 280px;
padding: 10px;
box-sizing: border-box;
}

.col-10 {
flex: 1;
padding: 10px 15px;
box-sizing: border-box;
overflow: hidden;
}

/* ===== CARD FIX ===== */
.ui.segment {
border-radius: 6px !important;
box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* ===== STATUS ===== */
.progress {
height: 6px;
background: #ddd;
}

.progress-bar {
height: 6px;
background: #4caf50;
}

/* ===== FORM ===== */
label {
font-size: 12px;
font-weight: 600;
display: block;
margin-bottom: 3px;
}

/* 🔥 IMPORTANT FIX */
textarea,
input {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
}

/* TEXTAREA */
textarea {
height: 80px;
border: 1px solid #ccc;
border-radius: 4px;
padding: 6px;
resize: none;
font-size: 13px;
}

/* INPUT */
input {
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
}

/* ===== BUTTONS ===== */
.ui.button {
font-size: 12px !important;
}

.ui.button.green {
background: #4caf50 !important;
color: #fff !important;
}

/* ===== RESULT BAR ===== */
.my-segment {
display: flex;
justify-content: space-between;
align-items: center;
}

/* ===== SEARCH ===== */
#searchBox {
width: 220px;
padding: 6px;
border: 1px solid #ccc;
border-radius: 4px;
}

/* ===== GRID (MOST IMPORTANT) ===== */
#gridContainer {
margin-top: 10px;
height: calc(100vh - 180px);
background: #fff;
border: 1px solid #ddd;
}

/* ===== DEVEXTREME FIX ===== */
.dx-datagrid {
font-size: 12px !important;
}

.dx-header-row .dx-datagrid-text-content {
font-weight: 600;
}

/* FILTER ICON FIX */
.dx-header-filter {
color: #888 !important;
}

/* REMOVE WEIRD BOX */
.dx-datagrid .dx-header-filter::before {
content: "\f0b0"; /* filter icon */
font-family: FontAwesome;
}

/* ===== LICENSE MODAL ===== */
#licenseModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.3);
display: none;
justify-content: center;
align-items: center;
}

#licenseModal > div {
background: #fff;
padding: 25px;
width: 420px;
text-align: center;
border-radius: 8px;
}

/* ===== SMALL FIXES ===== */
.ui.form textarea {
margin-bottom: 10px;
}

.ui.form input {
margin-bottom: 10px;
}
