/* Buttons  */
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
}
.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
}

/* Custom table sorter page */
#pager {
    padding: 0;
    margin: 0;
}
.paging-controls {
    padding: 10px 0;
}

/* Initial state - *should* never be in this one, so make it IN YOUR FACE! */
tr.Unplanned td {
    color : white;
    background-color : red;
}


/* Appointment Billing Record state group - requiring MANUAL action for INVOICING */
tr.MarkedAttendedTooEarly td,
tr.Proposed_InvoicingApprovalRequired td {
    color            : white ;
    background-color : Violet;
    font-weight      : bold;
}
tr.InvoiceCreation_Attended_AwaitingApproval td {
color            : white ;
background-color : magenta;
font-weight      : bold;
}
/* Appointment Billing Record state group - requiring MANUAL action for INVOICING */
tr.MedicareClaim_AwaitingApproval td {
    color            : white ;
    background-color : Plum;
    font-weight      : bold;
}


/* Awaiting attended == Clinician action */
tr.Proposed_AutoInvoice td,
tr.ApprovedForInvoiceCreation_AwaitingAttended td,  /* TODO this one now obsolete? */
tr.InvoiceCreation_Approved_AwaitingAttended td {
    color            : black;
    background-color : BlanchedAlmond;
    font-weight      : bold;
}


/* Appointment Billing Record state group - ready for CB  */
tr.InvoiceCreation_Approved td,
        tr.Payment_Approved td{
    color            : white;
    background-color : DarkGreen;
    font-weight      : bold;
}

/* Medicare approved = TTS Medicare green :) */
tr.MedicareClaim_Approved td {
    color            : yellow;
    background-color : RGB(38,133,86);
    font-weight      : bold;
}


/* Appointment Billing Record state group - CB in progress */
tr.InvoiceCreation_InProgress td,
  tr.MedicareClaim_InProgress td,
        tr.Payment_InProgress td {
    color            : black;
    background-color : Chartreuse;
    font-weight      : bold;
}


/* Appointment Billing Record state Failed */
        tr.Payment_Failed td,
tr.InvoiceCreation_Failed td,
tr.MedicareClaim_Failed td {
    color            : magenta;
    font-weight      : bold;
}


/* Appointment Billing Record state group - billing complete  */
tr.BillingComplete_BilledManually td,
tr.BillingComplete_PrivatePaymentProcessed td,
tr.BillingComplete_InvoiceSentToFunder td,
tr.BillingComplete_InvoiceCreationOnly td,
tr.BillingComplete_MedicareClaimSubmitted td,
tr.BillingComplete_MedicareClaimSubmittedManually td,
tr.BillingComplete_AssumedBilledOutsideABS td {
    color: silver;
}


/* Appointment Billing Record state group - billing methods; used CP appt type colours as guide */
.tablesorter-green tbody td[title="MedicareBulkBilled"          ] { color: #47d147; }
.tablesorter-green tbody td[title="ConvertPrepaymentToRebatable"] { color: #6633B9; }
.tablesorter-green tbody td[title="ConvertPrepaymentToPrivate"  ] { color: #66ccff; }
.tablesorter-green tbody td[title="IntakeCall"                  ] { color: #c68c53; }



/* Proposed value is overridden */
tr td.value-overridden {
    color: blue;
    font-weight: bold;
}

/* Tablesorter */
.list {
    overflow-x: auto;
    width: 100%;
}
.list table {
    width: auto;
    table-layout: fixed;
}
.list .tablesorter td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 10px;
}
.list .tablesorter th {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 10px;
}

/* Added by AWZ 2023-05-21 */
@media (min-width:1200px){body:not([data-navbar=side]) .container{max-width:2200px}
@media (min-width:1200px){.container{max-width:2200px}


/* "Modern" theme overrides, initially added by AWZ 2023-07-17 */

:root { 
  --panel-success-text: #111111;
  --panel-success-bg: #89ed6d; /*#6bfa43;*/
  --panel-warning-text: #a66b0c;
}


/* ADDED by AWZ 2024-01-08, to make "non-working" background in calendar stronger - way too subtle on phone and PC, even with verygood screens! Though not working yet */
div.fc-bg-event {
     background-color: rgba(213, 221, 246, 0.99);
}
