#toast-container .toast{
    opacity: 1 !important;
}
.b-1 {
    border: 1px solid gray
}

.p-2 {
    padding: 2px;
}

.w-content {
    width:max-content;
}

.m-20{
    margin: 20px;
}
.card{
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 0px 8px;
    color: white;
    margin-bottom: 8px;
}
.violet{
    background-color: blueviolet;
}
.blue{
    background-color: blue;
}
.green{
    background-color: #02b502;
}
.teal{
    background-color: #028ab5;
}
.magenta{
    background-color: #880276;
}
.font-36{
    font-size: 36px;
}
.font-24-i{
    font-size: 24px !important;
}
.text-warning-i{
    color: #f70505;
}

.presc-section {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: visible !important;
    padding: 0 !important;
}

div.row > div.presc-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.presc-section.col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.presc-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.presc-header-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.presc-body {
    padding: 6px 10px;
    background-color: #f8fafc;
    overflow: visible;
}

.presc-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
}

.presc-section .input-group {
    margin-bottom: 10px;
    overflow: visible;
}

.presc-section .input-group:last-child {
    margin-bottom: 0;
}

.presc-section .form-control {
    height: 28px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.presc-section .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.presc-section .input-group-btn .btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.presc-section .input-group-btn .btn:active {
    transform: translateY(0.5px);
}

.presc-section .btn-success {
    background-color: #10b981;
    color: #ffffff;
}

.presc-section .btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.presc-section .btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.presc-section .btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.followup-area {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background-color: #fffbeb;
}

.followup-area .form-control {
    border-color: #fcd34d;
}

.followup-area .form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.oe-row {
    display: flex;
    gap: 3px;
    align-items: stretch;
    flex-wrap: nowrap;
    min-width: 0;
}

.oe-part-1 {
    flex: 4 1 0;
    min-width: 0;
}

.oe-part-2 {
    flex: 3 1 0;
    min-width: 0;
}

.oe-part-3-wrapper {
    flex: 3 1 0;
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
}

.oe-part-3-wrapper .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.oe-part-3-wrapper .input-group-btn {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
    width: auto;
    min-width: 20px;
    justify-content: center;
}

.oe-part-3-wrapper .input-group-btn .btn {
    height: 14px !important;
    min-width: 14px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.oe-actions .btn:active {
    transform: translateY(0.5px);
}

.oe-actions .btn-danger {
    background-color: #ef4444;
}

.oe-actions .btn-success {
    background-color: #10b981;
}

.oe-actions .btn-default {
    background-color: #94a3b8;
    color: #ffffff;
}

.presc-section .input-sm {
    padding-left: 10px;
    padding-right: 10px;
}

.presc-section .dropdown-menu {
    z-index: 1050;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 4px;
}

.presc-section .dropdown-menu > li > a {
    padding: 6px 12px;
    font-size: 13px;
    color: #334155;
}

.presc-section .dropdown-menu > li > a:hover,
.presc-section .dropdown-menu > li > a:focus {
    background-color: #f1f5f9;
    color: #0f766e;
}

.presc-section .dropdown-menu .active a,
.presc-section .dropdown-menu .active a:hover,
.presc-section .dropdown-menu .active a:focus {
    background-color: #0d9488;
    color: #ffffff;
}

@media (max-width: 768px) {
    .oe-row {
        flex-wrap: wrap;
    }

    .oe-part-1,
    .oe-part-2,
    .oe-part-3-wrapper {
        flex: 1 1 100%;
    }

    .oe-part-3-wrapper {
        flex-direction: row;
    }
}