/* Public CSS */
.vs-prescription-form-wrapper {
    margin-bottom: 30px;
}

.vs-prescription-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vs-form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.vs-form-section:last-child {
    border-bottom: none;
}

.vs-form-row {
    margin-bottom: 15px;
}

.vs-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.vs-form-row input[type="text"],
.vs-form-row input[type="number"],
.vs-form-row select,
.vs-form-row textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vs-client-search-results {
    background: #fff;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    border-radius: 4px;
}

.vs-client-search-result {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.vs-client-search-result:hover {
    background: #f9f9f9;
}

.vs-client-search-result:last-child {
    border-bottom: none;
}

.vs-selected-client {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 10px;
    display: none;
    border-radius: 4px;
}

.vs-prescription-items {
    margin-bottom: 15px;
}

.vs-prescription-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    border-radius: 4px;
}

.vs-prescription-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vs-prescription-item-remove {
    color: #a00;
    cursor: pointer;
}

.vs-add-item-button {
    margin-bottom: 15px;
}

.vs-product-search-results {
    background: #fff;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    border-radius: 4px;
}

.vs-product-search-result {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.vs-product-search-result:hover {
    background: #f9f9f9;
}

.vs-product-search-result:last-child {
    border-bottom: none;
}

.vs-prescription-list-wrapper {
    margin-bottom: 30px;
}

.vs-prescription-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vs-prescription-list-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    display: flex;
}

.vs-prescription-list-header-item {
    flex: 1;
}

.vs-prescription-list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.vs-prescription-list-item:last-child {
    border-bottom: none;
}

.vs-prescription-list-item:hover {
    background: #f9f9f9;
}

.vs-prescription-list-item-col {
    flex: 1;
}

.vs-prescription-list-item-actions {
    text-align: right;
}

.vs-prescription-list-item-actions a {
    margin-left: 10px;
    text-decoration: none;
}

.vs-prescription-details-wrapper {
    margin-bottom: 30px;
}

.vs-prescription-details {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vs-prescription-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vs-prescription-details-meta {
    margin-bottom: 20px;
}

.vs-prescription-details-meta-item {
    margin-bottom: 10px;
}

.vs-prescription-details-meta-item label {
    font-weight: bold;
    display: inline-block;
    width: 150px;
}

.vs-prescription-details-items {
    margin-bottom: 20px;
}

.vs-prescription-details-items-header {
    margin-bottom: 10px;
    font-weight: bold;
}

.vs-prescription-details-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.vs-prescription-details-item-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.vs-prescription-details-item-meta {
    color: #666;
    font-size: 0.9em;
}

.vs-prescription-details-qr {
    margin-top: 20px;
    text-align: center;
}

.vs-prescription-details-qr img {
    max-width: 200px;
    height: auto;
}

.vs-prescription-details-actions {
    margin-top: 20px;
    text-align: right;
}

.vs-prescription-details-actions .button {
    margin-left: 10px;
}

.vs-prescription-fulfillment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.vs-prescription-fulfillment-header {
    margin-bottom: 10px;
    font-weight: bold;
}

.vs-prescription-fulfillment-meta {
    margin-bottom: 10px;
}

.vs-prescription-fulfillment-meta-item {
    margin-bottom: 5px;
}

.vs-prescription-fulfillment-meta-item label {
    font-weight: bold;
    display: inline-block;
    width: 150px;
}

.vs-prescription-fulfillment-notes {
    margin-top: 10px;
}

.vs-prescription-fulfillment-notes label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.vs-prescription-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}

.vs-prescription-status-pending {
    background: #ffb900;
    color: #fff;
}

.vs-prescription-status-fulfilled {
    background: #46b450;
    color: #fff;
}

.vs-prescription-status-expired {
    background: #dc3232;
    color: #fff;
}

.vs-qr-scanner-wrapper {
    margin-bottom: 30px;
}

.vs-qr-scanner-container {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.vs-qr-scanner-video {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vs-qr-scanner-result {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    display: none;
    border-radius: 4px;
}

.vs-pagination {
    margin-top: 20px;
    text-align: center;
}

.vs-pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
}

.vs-pagination a.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.vs-pagination a:hover {
    background: #f9f9f9;
}

.vs-pagination a.current:hover {
    background: #0073aa;
}

.vs-error {
    color: #a00;
    margin-bottom: 15px;
}

.vs-success {
    color: #46b450;
    margin-bottom: 15px;
}

.vs-loading {
    text-align: center;
    padding: 20px;
}

.vs-loading:after {
    content: "...";
    animation: vs-loading 1.5s infinite;
}

@keyframes vs-loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}
