* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f2f2f7;
    color: #1c1c1e;
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: calc(100vh - 0px);
    background: #000000;
    /*color: white;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    background:conic-gradient(from 45deg, #000000, #2c261b, #000000, #091e09, #002c2c, #000034, #2e1f2e);
}

@media (min-width: 481px) {
    .app-container {
        height: 850px;
        border-radius: 40px;
        border: 10px solid #333;
        /*background: black;
        color: white;*/
    }
}

.screen-view, .content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

h2, h3 {
    margin-bottom: 20px;
    text-align: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.menucard, .submenucard {
    background: #f8f8f8;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.menucard:active, .submenucard:active {
    transform: scale(0.95);
    background: #ecebf0;
}

.menucard .icon {
    font-size: 40px;
}

.submenucard {
    margin-bottom: 12px;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 15px;
    padding: 15px;
}

.back-btn {
    background: none;
    border: none;
    color: #007aff;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #3a3a3c;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #c7c7cc;
    border-radius: 8px;
    font-size: 16px;
}

.btn-primary, .btn-login {
    width: 100%;
    padding: 14px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.login-body {
    background: #ffffff;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 350px;
    padding: 20px;
}

.error-msg, .response-msg {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}
.error-msg { color: #ff3b30; }




.pos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}
.pos-search-section {
    position: relative;
}
.search-results-dropdown {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #c7c7cc;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: none;
}
.search-item-row {
    padding: 10px;
    border-bottom: 1px solid #f2f2f7;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.search-item-row:hover {
    background: #e5e5ea;
}
.pos-main-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
}
.cart-container, .checkout-panel, .container_panels_all {
    background: #f8f8f8;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 15px;
}
.container_panels_all{margin-bottom:5px;}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.cart-table th, .cart-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}
.cart-totals {
    margin-top: 10px;
    text-align: right;
    font-size: 16px;
}
.btn-danger {
    background: #ff3b30;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.overlay-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.overlay-content {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}
.overlay-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.btn-secondary {
    width: 100%;
    padding: 14px;
    background: #8e8e93;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}


/* --- Input and Select Element Styling --- */
input[type="text"],
input[type="number"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c7c7cc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
    color: #1c1c1e;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' 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;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

#itemSearchInput, #customerSearchInput {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #c7c7cc;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
}

.search-dropdown-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #c7c7cc;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: 4px;
}


/* Form Container & Group Reset */
.panel form .form-group,
.panel div[style*="margin-bottom"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px !important;
}

/* Professional Label Alignment */
.panel label, 
.panel form label {
    display: block !important;
    font-size: 13px;
    font-weight: 500;
    color: #bbb !important;
    margin-bottom: 6px !important;
    text-align: left;
    font-size: 15px;
    color: #000000 !important
}

/* Polished Input Fields */
.panel input[type="text"],
.panel input[type="number"],
.panel input[type="password"],
.panel select,
.panel textarea,
.form-control {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    background: #1c1c1e !important;
    color: #ffffff !important;
    border: 1px ssolid #3a3a3c !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #e5e7f7 !important;
    color: #1a49b3 !important;
}

/* Focus State for Touch/Pointer */
.panel input:focus,
.panel select:focus,
.form-control:focus {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25) !important;
}

/* Grid Card Styling for Customer Lists */
#customerCardsGrid, 
#customerDeleteCardsGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 12px !important;
}

.customer-card {
    background: #2c2c2e !important;
    border: 1px solid #38383a !important;
    border-radius: 10px !important;
    padding: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}




/*//////////////Alert Modal CSS////////////////Starts HERE///////////
.modalMessage{margin:10px 0px;}
/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0; /* Initially invisible */
  transition: opacity 0.3s ease-in-out; /* Fade effect */
}

.modal.show {
  opacity: 1; /* Make modal visible */
}

/* Modal content */
.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
  margin: 100px auto; /* Center the modal */
  text-align: center;
}

.modal button, .modal input[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
  background: black;
  color: white;
  font-size: 15px;
}

/* Button styles */
#closeModal {
  padding: 10px 20px;
  background-color: #00a6d8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#closeModal:hover {
  background-color: #038380;
}

#confirmYes {
  background-color: #4CAF50;
  color: white;
}

#confirmYes:hover {
  background-color: #45a049;
}

#confirmNo {
  background-color: #f44336;
  color: white;
}

#confirmNo:hover {
  background-color: #e53935;
}
/*//////////////Alert Modal CSS////////////////ENDS HERE///////////*/



.menucard span{
    color: #000000;
    font-size: 16px;
}
h3, h2{color:white;}
.search-customer-row{
    padding: 4px 0px 6px 6px;
    line-height: 15px;
    border-bottom: 2px #ffffff solid;
    background: #f1e7e7;
}
.panel{padding:0px !important;}
#layawayReportsGrid,#pendingLayawaysGrid{max-height: calc(100vh - 220px) !important;}