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

body {
    background: #d4d4d4;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: #c8c8c8;
    border: 1px solid #999;
    display: grid;
    grid-template-columns: 105px 80px 1fr 200px 1fr 200px 105px;
    height: 50px;
}

.header-section {
    border-right: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    padding: 5px;
}

.header-section:last-child {
    border-right: none;
}

.user-section {
    background: #a8d4a8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    grid-row: 1 / 4;
    height: 105px;
}

.right-square {
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / 4;
    height: 105px;
    font-size: 14px;
    font-weight: bold;
}

.user-logged {
    font-size: 11px;
    text-align: center;
    line-height: 1.1;
}

.user-icon {
    font-size: 16px;
    margin-top: 2px;
}

.time-section {
    background: #e8e8e8;
}

.red-time {
    color: #ff0000;
    font-weight: bold;
}

.username-section {
    background: #e8e8e8;
}

.date-section {
    background: #e8e8e8;
}

.empty-section {
    background: #f0f0f0;
}

.sub-header {
    background: #d0d0d0;
    border: 1px solid #999;
    border-top: none;
    display: grid;
    grid-template-columns: 105px 80px 100px 120px 60px 80px 105px;
    height: 30px;
    position: relative;
}

.sub-header-section:first-child,
.sub-header-section:last-child {
    background: transparent;
}

.sub-header-section {
    border-right: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.sub-header-section:last-child {
    border-right: none;
}

.empty-sub {
    background: #f0f0f0;
}

.small-section {
    background: #e8e8e8;
}

.pos-section {
    background: #e8e8e8;
}

.dt-section {
    background: #e8e8e8;
}

.number-section {
    background: #e8e8e8;
}

.forced-section {
    background: #e8e8e8;
}

.notification-bar {
    background: #ffff00;
    border: 1px solid #999;
    border-top: none;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin: 0 105px;
    position: relative;
}

.main-container {
    display: flex;
    height: 100vh;
    padding: 10px;
    gap: 15px;
}

.items-panel {
    flex: 1;
    background: #f5f5f5;
    border: 2px solid #ccc;
    padding: 15px;
    overflow-y: auto;
}

.items-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 15%;
    height: 25px;
    margin-bottom: 10px;
    border: 1px solid #999;
}

.items-grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-right: 1px solid #999;
    color: #333;
}

.items-grid-cell:last-child {
    border-right: none;
}

.out-cell {
    background: #e8e8e8;
}

.side-cell {
    background: #f0f0f0;
}

.order-cell {
    background: #e8e8e8;
}

.blank-cell {
    background: #f8f8f8;
}

.items-list {
    height: calc(100% - 50px);
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
}

.grid-section {
    display: flex;
    flex-direction: column;
    aspect-ratio: 10/9;
    height: calc(100vh - 20px);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(9, minmax(60px, 1fr));
    gap: 3px;
    flex: 1;
    background: #bbb;
    padding: 10px;
    border: 3px solid #ff0000;
}

.header {
    background: #c8c8c8;
    border: 1px solid #999;
    display: grid;
    grid-template-columns: 105px 80px 1fr 200px 1fr 200px 105px;
    height: 50px;
    position: relative;
}

.user-section {
    background: #a8d4a8;
    border: 2px solid #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 105px;
    height: 105px;
    z-index: 10;
}

.right-square {
    background: #e8e8e8;
    border: 2px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    width: 105px;
    height: 105px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(9, 1fr);
    gap: 3px;
    flex: 1;
    background: #bbb;
    padding: 10px;
    border: 3px solid #ff0000;
}

.grid-item {
    background: transparent;
    border: 2px solid #ff0000;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.grid-item:hover {
    background: rgba(240, 240, 240, 0.7);
    border-color: #cc0000;
}

/* Product selector styles */
.product-card {
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card button:hover {
    background: #218838 !important;
}

/* Close button hover effect */
button:hover {
    opacity: 0.9;
}

/* Search input focus effect */
input[type="text"]:focus {
    outline: 2px solid #007bff;
    border-color: #007bff;
}
